hal_adc.h 370 B

123456789101112131415161718
  1. #ifndef __HAL_ADC_H__
  2. #define __HAL_ADC_H__
  3. #include "hc32_ll_clk.h"
  4. #include "hc32_ll_aos.h"
  5. #include "hc32_ll_fcg.h"
  6. #include "hc32_ll_gpio.h"
  7. #include "hc32_ll_adc.h"
  8. #include "hc32_ll_dma.h"
  9. #include "hc32_ll_aos.h"
  10. #include "hc32_ll_interrupts.h"
  11. #define ADC_TIMEOUT_VAL (1000U)
  12. void adc_init(void);
  13. uint16_t get_adc_value(uint8_t ch);
  14. #endif