You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
385 B

  1. #ifndef ADC_H
  2. #define ADC_H
  3. /* adc_dmabuf[x] contains 16 samples of channel AN0 */
  4. extern uint16_t adc_dmabuf[16];
  5. /* Stores the offset of the most recently written DMA sample */
  6. extern int adc_offset;
  7. /* Initialize internal ADC */
  8. void adc_init(void);
  9. /* Callback functions */
  10. extern void (*adc_adc_callback)(void);
  11. extern void (*adc_dma_callback)(void);
  12. #endif