mbed library sources

Fork of mbed-src by mbed official

Revision:
113:65a335a675de
Parent:
79:6fdc4ea80ae0
Child:
127:ce7cebc0511f
diff -r a7168c414ef2 -r 65a335a675de common/board.c
--- 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) {