Nanostack Border Router is a generic mbed border router implementation that provides the 6LoWPAN ND or Thread border router initialization logic.

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Mon Mar 11 14:02:41 2019 +0000
Parent:
92:7faf6dcb791f
Child:
94:0c008659750c
Commit message:
Merge pull request #161 from ARMmbed/IOTTHD-3286

Allow compilation with non K64F/K66F boards
.
Commit copied from https://github.com/ARMmbed/nanostack-border-router

Changed in this revision

drivers/TARGET_MCUXpresso_MCUS/sal-nanostack-driver-k64f-eth.lib Show annotated file Show diff for this revision Revisions of this file
source/border_router_main.cpp Show annotated file Show diff for this revision Revisions of this file
source/mbedtls_thread_config.h Show annotated file Show diff for this revision Revisions of this file
--- a/drivers/TARGET_MCUXpresso_MCUS/sal-nanostack-driver-k64f-eth.lib	Mon Mar 04 09:02:42 2019 +0000
+++ b/drivers/TARGET_MCUXpresso_MCUS/sal-nanostack-driver-k64f-eth.lib	Mon Mar 11 14:02:41 2019 +0000
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/sal-nanostack-driver-k64f-eth/#b73d37cc229c595270baf50e83c80376e7c4a95d
+https://github.com/ARMmbed/sal-nanostack-driver-k64f-eth/#ffb13d8887945526f53020a92658ea1bc7d100fd
--- a/source/border_router_main.cpp	Mon Mar 04 09:02:42 2019 +0000
+++ b/source/border_router_main.cpp	Mon Mar 11 14:02:41 2019 +0000
@@ -167,7 +167,21 @@
     tr_info("Starting NanoStack Border Router...");
     tr_info("Build date: %s %s", __DATE__, __TIME__);
 #ifdef MBED_MAJOR_VERSION
-    tr_info("Mbed OS version: %d.%d.%d\n", MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION);
+    tr_info("Mbed OS: %d", MBED_VERSION);
+#endif
+
+#if defined(MBED_SYS_STATS_ENABLED)
+    mbed_stats_sys_t stats;
+    mbed_stats_sys_get(&stats);
+
+    /* ARM = 1, GCC_ARM = 2, IAR = 3 */
+    tr_info("Compiler ID: %d", stats.compiler_id);
+    /* Compiler versions:
+       ARM: PVVbbbb (P = Major; VV = Minor; bbbb = build number)
+       GCC: VVRRPP  (VV = Version; RR = Revision; PP = Patch)
+       IAR: VRRRPPP (V = Version; RRR = Revision; PPP = Patch)
+    */
+    tr_info("Compiler Version: %d", stats.compiler_version);
 #endif
 }
 
@@ -175,7 +189,6 @@
  * \brief The entry point for this application.
  * Sets up the application and starts the border router module.
  */
-
 int main(int argc, char **argv)
 {
     ns_hal_init(app_stack_heap, APP_DEFINED_HEAP_SIZE, app_heap_error_handler, &heap_info);
--- a/source/mbedtls_thread_config.h	Mon Mar 04 09:02:42 2019 +0000
+++ b/source/mbedtls_thread_config.h	Mon Mar 11 14:02:41 2019 +0000
@@ -50,6 +50,7 @@
 
 /* Save RAM by adjusting to our exact needs */
 #define MBEDTLS_ECP_MAX_BITS             256
+#undef MBEDTLS_MPI_MAX_SIZE
 #define MBEDTLS_MPI_MAX_SIZE              32 // 256 bits is 32 bytes
 
 /* Save ROM and a few bytes of RAM by specifying our own ciphersuite list */