Skip to content

Commit

Permalink
cc2538: Print SoC information upon startup
Browse files Browse the repository at this point in the history
If STARTUP_CONF_VERBOSE is enabled, print SoC information upon startup.

Signed-off-by: Benoît Thébaudeau <[email protected]>
  • Loading branch information
bthebaudeau committed Jun 11, 2016
1 parent b655d92 commit 9845973
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platform/cc2538dk/contiki-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 4 additions & 0 deletions platform/openmote-cc2538/contiki-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -181,6 +182,9 @@ main(void)

PUTS(CONTIKI_VERSION_STRING);
PUTS(BOARD_STRING);
#if STARTUP_CONF_VERBOSE
soc_print_info();
#endif

random_init(0);

Expand Down
4 changes: 4 additions & 0 deletions platform/zoul/contiki-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9845973

Please sign in to comment.