资源简介
sx1280,stm32l4
代码片段和文件信息
/*
______ _
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2016 Semtech
Description: Main program
Maintainer: Gregory Cristian & Gilbert Menth
*/
#include “mbed.h“
#include “Timers.h“
#include “Menu.h“
#include “Eeprom.h“
#include “GpsMax7.h“
#include “SX9306.h“
/*!
* \brief Define IO for Unused Pin
*/
DigitalOut F_CS( D6 ); // MBED description of pin
DigitalOut SD_CS( D8 ); // MBED description of pin
/*!
* \brief Specify serial datarate for UART debug output
*/
void baud( int baudrate )
{
Serial s( USBTX USBRX );
s.baud( baudrate );
}
int main( )
{
uint8_t currentPage = START_PAGE;
uint8_t demoStatusUpdate = 0; // used for screen display status
baud( 115200 );
F_CS = 1;
SD_CS = 1;
EepromInit( );
InitDemoApplication( );
MenuInit( );
TimersInit( );
Max7GpsInit( );
SX9306ProximityInit( );
printf( “Start SX1280DevKit : %s\n\r“ FIRMWARE_VERSION );
while( 1 )
{
currentPage = MenuHandler( demoStatusUpdate );
switch( currentPage )
{
case START_PAGE:
break;
case PAGE_PING_PONG:
demoStatusUpdate = RunDemoApplicationPingPong( );
break;
case PAGE_PER:
demoStatusUpdate = RunDemoApplicationPer( );
break;
case PAGE_RANGING_MASTER:
case PAGE_RANGING_SLAVE:
demoStatusUpdate = RunDemoApplicationRanging( );
break;
case PAGE_SLEEP_MODE:
demoStatusUpdate = RunDemoSleepMode( );
break;
case PAGE_STBY_RC_MODE:
demoStatusUpdate = RunDemoStandbyRcMode( );
break;
case PAGE_STBY_XOSC_MODE:
demoStatusUpdate = RunDemoStandbyXoscMode( );
break;
case PAGE_TX_CW:
demoStatusUpdate = RunDemoTxCw( );
break;
case PAGE_CONT_MODULATION:
demoStatusUpdate = RunDemoTxContinuousModulation( );
break;
case PAGE_UTILITIES:
// Extracts time and position information from the GPS module
Max7GpsHandle( );
SX9306ProximityHandle( ); //Deals with the proximity IC readings
break;
default: // Any page not running a demo
break;
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 654 2017-05-17 11:01 SX1280DevKit\GettingStarted.html
文件 117525 2017-05-30 12:12 SX1280DevKit\SX1280DevKit.uvprojx
文件 827 2017-05-30 12:12 SX1280DevKit\SX1280DevKit.uvoptx
文件 524 2017-05-30 12:12 SX1280DevKit\mbed_config.h
文件 8859 2017-05-30 12:01 SX1280DevKit\Demo\DemoApplication.h
文件 1128 2017-05-30 11:05 SX1280DevKit\Demo\FreqLUT.h
文件 8659 2017-05-30 11:05 SX1280DevKit\Demo\SX1280Lib\radio.h
文件 6567 2017-05-30 11:05 SX1280DevKit\Demo\SX1280Lib\sx1280-hal.h
文件 61049 2017-05-30 11:05 SX1280DevKit\Demo\SX1280Lib\sx1280.h
文件 4578 2017-05-30 11:05 SX1280DevKit\Display\DisplayDriver.h
文件 7882 2017-05-30 11:05 SX1280DevKit\Display\Menu.h
文件 3326 2017-05-30 11:05 SX1280DevKit\Display\DmTftLibrary\DmTftba
文件 1742 2017-05-30 11:05 SX1280DevKit\Display\DmTftLibrary\DmTftHX8353C.h
文件 1691 2017-05-30 11:05 SX1280DevKit\Display\DmTftLibrary\DmTftIli9325.h
文件 1590 2017-05-30 11:05 SX1280DevKit\Display\DmTftLibrary\DmTftIli9341.h
文件 5295 2017-05-30 11:05 SX1280DevKit\Display\DmTftLibrary\DmTftRa8875.h
文件 1697 2017-05-30 11:05 SX1280DevKit\Display\DmTftLibrary\DmTftS6D0164.h
文件 1662 2017-05-30 11:05 SX1280DevKit\Display\DmTftLibrary\DmTftSsd2119.h
文件 2905 2017-05-30 11:05 SX1280DevKit\Display\DmTftLibrary\DmTouch.h
文件 1676 2017-05-30 11:05 SX1280DevKit\Display\DmTftLibrary\DmTouchCalibration.h
文件 2412 2017-05-30 11:05 SX1280DevKit\Display\DmTftLibrary\DmTpFt6x06.h
文件 3021 2017-05-30 11:05 SX1280DevKit\Display\DmTftLibrary\dm_platform.h
文件 7088 2017-05-30 11:05 SX1280DevKit\Peripherals\Eeprom.h
文件 1356 2017-05-30 11:05 SX1280DevKit\Peripherals\GpsMax7.h
文件 3421 2017-05-30 11:05 SX1280DevKit\Peripherals\SX9306.h
文件 1644 2017-05-30 11:05 SX1280DevKit\Peripherals\Timers.h
文件 220896 2017-05-30 11:05 SX1280DevKit\Display\SemtechLogo.c
文件 7960 2017-05-30 11:05 SX1280DevKit\Display\DmTftLibrary\font.c
文件 2768 2017-05-30 11:05 SX1280DevKit\main.cpp
文件 84384 2017-05-30 12:01 SX1280DevKit\Demo\DemoApplication.cpp
文件 13804 2017-05-30 11:05 SX1280DevKit\Demo\SX1280Lib\sx1280-hal.cpp
............此处省略364个文件信息
- 上一篇:易通电脑锁破解版含内存注册机及破解补丁
- 下一篇:SX1280数据手册
评论
共有 条评论