Other Parts Discussed in Thread: CC2530
当我们调用zb_GetDeviceInfo()函数获取PANID时,出现编译错误。当我想使用extern void zb_GetDeviceInfo ( uint8 param, void *pValue );声明时,依然不能通过。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Other Parts Discussed in Thread: CC2530
当我们调用zb_GetDeviceInfo()函数获取PANID时,出现编译错误。当我想使用extern void zb_GetDeviceInfo ( uint8 param, void *pValue );声明时,依然不能通过。
头文件没有包含错,你是用哪个头文件的?是否是其他问题呢?
IAR是8.1版本的,TI ZStack-CC2530-2.3.0-1.4.0,我觉得应该没问题都是,因为文档里面也有说明怎么使用这些函数,但函数就是调用不了
在应用层,头文件包含了,并且用 extern void zb_GetDeviceInfo ( uint8 parameter, void *pValue );也不行
#include "sapi.h" 包含了?
另外还有可能是由于未连接运行库造成的LINK错误。请您尝试将option->gerenal option->library选择了NORMAL DLIB