From 9845973971d13fd0ed9960614c5cf13500a2f4d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Th=C3=A9baudeau?= Date: Sat, 11 Jun 2016 23:19:21 +0200 Subject: [PATCH] cc2538: Print SoC information upon startup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If STARTUP_CONF_VERBOSE is enabled, print SoC information upon startup. Signed-off-by: Benoît Thébaudeau --- platform/cc2538dk/contiki-main.c | 4 ++++ platform/openmote-cc2538/contiki-main.c | 4 ++++ platform/zoul/contiki-main.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/platform/cc2538dk/contiki-main.c b/platform/cc2538dk/contiki-main.c index 8d55dc1d0..6534b103c 100644 --- a/platform/cc2538dk/contiki-main.c +++ b/platform/cc2538dk/contiki-main.c @@ -64,6 +64,7 @@ #include "net/ip/tcpip.h" #include "net/ip/uip.h" #include "net/mac/frame802154.h" +#include "soc.h" #include "cpu.h" #include "reg.h" #include "ieee-addr.h" @@ -185,6 +186,9 @@ main(void) PUTS(CONTIKI_VERSION_STRING); PUTS(BOARD_STRING); +#if STARTUP_CONF_VERBOSE + soc_print_info(); +#endif PRINTF(" Net: "); PRINTF("%s\n", NETSTACK_NETWORK.name); diff --git a/platform/openmote-cc2538/contiki-main.c b/platform/openmote-cc2538/contiki-main.c index 39736463e..580f84f56 100644 --- a/platform/openmote-cc2538/contiki-main.c +++ b/platform/openmote-cc2538/contiki-main.c @@ -67,6 +67,7 @@ #include "net/ip/tcpip.h" #include "net/ip/uip.h" #include "net/mac/frame802154.h" +#include "soc.h" #include "cpu.h" #include "reg.h" #include "ieee-addr.h" @@ -181,6 +182,9 @@ main(void) PUTS(CONTIKI_VERSION_STRING); PUTS(BOARD_STRING); +#if STARTUP_CONF_VERBOSE + soc_print_info(); +#endif random_init(0); diff --git a/platform/zoul/contiki-main.c b/platform/zoul/contiki-main.c index fc9ed91e9..0779681d0 100644 --- a/platform/zoul/contiki-main.c +++ b/platform/zoul/contiki-main.c @@ -65,6 +65,7 @@ #include "net/ip/tcpip.h" #include "net/ip/uip.h" #include "net/mac/frame802154.h" +#include "soc.h" #include "cpu.h" #include "reg.h" #include "ieee-addr.h" @@ -185,6 +186,9 @@ main(void) PUTS(CONTIKI_VERSION_STRING); PUTS(BOARD_STRING); +#if STARTUP_CONF_VERBOSE + soc_print_info(); +#endif /* Initialise the H/W RNG engine. */ random_init(0);