2022-09-27 01:19 AM
The ADS_DRDY signal (data ready signal) can be judged by the external edge interrupt method(HAL_GPIO_EXTI_CALLBACK) and reading the state of this pin(HAL_GPIO_ReadPin(ADS_DRDY_GPIO_Port, ADS_DRDY_Pin)).
For the second readpin method, how should I write the program?
Currently I only know about external trigger (HAL_GPIO_EXTI_CALLBACK) and virtual timer (HW_TS_Start), but I don't know how to read the AS_DRDY pin state and send notification program in the task scheduler (I don't think the above two methods are applicable).