Simple implementation of LoRaWAN-demo-76 by Semtech.
Dependencies: mbed LoRaWAN-lib SX1276Lib
Dependents: simple-demo-76_revised_20171113 simple-demo-76_revised_20171208
Fork of LoRaWAN-demo-76 by
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 "debug.h" 00021 #include "system/utilities.h" 00022 #include "sx1276-hal.h" 00023 00024 #define USE_BAND_868 00025 00026 extern SX1276MB1xAS Radio; 00027 00028 /*! 00029 * \brief Disable interrupts 00030 * 00031 * \remark IRQ nesting is managed 00032 */ 00033 void BoardDisableIrq( void ); 00034 00035 /*! 00036 * \brief Enable interrupts 00037 * 00038 * \remark IRQ nesting is managed 00039 */ 00040 void BoardEnableIrq( void ); 00041 00042 /*! 00043 * \brief Initializes the target board peripherals. 00044 */ 00045 void BoardInit( void ); 00046 00047 /*! 00048 * \brief Measure the Battery level 00049 * 00050 * \retval value battery level ( 0: very low, 254: fully charged ) 00051 */ 00052 uint8_t BoardGetBatteryLevel( void ); 00053 00054 #endif // __BOARD_H__
Generated on Fri Jul 15 2022 03:19:08 by 1.7.2