mbed lib with startup delay fixed for Nucleo401RE
Fork of mbed-src by
Diff: common/board.c
- Revision:
- 113:65a335a675de
- Parent:
- 79:6fdc4ea80ae0
- Child:
- 127:ce7cebc0511f
--- a/common/board.c Fri Mar 07 16:00:07 2014 +0000 +++ b/common/board.c Mon Mar 10 11:30:07 2014 +0000 @@ -20,15 +20,15 @@ WEAK void mbed_die(void); WEAK void mbed_die(void) { __disable_irq(); // dont allow interrupts to disturb the flash pattern - + #if (DEVICE_ERROR_RED == 1) - gpio_t led_red; gpio_init(&led_red, LED_RED, PIN_OUTPUT); - + gpio_t led_red; gpio_init_out(&led_red, LED_RED); + #elif (DEVICE_ERROR_PATTERN == 1) - gpio_t led_1; gpio_init(&led_1, LED1, PIN_OUTPUT); - gpio_t led_2; gpio_init(&led_2, LED2, PIN_OUTPUT); - gpio_t led_3; gpio_init(&led_3, LED3, PIN_OUTPUT); - gpio_t led_4; gpio_init(&led_4, LED4, PIN_OUTPUT); + gpio_t led_1; gpio_init_out(&led_1, LED1); + gpio_t led_2; gpio_init_out(&led_2, LED2); + gpio_t led_3; gpio_init_out(&led_3, LED3); + gpio_t led_4; gpio_init_out(&led_4, LED4); #endif while (1) {