WXK
2025-02-19 83d414d07af1f5330fcbd7612eb7b0c312d2598f
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);