code crashes accessing randomization code

Dependencies:   LoRaWAN-SX1272-Application-24-31-9sec X_NUCLEO_IKS01A1 driver_mbed_TH02 LoRaWAN-lib-v1_0_1 SX1272Lib mbed

Fork of LoRaWAN-SX1272-Application-24-31-9sec by Oleh Zvonarov

Committer:
ubhat
Date:
Thu Apr 06 21:59:50 2017 +0000
Revision:
0:6cc76d70e2a1
Child:
4:d49b89361b67
LoRaWAN SX1272 Application

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ubhat 0:6cc76d70e2a1 1 /*
ubhat 0:6cc76d70e2a1 2 / _____) _ | |
ubhat 0:6cc76d70e2a1 3 ( (____ _____ ____ _| |_ _____ ____| |__
ubhat 0:6cc76d70e2a1 4 \____ \| ___ | (_ _) ___ |/ ___) _ \
ubhat 0:6cc76d70e2a1 5 _____) ) ____| | | || |_| ____( (___| | | |
ubhat 0:6cc76d70e2a1 6 (______/|_____)_|_|_| \__)_____)\____)_| |_|
ubhat 0:6cc76d70e2a1 7 (C)2015 Semtech
ubhat 0:6cc76d70e2a1 8
ubhat 0:6cc76d70e2a1 9 Description: Define events during Join, Tx & Rx
ubhat 0:6cc76d70e2a1 10 Prepare TX packet by appending with appropriate application data
ubhat 0:6cc76d70e2a1 11
ubhat 0:6cc76d70e2a1 12 License: Revised BSD License, see LICENSE.TXT file include in the project
ubhat 0:6cc76d70e2a1 13
ubhat 0:6cc76d70e2a1 14 Maintainer: Uttam Bhat
ubhat 0:6cc76d70e2a1 15 */
ubhat 0:6cc76d70e2a1 16
ubhat 0:6cc76d70e2a1 17 #ifndef __LORA_EVENT_PROC_H__
ubhat 0:6cc76d70e2a1 18 #define __LORA_EVENT_PROC_H__
ubhat 0:6cc76d70e2a1 19
ubhat 0:6cc76d70e2a1 20 #include "board.h"
ubhat 0:6cc76d70e2a1 21 #include "LoRaApp.h"
ubhat 0:6cc76d70e2a1 22 #include "LoRaDeviceStateProc.h"
ubhat 0:6cc76d70e2a1 23
ubhat 0:6cc76d70e2a1 24 #define APP_TX_DUTYCYCLE_RND 1000000
ubhat 0:6cc76d70e2a1 25
ubhat 0:6cc76d70e2a1 26 /*!
ubhat 0:6cc76d70e2a1 27 * \brief Prepares the payload of the frame specific to the application port
ubhat 0:6cc76d70e2a1 28 *
ubhat 0:6cc76d70e2a1 29 * \param [IN] port application port
ubhat 0:6cc76d70e2a1 30 */
ubhat 0:6cc76d70e2a1 31 void PrepareLoRaFrame( uint8_t port );
ubhat 0:6cc76d70e2a1 32
ubhat 0:6cc76d70e2a1 33 /*!
ubhat 0:6cc76d70e2a1 34 * \brief Prepares the payload of the frame based on application port
ubhat 0:6cc76d70e2a1 35 */
ubhat 0:6cc76d70e2a1 36 void InitNextTxInterrupt( uint8_t port );
ubhat 0:6cc76d70e2a1 37
ubhat 0:6cc76d70e2a1 38 /*!
ubhat 0:6cc76d70e2a1 39 * \brief Define action during the Network Join process: Blink, Toggle or Set LED ON
ubhat 0:6cc76d70e2a1 40 */
ubhat 0:6cc76d70e2a1 41 void JoinEvent( void );
ubhat 0:6cc76d70e2a1 42
ubhat 0:6cc76d70e2a1 43 /*!
ubhat 0:6cc76d70e2a1 44 * \brief Define action during the Transmit process: Blink, Toggle or Set LED ON
ubhat 0:6cc76d70e2a1 45 */
ubhat 0:6cc76d70e2a1 46 void TxEvent( void );
ubhat 0:6cc76d70e2a1 47
ubhat 0:6cc76d70e2a1 48 /*!
ubhat 0:6cc76d70e2a1 49 * \brief Define action when downlink received: Blink, Toggle or Set LED ON
ubhat 0:6cc76d70e2a1 50 */
ubhat 0:6cc76d70e2a1 51 void RxEvent( void );
ubhat 0:6cc76d70e2a1 52
ubhat 0:6cc76d70e2a1 53 #endif // __LORA_EVENT_PROC_H__