资源简介
loraWan协议栈,外加SX1272/73,SX1276/77/78/79和SX1261/2无线电驱动程序
代码片段和文件信息
/*
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech
Description: LoRaMote board USB DFU bootloader
License: Revised BSD License see LICENSE.TXT file include in the project
Maintainer: Miguel Luis and Gregory Cristian
*/
#include “board.h“
#include “usbd_core.h“
#include “usbd_desc.h“
#include “usbd_dfu.h“
#include “usbd_dfu_flash.h“
extern PCD_HandleTypeDef hpcd;
USBD_HandleTypeDef USBD_Device;
pFunction JumpToApplication;
uint32_t JumpAddress;
/*
* Board peripherals objects
*/
Gpio_t Led1;
Gpio_t Led2;
Gpio_t Led3;
I2c_t I2c;
void SystemClockConfig( void );
static void DelayLoop( volatile uint32_t nCount )
{
volatile uint32_t index = 0;
for( index = ( 5000 * nCount ); index != 0; index-- )
{
}
}
int main( void )
{
uint8_t regValue = 0;
uint8_t status = 0;
uint16_t offset = 0;
/* STM32L1xx HAL library initialization:
- Configure the Flash prefetch
- Systick timer is configured by default as source of time base but user
can eventually implement his proper time base source (a general purpose
timer for example or other time source) keeping in mind that Time base
duration should be kept 1ms since PPP_TIMEOUT_VALUEs are defined and
handled in milliseconds basis.
- Set NVIC Group Priority to 4
- Low Level Initialization
*/
HAL_Init( );
SystemClockConfig( );
I2cInit( &I2c I2C_SCL I2C_SDA );
GpioInit( &Led1 LED_1 PIN_OUTPUT PIN_PUSH_PULL PIN_NO_PULL 1 );
GpioInit( &Led2 LED_2 PIN_OUTPUT PIN_PUSH_PULL PIN_NO_PULL 1 );
GpioInit( &Led3 LED_3 PIN_OUTPUT PIN_PUSH_PULL PIN_NO_PULL 1 );
// Init SAR
SX9500Init( );
DelayLoop( 100 );
SX9500Write( SX9500_REG_IRQMSK 0x10 );
SX9500Write( SX9500_REG_IRQSRC 0x10 );
do
{
SX9500Read( SX9500_REG_IRQSRC &status );
}while( ( status & 0x10 ) == 0x00 ); // While compensation for CS0 is pending
// Read 1st sensor offset
SX9500Read( SX9500_REG_OFFSETMSB ( uint8_t* )®Value );
offset = regValue << 8;
SX9500Read( SX9500_REG_OFFSETLSB ( uint8_t* )®Value );
offset |= regValue;
if( offset < 2000 )
{ /* Test if user code is programmed starting from address 0x08007000 */
if( ( ( *( volatile uint32_t* )USBD_DFU_APP_DEFAULT_ADD ) & 0x2FFE0000 ) == 0x20000000 )
{
/* Jump to user application */
JumpAddress = *( volatile uint32_t* ) ( USBD_DFU_APP_DEFAULT_ADD + 4 );
JumpToApplication = ( pFunction ) JumpAddress;
/* Initialize user application‘s Stack Pointer */
__set_MSP( *( volatile uint32_t* ) USBD
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-09-22 15:47 LoRaMac-node-master\
文件 203 2016-09-22 15:47 LoRaMac-node-master\.gitignore
目录 0 2016-09-22 15:47 LoRaMac-node-master\Doc\
文件 512945 2016-09-22 15:47 LoRaMac-node-master\Doc\LoRaMote-schematic.pdf
文件 1526329 2016-09-22 15:47 LoRaMac-node-master\Doc\SensorNode-schematic.pdf
文件 718857 2016-09-22 15:47 LoRaMac-node-master\Doc\iM880A_Datasheet.pdf
目录 0 2016-09-22 15:47 LoRaMac-node-master\Keil\
目录 0 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\
目录 0 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\Bootloader\
文件 24083 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\Bootloader\BootLoader.uvopt
文件 24857 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\Bootloader\BootLoader.uvproj
目录 0 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\LoRaMac\
目录 0 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\LoRaMac\classA\
文件 39277 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\LoRaMac\classA\LoRaMac-api-v3.uvopt
文件 107706 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\LoRaMac\classA\LoRaMac-api-v3.uvproj
文件 38838 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\LoRaMac\classA\LoRaMac.uvopt
文件 106850 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\LoRaMac\classA\LoRaMac.uvproj
目录 0 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\LoRaMac\classB\
文件 39277 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\LoRaMac\classB\LoRaMac-api-v3.uvopt
文件 107706 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\LoRaMac\classB\LoRaMac-api-v3.uvproj
文件 38838 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\LoRaMac\classB\LoRaMac.uvopt
文件 106850 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\LoRaMac\classB\LoRaMac.uvproj
目录 0 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\LoRaMac\classC\
文件 39277 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\LoRaMac\classC\LoRaMac-api-v3.uvopt
文件 107706 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\LoRaMac\classC\LoRaMac-api-v3.uvproj
文件 38838 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\LoRaMac\classC\LoRaMac.uvopt
文件 106850 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\LoRaMac\classC\LoRaMac.uvproj
目录 0 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\ping-pong\
文件 60828 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\ping-pong\Ping-Pong.uvopt
文件 204287 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\ping-pong\Ping-Pong.uvproj
目录 0 2016-09-22 15:47 LoRaMac-node-master\Keil\LoRaMote\rx-sensi\
............此处省略665个文件信息
- 上一篇:ssh框架实现网上招聘
- 下一篇:Verilog时钟带闹铃等功能
相关资源
- lora白皮书
- lora中文文档
- 物联网行业分析
- LoRaWAN协议说明书1.0.3(2018年最新版)
- LoRa Modem Calculator Tool
- lora标准1.0
- Semtech LoRa技术介绍(中文)
- LoRa速率计算工具已修改去掉挡住数据
- LoRa网关与服务器接口协议
- LORa点对点程序
- LoRa点对点系统源代码
- LoRa开发源代码
- LoRa Overview and LoRa Alliance
- Exploratory Data Analysis Using R 2018
- Lora,SX1262SX1261SX1276SX1278SX126X和资料
- 基于LoRa技术的智慧路灯设计
- LoRaWAN终端ClassA源码
- SX1278LORA中文数据手册
- LORA网关资料 sx1301 sx1308 可以AD打开还
- 思科网络技术学院教程 CCNA Exploratio
- sx1301原理图、pcb
- STM32_SX1278实现LORA通信STM32F103完美实现
- 中兴克拉LORA综合解决方案
- lorawanL073.zip
- 思科网络技术学院教程CCNA Exploration
- lora技术资料文档
- Lora 数据中文设计指导
- LoRa STM32103 调试好的接收发送工程
- 通过LoraWan模块将数据上传至阿里云
- lora比较火,最全面的资料!
评论
共有 条评论