各位好,我想在CC254x 外接一个SPI FLASH去存取值
所以我参考了KeyFobDemo及SensorTag的example
KeyFobDemo的SPI操作方式写到bma250.c里了
请问SensorTag的SPI操作方式是写在哪里?
SensorTag是用SPI操作什么呢?
Susan Yang:
您可以参考 http://processors.wiki.ti.com/index.php/CC254x_SPI_Driver_User_Guide 以及 http://processors.wiki.ti.com/index.php/SerialBLEbridge
kqian0327:
你好,
sensortag的flash 使用的IIC驱动的flash。
你可以在HAL层厦门的Target下面的Drivers里面找到。
/* ———————————————————————————————— * Includes * ———————————————————————————————— */
#include "hal_board_cfg.h"#include "hal_dma.h"#include "hal_flash.h"#include "hal_types.h"
/************************************************************************************************** * @fn HalFlashRead * * @brief This function reads 'cnt' bytes from the internal flash. * * input parameters * * @param pg – A valid flash page number. * @param offset – A valid offset into the page. * @param buf – A valid buffer space at least as big as the 'cnt' parameter. * @param cnt – A valid number of bytes to read. * * output parameters * * None. * * @return None. **************************************************************************************************
相关SENSORTAG的硬件设计,你可以在TI官网上搜索sensortag原始文件查看。
希望我的回答对你有帮助。
Sco Lin:
回复 da qin zheng sheng:
谢谢回复,请问这是在TI的哪个项目里可找到呢?
做法与KeyFobDemo类似
TI中文支持网


