利用CC2430实现SPI通信
#include #include #include "hat.h" //#define Master #define uint unsigned int #define uchar unsigned char #define BlockSize 10 UINT8 SpData; char temp[BlockSize] ; BYTE rdat; char re_data[8]="12345678"; char spi_data[8]="12345678"; char spi_re_data[8]; uint re_data_num=0; uint spi_re_data_num=0; #define MISO P0_2 #define MOSI P0_3 #define SS_N P0_4 #define SCK P0_5 //定义控制灯的端口 #define led1 P1_0 #define led2 P1_1 #define SS P0_0
文件列表
利用CC2430实现SPI通信.rar
(预估有个14文件)
CC2430-spi
CC2430-14
UARTT.dep
2KB
main.c
3KB
settings
UARTT.dbgdt
5KB
UARTT.dni
768B
forj14-uartt.wsdt
4KB
UARTT.ewd
21KB
hat.h
72KB
暂无评论