cc2538 platform.c: set link-layer address in phase two, as the Netstack initialization code needs it

This commit is contained in:
Simon Duquennoy 2017-10-18 18:19:45 +02:00 committed by George Oikonomou
parent 7abc331047
commit ff4ad7998a
4 changed files with 11 additions and 13 deletions

View File

@ -159,6 +159,8 @@ platform_init_stage_two()
crypto_disable();
#endif
set_rf_params();
INTERRUPTS_ENABLE();
fade(LEDS_GREEN);
@ -167,9 +169,7 @@ platform_init_stage_two()
void
platform_init_stage_three()
{
LOG_INFO(BOARD_STRING);
set_rf_params();
LOG_INFO("%s\n", BOARD_STRING);
soc_print_info();

View File

@ -157,6 +157,8 @@ platform_init_stage_two()
crypto_disable();
#endif
set_rf_params();
INTERRUPTS_ENABLE();
fade(LEDS_BLUE);
@ -165,12 +167,10 @@ platform_init_stage_two()
void
platform_init_stage_three()
{
LOG_INFO(BOARD_STRING);
LOG_INFO("%s\n", BOARD_STRING);
board_init();
set_rf_params();
soc_print_info();
process_start(&sensors_process, NULL);

View File

@ -177,14 +177,14 @@ platform_init_stage_two()
serial_line_init();
set_rf_params();
fade(LEDS_GREEN);
}
/*---------------------------------------------------------------------------*/
void
platform_init_stage_three()
{
set_rf_params();
LOG_DBG("With DriverLib v%u.%u\n", DRIVERLIB_RELEASE_GROUP,
DRIVERLIB_RELEASE_BUILD);
LOG_INFO(BOARD_STRING "\n");

View File

@ -231,6 +231,8 @@ platform_init_stage_two()
crypto_disable();
#endif
set_rf_params();
INTERRUPTS_ENABLE();
fade(LEDS_BLUE);
@ -239,17 +241,13 @@ platform_init_stage_two()
void
platform_init_stage_three()
{
LOG_INFO(BOARD_STRING);
LOG_INFO("%s\n", BOARD_STRING);
board_init();
rtc_init();
set_rf_params();
#if PLATFORM_STARTUP_VERBOSE
soc_print_info();
#endif
process_start(&sensors_process, NULL);