我瞎写了一个,不过通不过编译,大神你帮我看看!
#include "stm32f4xx.h"
#include "usart.h"
#include "NRF24L01/NRF24L01.h"
#include "stm32f4xx_usart.h"
#define Open_TX 1 //发送
//#define Open_RX 0 //接收
extern unsigned char RX_BUF[];
extern unsigned char TX_BUF[];
extern unsigned char X1_BUF[];
void Delay (uint32_t nCount)
{
for(; nCount != 0; nCount--);
}
int i=0;
void USART1_RX(void)
{
for(i=0;i