標(biāo)題: stm32f407與nrf24l01的程序 [打印本頁]

作者: 1923504446    時間: 2021-5-3 17:56
標(biāo)題: stm32f407與nrf24l01的程序
stm32f407與nrf24l01的程序


單片機源程序如下:

  1. /* Includes ------------------------------------------------------------------*/
  2. #include "stm32f4xx.h"
  3. #include "stdio.h"
  4. #include "24L01.h"
  5. #include "uart.h"



  6. Set_RXTX_Info* Set_RXTX_gloable = NULL;

  7. #define REC                                          //接受
  8. //#define SEND                                  //發(fā)送

  9. int main(void)
  10. {
  11. //    uchar Buff[TX_ADR_WIDTH]={'a','b','0','d','e'};
  12.         u32 i;

  13.     //RCC_Configuration();

  14.         uart_init();
  15.     printf("\r\n uart config ok!");

  16.         config_24L01();
  17.     printf("\r\n nrf24l01 config ok! ");
  18.        
  19.          Set_RF_RX_Mode(4);
  20.    //IRQ_INIT();
  21.         //NVIC_Configuration();

  22.     init_io();
  23.     Set_RF_RX_Mode(4);

  24.     while(1){

  25.          read();

  26.     }
  27. }
復(fù)制代碼

所有資料51hei提供下載:
STM32F407 ARM 單片機開發(fā)板_nrf24l01程序 KEIL 軟件C源碼.7z (731.95 KB, 下載次數(shù): 35)







歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1