MCU driver/HAL for the Picocell Gateway concentrator board. The firmware implements either a USB CDC protocol or a UART protocol to bridge commands coming from host to the SX1308 SPI interface.
Diff: src/MAIN/board.h
- Revision:
- 0:c76361bd82e8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/MAIN/board.h Wed Apr 11 14:42:47 2018 +0000 @@ -0,0 +1,36 @@ +/* + / _____) _ | | +( (____ _____ ____ _| |_ _____ ____| |__ + \____ \| ___ | (_ _) ___ |/ ___) _ \ + _____) ) ____| | | || |_| ____( (___| | | | +(______/|_____)_|_|_| \__)_____)\____)_| |_| + (C)2017 Semtech +*/ +#ifndef BOARD_H +#define BOARD_H + +#include "mbed.h" +#include "SX1308.h" + +//#define USE_UART 1 + +#define BOOTLOADER_ADDR 0x1FFF0004 +#define GOTO_BOOTLOADER 0x10 + +#define DATA_EEPROM_BASE ( ( uint32_t )0x8011000U ) /*!< DATA_EEPROM base address in the alias region */ +#define DATA_EEPROM_END ( ( uint32_t )DATA_EEPROM_BASE + 2048 ) /*!< DATA EEPROM end address in the alias region */ + +extern SX1308 Sx1308; + +#ifndef USE_UART +extern Serial pc; +#endif + +extern DigitalOut HSCLKEN ; +extern DigitalOut RADIO_RST ; +#ifdef V2 +extern DigitalOut FEM_EN; +#endif + +extern void FLASH_Prog( uint32_t Address, uint8_t Data ); +#endif