• 大小: 11.05MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-07
  • 语言: 其他
  • 标签: 2.4G  Wifi发送  stm32f0  

资源简介

基于stm32f0的2.4G WiFi 发射程序,配合接收程序进行数据收发。模块采用的是NRF24L01+无线发射接收模块2.4G数传收发通信模块。

资源截图

代码片段和文件信息

#include “app_delay.h“
#include “stm32f0xx.h“



static uint8_t  fac_us=0;
static uint16_t fac_ms=0;

void delay_init(uint8_t SYSCLK)
{


SysTick->CTRL=SysTick_CLKSource_HCLK_Div8;
fac_us=SYSCLK/8;
fac_ms=(uint16_t)fac_us*1000;

}     

        
void delay_us(uint32_t nus)
{
uint32_t temp;       
SysTick->LOAD=nus*fac_us;   
SysTick->VAL=0x00;       
SysTick->CTRL|=SysTick_CTRL_ENABLE_Msk ;          
do
{
temp=SysTick->CTRL;
}
while(temp&0x01&&!(temp&(1<<16)));
SysTick->CTRL&=~SysTick_CTRL_ENABLE_Msk;       
SysTick->VAL =0X00;      
}

void delay_ms(uint32_t nms)
{        
uint32_t temp;    
SysTick->LOAD=(uint32_t)nms*fac_ms;
SysTick->VAL =0x00;          
SysTick->CTRL|=0x01 ;           
do
{
temp=SysTick->CTRL;
}
while(temp&0x01&&!(temp&(1<<16)));//??????   
SysTick->CTRL=0x00;       //?????
SysTick->VAL =0X00;       //?????        




 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-04-13 21:10  2.4Gwifi发\
     目录           0  2020-04-13 21:10  2.4Gwifi发\APP\
     文件         953  2017-07-14 14:10  2.4Gwifi发\APP\app_delay.c
     文件         201  2017-05-02 09:01  2.4Gwifi发\APP\app_delay.h
     文件        6007  2017-07-14 12:26  2.4Gwifi发\APP\app_nrf24l01.c
     文件        4194  2017-07-14 09:21  2.4Gwifi发\APP\app_nrf24l01.h
     文件        1124  2017-07-10 21:41  2.4Gwifi发\APP\app_spi.c
     文件         161  2017-07-11 08:32  2.4Gwifi发\APP\app_spi.h
     目录           0  2020-04-13 21:10  2.4Gwifi发\BSP\
     文件        5751  2017-07-14 12:07  2.4Gwifi发\BSP\bsp.c
     文件        4158  2017-07-11 20:39  2.4Gwifi发\BSP\bsp.h
     目录           0  2020-04-13 21:10  2.4Gwifi发\CMSIS\
     目录           0  2020-04-13 21:10  2.4Gwifi发\CMSIS\Device\
     目录           0  2020-04-13 21:10  2.4Gwifi发\CMSIS\Device\ST\
     目录           0  2020-04-13 21:10  2.4Gwifi发\CMSIS\Device\ST\STM32F0xx\
     目录           0  2020-04-13 21:10  2.4Gwifi发\CMSIS\Device\ST\STM32F0xx\Include\
     文件      462563  2017-07-09 09:42  2.4Gwifi发\CMSIS\Device\ST\STM32F0xx\Include\stm32f0xx.h
     文件      462509  2014-12-04 17:34  2.4Gwifi发\CMSIS\Device\ST\STM32F0xx\Include\stm32f0xx.h~RF9777f.TMP
     文件        2223  2017-04-10 19:50  2.4Gwifi发\CMSIS\Device\ST\STM32F0xx\Include\system_stm32f0xx.h
     文件       45805  2014-12-04 17:34  2.4Gwifi发\CMSIS\Device\ST\STM32F0xx\Release_Notes.html
     目录           0  2020-04-13 21:10  2.4Gwifi发\CMSIS\Device\ST\STM32F0xx\Source\
     目录           0  2020-04-13 21:10  2.4Gwifi发\CMSIS\Device\ST\STM32F0xx\Source\Templates\
     目录           0  2020-04-13 21:10  2.4Gwifi发\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\
     文件       10677  2014-12-04 17:34  2.4Gwifi发\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f030.s
     文件       10953  2014-12-04 17:34  2.4Gwifi发\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f030xc.s
     文件       10476  2014-12-04 17:34  2.4Gwifi发\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f031.s
     文件       11304  2014-12-04 17:34  2.4Gwifi发\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f042.s
     文件       11312  2014-12-04 17:34  2.4Gwifi发\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f051.s
     文件       10639  2014-12-04 17:34  2.4Gwifi发\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f070x6.s
     文件       11130  2014-12-04 17:34  2.4Gwifi发\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f070xb.s
     文件       11772  2014-12-04 17:34  2.4Gwifi发\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f072.s
............此处省略297个文件信息

评论

共有 条评论