THB2/bthome_phy6222/SDK/components/driver/adc
2024-01-07 11:23:53 +03:00
..
adc.c SDK3.1.1.2 для Keil и GCC 2024-01-07 11:23:53 +03:00
adc.h SDK3.1.1.2 для Keil и GCC 2024-01-07 11:23:53 +03:00
readme.txt SDK3.1.1.2 для Keil и GCC 2024-01-07 11:23:53 +03:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

调用hal_adc_start的同时启动一个oals_timer.

example:
//triggle function
  hal_adc_start();
  osal_start_timerEx(adcDemo_TaskID, adcProctect_EVT,50);
...............
...............

//osal task event process

if(event&adcProctect_EVT)
{
 hal_adc_stop();
 hal_clk_reset(MOD_ADCC); 
return (event^adcProctect_EVT)
}