微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI Zigbee设计交流 > HalLedOnOff和HalLedSet的区别?

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.

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top