end node on synchronous star LoRa network.
Dependencies: SX127x sx12xx_hal TSL2561
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 #undef MBED_DEBUG 00019 #include "mbed.h" 00020 #include "debug.h" 00021 #include "system/utilities.h" 00022 #include "lora_config.h" 00023 00024 /*! 00025 * \brief Disable interrupts 00026 * 00027 * \remark IRQ nesting is managed 00028 */ 00029 void BoardDisableIrq( void ); 00030 00031 /*! 00032 * \brief Enable interrupts 00033 * 00034 * \remark IRQ nesting is managed 00035 */ 00036 void BoardEnableIrq( void ); 00037 00038 /*! 00039 * \brief Initializes the target board peripherals. 00040 */ 00041 void BoardInit( void ); 00042 00043 /*! 00044 * \brief Measure the Battery level 00045 * 00046 * \retval value battery level ( 0: very low, 254: fully charged ) 00047 */ 00048 uint8_t BoardGetBatteryLevel( void ); 00049 00050 void BoardGetUniqueId( uint8_t *id ); 00051 00052 extern UnbufferedSerial pc; 00053 00054 #define FW_VERS "v0.12" 00055 00056 void pc_printf(const char *fmt, ...); 00057 void mac_printf(const char *fmt, ...); 00058 void app_printf(const char *fmt, ...); 00059 00060 #endif // __BOARD_H__
Generated on Wed Jul 13 2022 01:56:41 by 1.7.2