mbed library sources
Dependents: Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more
Superseded
This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.
Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.
If you are looking for a stable and tested release, please import one of the official mbed library releases:
Import librarymbed
The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
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) {