Basic xdot code to check how many memory is available for user APP after initializing libxdot lorawan stack

Committer:
Taylor Heck
Date:
Tue May 25 09:54:33 2021 -0500
Revision:
42:20f6b29a9903
Parent:
35:cb358e793d1a
Target mbed-os 6 and Dot Library version 4.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mfiore 0:a151a6350d7f 1 #ifndef __EXAMPLE__CONFIG_H__
mfiore 0:a151a6350d7f 2 #define __EXAMPLE__CONFIG_H__
mfiore 0:a151a6350d7f 3
mfiore 0:a151a6350d7f 4 #define OTA_EXAMPLE 1 // see ota_example.cpp
mfiore 0:a151a6350d7f 5 #define AUTO_OTA_EXAMPLE 2 // see auto_ota_example.cpp
mfiore 0:a151a6350d7f 6 #define MANUAL_EXAMPLE 3 // see manual_example.cpp
mfiore 0:a151a6350d7f 7 #define PEER_TO_PEER_EXAMPLE 4 // see peer_to_peer_example.cpp
mfiore 0:a151a6350d7f 8 #define CLASS_C_EXAMPLE 5 // see class_c_example.cpp
jreiss 33:15ea8f985c54 9 #define CLASS_B_EXAMPLE 6 // see class_b_example.cpp
Jason Reiss 34:f6486829a451 10 #define FOTA_EXAMPLE 7 // see fota_example.cpp
mfiore 0:a151a6350d7f 11
mfiore 0:a151a6350d7f 12 // the active example is the one that will be compiled
Mike Fiore 21:09d05faf0e13 13 #if !defined(ACTIVE_EXAMPLE)
jreiss 35:cb358e793d1a 14 #define ACTIVE_EXAMPLE OTA_EXAMPLE
Mike Fiore 21:09d05faf0e13 15 #endif
mfiore 0:a151a6350d7f 16
Mike Fiore 21:09d05faf0e13 17 // the active channel plan is the one that will be compiled
Mike Fiore 21:09d05faf0e13 18 // options are :
Mike Fiore 21:09d05faf0e13 19 // CP_US915
Mike Fiore 21:09d05faf0e13 20 // CP_AU915
Mike Fiore 21:09d05faf0e13 21 // CP_EU868
Mike Fiore 21:09d05faf0e13 22 // CP_KR920
Mike Fiore 21:09d05faf0e13 23 // CP_AS923
Taylor Heck 42:20f6b29a9903 24 // CP_AS923_2
Taylor Heck 42:20f6b29a9903 25 // CP_AS923_3
Mike Fiore 21:09d05faf0e13 26 // CP_AS923_JAPAN
Taylor Heck 42:20f6b29a9903 27 // CP_AS923_JAPAN1
Taylor Heck 42:20f6b29a9903 28 // CP_AS923_JAPAN2
mfiore 22:d9bc10bbc433 29 // CP_IN865
Taylor Heck 42:20f6b29a9903 30 // CP_RU864
Taylor Heck 42:20f6b29a9903 31
Mike Fiore 21:09d05faf0e13 32 #if !defined(CHANNEL_PLAN)
Mike Fiore 21:09d05faf0e13 33 #define CHANNEL_PLAN CP_US915
Mike Fiore 21:09d05faf0e13 34 #endif
Mike Fiore 21:09d05faf0e13 35
Mike Fiore 21:09d05faf0e13 36 #endif