|
| 1 | +/* |
| 2 | + This file is part of the Arduino_AdvancedAnalog library. |
| 3 | + Copyright (c) 2023 Arduino SA. All rights reserved. |
| 4 | +
|
| 5 | + This library is free software; you can redistribute it and/or |
| 6 | + modify it under the terms of the GNU Lesser General Public |
| 7 | + License as published by the Free Software Foundation; either |
| 8 | + version 2.1 of the License, or (at your option) any later version. |
| 9 | +
|
| 10 | + This library is distributed in the hope that it will be useful, |
| 11 | + but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | + Lesser General Public License for more details. |
| 14 | +
|
| 15 | + You should have received a copy of the GNU Lesser General Public |
| 16 | + License along with this library; if not, write to the Free Software |
| 17 | + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | +*/ |
| 19 | + |
1 | 20 | #ifndef __HAL_CONFIG_H__
|
2 | 21 | #define __HAL_CONFIG_H__
|
| 22 | + |
3 | 23 | #include "Arduino.h"
|
4 | 24 | #include "AdvancedAnalog.h"
|
| 25 | + |
5 | 26 | int hal_tim_config(TIM_HandleTypeDef *tim, uint32_t t_freq);
|
6 | 27 | int hal_dma_config(DMA_HandleTypeDef *dma, IRQn_Type irqn, uint32_t direction);
|
7 | 28 | size_t hal_dma_get_ct(DMA_HandleTypeDef *dma);
|
8 | 29 | void hal_dma_enable_dbm(DMA_HandleTypeDef *dma, void *m0 = nullptr, void *m1 = nullptr);
|
9 | 30 | void hal_dma_update_memory(DMA_HandleTypeDef *dma, void *addr);
|
10 | 31 | int hal_dac_config(DAC_HandleTypeDef *dac, uint32_t channel, uint32_t trigger);
|
11 | 32 | int hal_adc_config(ADC_HandleTypeDef *adc, uint32_t resolution, uint32_t trigger, PinName *adc_pins, uint32_t n_channels);
|
| 33 | + |
12 | 34 | #endif // __HAL_CONFIG_H__
|
0 commit comments