chen
2025-05-22 43d055054fc3eee6d0c63f429a14ce74712626c1
keil/include/drivers/mk_adc.c
@@ -408,11 +408,11 @@
static void adc_continue_callback(void *data, uint32_t number)
{
LOG_INFO(TRACE_MODULE_APP, "Chip adc callback %d degree\r\n", data);
//LOG_INFO(TRACE_MODULE_APP, "Chip adc callback %d degree\r\n", data);
}
int16_t battery_monitor_get(void)
{
#define NUM_SAMPLES (3)
#define NUM_SAMPLES (1)
    uint32_t sample[NUM_SAMPLES];
    adc_get(&sample[0], NUM_SAMPLES, adc_continue_callback);