HalLedOnOff和HalLedSet的区别?
时间:10-02
整理:3721RD
点击:
RemoTI的BasicRemote示例中,RSA_KeyCback(key的回调函数)函数中用HalLedSet(HAL_LED_2, HAL_LED_MODE_ON),可以在按键时使灯点亮,但是换成HalLedOnOff (HAL_LED_2, HAL_LED_MODE_ON)后,按键不能点亮灯,这是为什么?
I have found the root cause. Since the c file not declares the function 'HalLedOnOff', in fact, calling failed. But the IAR compiler not show error. Include the 'hal_led.h' file will fix the issue.