stm32f407与nrf24l01的程序
单片机源程序如下:
- /* Includes ------------------------------------------------------------------*/
- #include "stm32f4xx.h"
- #include "stdio.h"
- #include "24L01.h"
- #include "uart.h"
- Set_RXTX_Info* Set_RXTX_gloable = NULL;
- #define REC //接受
- //#define SEND //发送
- int main(void)
- {
- // uchar Buff[TX_ADR_WIDTH]={'a','b','0','d','e'};
- u32 i;
- //RCC_Configuration();
- uart_init();
- printf("\r\n uart config ok!");
- config_24L01();
- printf("\r\n nrf24l01 config ok! ");
-
- Set_RF_RX_Mode(4);
- //IRQ_INIT();
- //NVIC_Configuration();
- init_io();
- Set_RF_RX_Mode(4);
- while(1){
- read();
- }
- }
复制代码
所有资料51hei提供下载:
STM32F407 ARM 单片机开发板_nrf24l01程序 KEIL 软件C源码.7z
(731.95 KB, 下载次数: 35)
|