Amir Chaudhary / Mbed 2 deprecated LoRaWAN-hello-world_new_mcu_Anish

Dependencies:   mbed

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)2015 Semtech
00008 
00009 Description: Target board general functions implementation
00010 
00011 License: Revised BSD License, see LICENSE.TXT file include in the project
00012 
00013 Maintainer: Miguel Luis and Gregory Cristian
00014 */
00015 #ifndef __BOARD_H__
00016 #define __BOARD_H__
00017 
00018 #include "mbed.h"
00019 #include "system/timer.h"
00020 #include "system/utilities.h"
00021 #include "sx1276-hal.h"
00022 
00023 #define USE_BAND_915
00024 
00025 extern SX1276MB1xAS  Radio ;
00026 
00027 /*!
00028  * \brief Disable interrupts
00029  *
00030  * \remark IRQ nesting is managed
00031  */
00032 void BoardDisableIrq( void );
00033 
00034 /*!
00035  * \brief Enable interrupts
00036  *
00037  * \remark IRQ nesting is managed
00038  */
00039 void BoardEnableIrq( void );
00040 
00041 /*!
00042  * \brief Initializes the target board peripherals.
00043  */
00044 void BoardInit( void );
00045 
00046 /*!
00047  * \brief Measure the Battery level
00048  *
00049  * \retval value  battery level ( 0: very low, 254: fully charged )
00050  */
00051 uint8_t BoardGetBatteryLevel( void );
00052 
00053 #endif // __BOARD_H__