HAL Driver API 中,结构体 halUARTCfg_t 有一个成员叫做 halUARTCBack_t callBackFunc ,解释是这样的:
callBackFunc – This callback is called when there is an event such as Tx done, Rx ready…
void HalUARTCback (uint8 port, uint8 event);
port - specified serial port that has the event. (Check UART Ports Table).
event – event that causes the callback (Check Events table).
请问回调函数怎么使用?
另外,请问HalUARTPoll函数中调用的HalUARTPollISR函数的作用是什么,为什么不能go to definition?
请指教