TI中文支持网
TI专业的中文技术问题搜集分享网站

HalLedOnOff和HalLedSet的区别?

RemoTI的BasicRemote示例中,RSA_KeyCback(key的回调函数)函数中用HalLedSet(HAL_LED_2, HAL_LED_MODE_ON),可以在按键时使灯点亮,但是换成HalLedOnOff (HAL_LED_2, HAL_LED_MODE_ON)后,按键不能点亮灯,这是为什么?

Beck Yang:

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.

赞(0)
未经允许不得转载:TI中文支持网 » HalLedOnOff和HalLedSet的区别?
分享到: 更多 (0)