|
- #include
- # include "API.h" //define of rf24l01
- # include "SPI.h" //
- #include
- #define RLED (1<<6)
- #define Key (1<<3)
- uchar rx_buf[TX_PLOAD_WIDTH];
- uchar tx_buf[TX_PLOAD_WIDTH];
- uchar msg[TX_PLOAD_WIDTH]={0x39};
- uchar TX_ADDRESS[TX_ADR_WIDTH] = {0x34,0x43,0x10,0x10,0x01}; // Define a static TX address
- uint j;
- void main()
- {
- WDTCTL=WDTPW +WDTHOLD;
- IO_initial();
- init_NRF24L01();
- GLED_off();
- while(1)
- {
- if(Get_Key())
- { msg[0]=0x39;}
- else
- { msg[0]=0x3A;
- nRF24L01_TxPacket(msg);
- SPI_RW_Reg(WRITE_REG+STATUS,0xff); // clear interrupt flag(TX_DS)
- Delay_us(10000);
- GLED_ray();
- Delay_us(10000);}
- }
- }
复制代码 编译都没问题,但是一直debug不了
ccs给的错误是:
eeror #10234-D: unresolved symbols remaind
eeror#10010: errors encountered during linking; "22.out" not built
下面是我的程序
|
|