From 5399fa2b6f7f5fd8b2e9d5174fc81635f2a65bfd Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Tue, 18 Sep 2012 15:56:22 +0100 Subject: [PATCH] cc2530dk: Fixed the startup text for dongle builds See Pull Request #21 --- platform/cc2530dk/contiki-main.c | 2 +- platform/cc2530dk/models.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/cc2530dk/contiki-main.c b/platform/cc2530dk/contiki-main.c index 13fc6e983..b5ac1555e 100644 --- a/platform/cc2530dk/contiki-main.c +++ b/platform/cc2530dk/contiki-main.c @@ -174,7 +174,7 @@ main(void) CC_NON_BANKED PUTSTRING("##########################################\n"); putstring(CONTIKI_VERSION_STRING "\n"); - putstring("TI SmartRF05 EB\n"); + putstring(MODEL_STRING); switch(CHIPID) { case 0xA5: putstring("cc2530"); diff --git a/platform/cc2530dk/models.h b/platform/cc2530dk/models.h index 8d42cbf1b..fde6811c8 100644 --- a/platform/cc2530dk/models.h +++ b/platform/cc2530dk/models.h @@ -65,6 +65,7 @@ * 2: P1_1 (Green - active: low) */ #if MODEL_CC2531 +#define MODEL_STRING "TI cc2531 USB Dongle\n" #define USB_CONF_ENABLE 1 /* Enabled the ISR for Interrupt Num 6 */ @@ -93,6 +94,7 @@ #define LED2_MASK 0x01 #define LED1_MASK 0x02 #else +#define MODEL_STRING "TI SmartRF05 EB\n" #define LEDS_GREEN 1 #define LEDS_RED 2