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
app/ComplianceTest.h@8:0a3a16fd1bc8, 2017-11-27 (annotated)
- Committer:
- billvs
- Date:
- Mon Nov 27 20:49:31 2017 +0000
- Revision:
- 8:0a3a16fd1bc8
- Parent:
- 0:6cc76d70e2a1
crashes with autoconfig address on L073RZ
Who changed what in which revision?
User | Revision | Line number | New 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: Definition of parameters for Compliance Test |
ubhat | 0:6cc76d70e2a1 | 10 | |
ubhat | 0:6cc76d70e2a1 | 11 | License: Revised BSD License, see LICENSE.TXT file include in the project |
ubhat | 0:6cc76d70e2a1 | 12 | |
ubhat | 0:6cc76d70e2a1 | 13 | Maintainer: Miguel Luis and Gregory Cristian |
ubhat | 0:6cc76d70e2a1 | 14 | */ |
ubhat | 0:6cc76d70e2a1 | 15 | #ifndef __COMPLIANCE_H__ |
ubhat | 0:6cc76d70e2a1 | 16 | #define __COMPLIANCE_H__ |
ubhat | 0:6cc76d70e2a1 | 17 | |
ubhat | 0:6cc76d70e2a1 | 18 | #include "mbed.h" |
ubhat | 0:6cc76d70e2a1 | 19 | #include "Common.h" |
ubhat | 0:6cc76d70e2a1 | 20 | #include "Config.h" |
ubhat | 0:6cc76d70e2a1 | 21 | #include "LoRaMac.h" |
ubhat | 0:6cc76d70e2a1 | 22 | |
ubhat | 0:6cc76d70e2a1 | 23 | #define COMPLIANCE_TX_DUTYCYCLE 5000000 // 5sec |
ubhat | 0:6cc76d70e2a1 | 24 | |
ubhat | 0:6cc76d70e2a1 | 25 | struct ComplianceTest_s |
ubhat | 0:6cc76d70e2a1 | 26 | { |
ubhat | 0:6cc76d70e2a1 | 27 | bool Running; |
ubhat | 0:6cc76d70e2a1 | 28 | uint8_t State; |
ubhat | 0:6cc76d70e2a1 | 29 | bool IsTxConfirmed; |
ubhat | 0:6cc76d70e2a1 | 30 | uint8_t AppPort; |
ubhat | 0:6cc76d70e2a1 | 31 | uint8_t AppDataSize; |
ubhat | 0:6cc76d70e2a1 | 32 | uint8_t *AppDataBuffer; |
ubhat | 0:6cc76d70e2a1 | 33 | uint16_t DownLinkCounter; |
ubhat | 0:6cc76d70e2a1 | 34 | bool LinkCheck; |
ubhat | 0:6cc76d70e2a1 | 35 | uint8_t DemodMargin; |
ubhat | 0:6cc76d70e2a1 | 36 | uint8_t NbGateways; |
ubhat | 0:6cc76d70e2a1 | 37 | }; |
ubhat | 0:6cc76d70e2a1 | 38 | |
ubhat | 0:6cc76d70e2a1 | 39 | extern ComplianceTest_s ComplianceTest; |
ubhat | 0:6cc76d70e2a1 | 40 | |
ubhat | 0:6cc76d70e2a1 | 41 | void PrepareComplianceTestFrame( McpsIndication_t *McpsIndication ); |
ubhat | 0:6cc76d70e2a1 | 42 | void RunComplianceTest( void ); |
ubhat | 0:6cc76d70e2a1 | 43 | |
ubhat | 0:6cc76d70e2a1 | 44 | #endif // __COMPLIANCE_H__ |