• 大小: 673KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-27
  • 语言: 其他
  • 标签: SX1278  

资源简介

STM32F030/SX1278扩频Lora无线模块收发测试例程

资源截图

代码片段和文件信息



#include “led.h“
/**********************************************/
/* 函数功能; led灯 初始化                     */
/* 入口参数:无                               */
/**********************************************/
void LED_Init(void)
{
GPIO_InitTypeDef GPIO_InitStruct;
RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOA ENABLE);
  GPIO_InitStruct.GPIO_Pin = LED1_PIN |LED2_PIN  ;
  GPIO_InitStruct.GPIO_Mode = GPIO_Mode_OUT;
  GPIO_InitStruct.GPIO_OType = GPIO_OType_PP;
  GPIO_InitStruct.GPIO_Speed =GPIO_Speed_Level_3;
  GPIO_Init(LED1_PORT &GPIO_InitStruct);
GPIO_SetBits(LED1_PORT LED1_PIN  | LED2_PIN );
}

/**********************************************/
/* 函数功能;打开led灯                        */
/* 入口参数:无                               */
/**********************************************/
void LED_Open(void)
{
 GPIO_ResetBits(LED1_PORT LED1_PIN );
}
/**********************************************/
/* 函数功能; 关掉led灯                        */
/* 入口参数:无                               */
/**********************************************/
void LED_Close(void)
{
GPIO_SetBits(LED1_PORT LED1_PIN );
}

/**********************************************/
/* 函数功能;led翻转                          */
/* 入口参数:无                               */
/**********************************************/
void LED1_Toggle(void)
{
GPIO_WriteBit(GPIOA GPIO_Pin_6 
               (BitAction)((1-GPIO_ReadOutputDataBit(GPIOA GPIO_Pin_6))));
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-03-30 21:24  STM32F030_SX1278\
     目录           0  2017-03-29 23:01  STM32F030_SX1278\drive\
     文件        1515  2017-03-22 20:36  STM32F030_SX1278\drive\led.c
     文件         308  2017-03-22 20:38  STM32F030_SX1278\drive\led.h
     文件       11443  2017-03-29 23:01  STM32F030_SX1278\drive\sx1276_7_8.c
     文件        6640  2017-03-28 23:07  STM32F030_SX1278\drive\sx1276_7_8.h
     文件        7472  2017-03-28 23:02  STM32F030_SX1278\drive\sx1276_7_8_spi.c
     文件         482  2017-03-28 22:51  STM32F030_SX1278\drive\sx1276_7_8_spi.h
     目录           0  2017-03-28 21:50  STM32F030_SX1278\lib\
     目录           0  2017-03-30 23:51  STM32F030_SX1278\lib\CMSIS\
     文件       24914  2013-10-11 21:57  STM32F030_SX1278\lib\CMSIS\CMSIS END USER LICENCE AGREEMENT.pdf
     目录           0  2017-03-28 21:50  STM32F030_SX1278\lib\CMSIS\Device\
     目录           0  2017-03-28 21:50  STM32F030_SX1278\lib\CMSIS\Device\ST\
     目录           0  2017-03-28 21:50  STM32F030_SX1278\lib\CMSIS\Device\ST\STM32F0xx\
     目录           0  2017-03-28 21:50  STM32F030_SX1278\lib\CMSIS\Device\ST\STM32F0xx\Include\
     文件      243068  2013-10-11 21:58  STM32F030_SX1278\lib\CMSIS\Device\ST\STM32F0xx\Include\stm32f0xx.h
     文件        2221  2013-10-11 21:58  STM32F030_SX1278\lib\CMSIS\Device\ST\STM32F0xx\Include\system_stm32f0xx.h
     文件       26975  2013-10-11 21:58  STM32F030_SX1278\lib\CMSIS\Device\ST\STM32F0xx\Release_Notes.html
     目录           0  2017-03-28 21:50  STM32F030_SX1278\lib\CMSIS\Device\ST\STM32F0xx\Source\
     目录           0  2017-03-28 21:50  STM32F030_SX1278\lib\CMSIS\Device\ST\STM32F0xx\Source\Templates\
     目录           0  2017-04-01 21:33  STM32F030_SX1278\lib\CMSIS\Device\ST\STM32F0xx\Source\Templates\TASKING\
     目录           0  2017-03-28 21:50  STM32F030_SX1278\lib\CMSIS\Device\ST\STM32F0xx\Source\Templates\TrueSTUDIO\
     文件        8078  2013-10-11 21:58  STM32F030_SX1278\lib\CMSIS\Device\ST\STM32F0xx\Source\Templates\TrueSTUDIO\startup_stm32f030x6.s
     文件        8726  2013-10-11 21:58  STM32F030_SX1278\lib\CMSIS\Device\ST\STM32F0xx\Source\Templates\TrueSTUDIO\startup_stm32f030x8.s
     文件        8735  2013-10-11 21:58  STM32F030_SX1278\lib\CMSIS\Device\ST\STM32F0xx\Source\Templates\TrueSTUDIO\startup_stm32f0xx.s
     文件        8087  2013-10-11 21:58  STM32F030_SX1278\lib\CMSIS\Device\ST\STM32F0xx\Source\Templates\TrueSTUDIO\startup_stm32f0xx_ld.s
     目录           0  2017-03-28 21:50  STM32F030_SX1278\lib\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\
     文件        9869  2013-10-11 21:58  STM32F030_SX1278\lib\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f030x6.s
     文件       10705  2013-10-11 21:58  STM32F030_SX1278\lib\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f030x8.s
     文件       10714  2013-10-11 21:58  STM32F030_SX1278\lib\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f0xx.s
     文件        9878  2013-10-11 21:58  STM32F030_SX1278\lib\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f0xx_ld.s
............此处省略110个文件信息

评论

共有 条评论