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:
Thu Mar 16 13:00:29 2017 +0000
Parent:
1:db6e7986719f
Child:
3:66a5c9d73855
Commit message:
Merge pull request #24 from ARMmbed/K66F

K66F support
.
Commit copied from https://github.com/ARMmbed/nanostack-border-router

Changed in this revision

configs/6lowpan_Atmel_RF.json Show annotated file Show diff for this revision Revisions of this file
configs/6lowpan_Spirit1_RF.json Show annotated file Show diff for this revision Revisions of this file
configs/Thread_Atmel_RF.json Show annotated file Show diff for this revision Revisions of this file
configs/Thread_SLIP_Atmel_RF.json Show annotated file Show diff for this revision Revisions of this file
drivers/TARGET_K64F/sal-nanostack-driver-k64f-eth.lib Show diff for this revision Revisions of this file
drivers/TARGET_MCUXpresso_MCUS/sal-nanostack-driver-k64f-eth.lib Show annotated file Show diff for this revision Revisions of this file
mbed_app.json 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
--- a/configs/6lowpan_Atmel_RF.json	Mon Mar 13 14:15:26 2017 +0000
+++ b/configs/6lowpan_Atmel_RF.json	Thu Mar 16 13:00:29 2017 +0000
@@ -77,6 +77,9 @@
             "SERIAL_RX": "PTE1",
             "SERIAL_CTS": "PTE2",
             "SERIAL_RTS": "PTE3"
+        },
+        "K66F": {
+            "LED": "LED_GREEN"
         }
     }
 }
--- a/configs/6lowpan_Spirit1_RF.json	Mon Mar 13 14:15:26 2017 +0000
+++ b/configs/6lowpan_Spirit1_RF.json	Thu Mar 16 13:00:29 2017 +0000
@@ -78,6 +78,9 @@
     	    "SERIAL_RX": "SERIAL_RX",
     	    "SERIAL_CTS": "PD_11",
     	    "SERIAL_RTS": "PD_12"
+        },
+        "K66F": {
+            "LED": "LED_GREEN"
         }
     },
     "macros": ["SPIRIT1_SPI_MOSI=PB_5"]
--- a/configs/Thread_Atmel_RF.json	Mon Mar 13 14:15:26 2017 +0000
+++ b/configs/Thread_Atmel_RF.json	Thu Mar 16 13:00:29 2017 +0000
@@ -59,6 +59,9 @@
             "SERIAL_RX": "PTE1",
             "SERIAL_CTS": "PTE2",
             "SERIAL_RTS": "PTE3"
+        },
+        "K66F": {
+            "LED": "LED_GREEN"
         }
     }
 }
--- a/configs/Thread_SLIP_Atmel_RF.json	Mon Mar 13 14:15:26 2017 +0000
+++ b/configs/Thread_SLIP_Atmel_RF.json	Thu Mar 16 13:00:29 2017 +0000
@@ -61,6 +61,9 @@
             "SERIAL_RX": "PTE1",
             "SERIAL_CTS": "PTE2",
             "SERIAL_RTS": "PTE3"
+        },
+        "K66F": {
+            "LED": "LED_GREEN"
         }
     }
 }
--- a/drivers/TARGET_K64F/sal-nanostack-driver-k64f-eth.lib	Mon Mar 13 14:15:26 2017 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://github.com/ARMmbed/sal-nanostack-driver-k64f-eth/#dafa84646b48287273c57d0f677ccc39e33c4cb3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/drivers/TARGET_MCUXpresso_MCUS/sal-nanostack-driver-k64f-eth.lib	Thu Mar 16 13:00:29 2017 +0000
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/sal-nanostack-driver-k64f-eth/#ee7e8a9a2122415d45b93eb8e1abdc933b1a9c97
--- a/mbed_app.json	Mon Mar 13 14:15:26 2017 +0000
+++ b/mbed_app.json	Thu Mar 16 13:00:29 2017 +0000
@@ -77,6 +77,9 @@
             "SERIAL_RX": "PTE1",
             "SERIAL_CTS": "PTE2",
             "SERIAL_RTS": "PTE3"
+        },
+        "K66F": {
+            "LED": "LED_GREEN"
         }
     }
 }
--- a/source/border_router_main.cpp	Mon Mar 13 14:15:26 2017 +0000
+++ b/source/border_router_main.cpp	Thu Mar 16 13:00:29 2017 +0000
@@ -125,7 +125,9 @@
     #error "MAC address not defined"
 #endif
 
-    led_ticker.attach_us(toggle_led1, 500000);
+    if (MBED_CONF_APP_LED != NC) {
+        led_ticker.attach_us(toggle_led1, 500000);
+    }
     border_router_start();
 }