+motors, not crashing, ADC needs DMA fix to stop messing up other DMAs

This commit is contained in:
2026-10-11 19:29:03 +03:00
parent 844f53a12b
commit aad79e95c3
25 changed files with 1715 additions and 198 deletions
+16
View File
@@ -0,0 +1,16 @@
#ifndef DRV_ADC_H
#define DRV_ADC_H
#include <stdint.h>
#define SAMPLES_PER_CYCLE 36
#define MAX_HW_ADC_ID 19
typedef void (*drvAdc_Callback)(uint8_t channel, uint32_t filteredRaw, void* ctx);
void drvAdc_init(uint32_t enabledChannels_mask);
void drvAdc_startMeasurement(void);
void drvAdc_stopMeasurement(void);
void drvAdc_registerCallback(uint8_t channel, drvAdc_Callback cb, void* ctx);
#endif // DRV_ADC_H