微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI蓝牙设计交流 > cc2540程序到cc2640移植的问题

cc2540程序到cc2640移植的问题

时间:10-02 整理:3721RD 点击:

现在正在将一个  CC2540的程序移植到CC2640上,

SimpleLink™ Bluetooth® low energy CC2640 wireless MCU Software Developer’s Guide  

这个文档上说

11.2 OSAL
One of the big changes in moving to TI-RTOS is the application’s complete removal from the
OSAL environment. While the stack code still uses OSAL within its own thread, the application
thread can no longer use OSAL’s APIs, except for those defined in ICallBleAPI.c. Many functions,
such as osal_memcpy() , osal_memcmp() and osal_mem_alloc() are now unavailable. In turn, they
have been replaced by TI-RTOS, C runtime and ICall APIs.

那请问,原来 CC2540上用的 osal_memcpy, osal_memcmp,osal_memset,osal_memcmp,osal_isbufset

这些函数,在CC2640上应该用哪些函数替换,从哪里可以找到这些说明资料。

谢谢!



请看一下 ICallBleAPI.c中的定义,路径是    C:\TI\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\ICall\Application

哦,谢谢!我直接把 前缀osal_ 去掉就行了。

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

网站地图

Top