Damian Gabino / picoGW_mcu
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers board.h Source File

board.h

00001 /*
00002  / _____)             _              | |
00003 ( (____  _____ ____ _| |_ _____  ____| |__
00004  \____ \| ___ |    (_   _) ___ |/ ___)  _ \
00005  _____) ) ____| | | || |_| ____( (___| | | |
00006 (______/|_____)_|_|_| \__)_____)\____)_| |_|
00007   (C)2017 Semtech
00008 */
00009 #ifndef BOARD_H
00010 #define BOARD_H
00011 
00012 #include "mbed.h"
00013 #include "SX1308.h"
00014 
00015 //#define USE_UART 1
00016 
00017 #define BOOTLOADER_ADDR         0x1FFF0004
00018 #define GOTO_BOOTLOADER         0x10
00019 
00020 #define DATA_EEPROM_BASE       ( ( uint32_t )0x8011000U )              /*!< DATA_EEPROM base address in the alias region */
00021 #define DATA_EEPROM_END        ( ( uint32_t )DATA_EEPROM_BASE + 2048 ) /*!< DATA EEPROM end address in the alias region */
00022 
00023 extern SX1308 Sx1308;
00024 
00025 #ifndef USE_UART
00026 extern Serial pc;
00027 #endif
00028 
00029 extern DigitalOut HSCLKEN ;
00030 extern DigitalOut RADIO_RST ;
00031 #ifdef V2
00032 extern DigitalOut FEM_EN;
00033 #endif
00034 
00035 extern void  FLASH_Prog( uint32_t Address, uint8_t Data );
00036 #endif