Changed startup_STM32F401xe.s & stm32f401xe.sct files to allow the use of the STM32F401RB

Fork of mbed-src by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Tue Mar 17 10:45:08 2015 +0000
Parent:
491:b97b6b70036c
Child:
493:c83ebf47c0ae
Commit message:
Synchronized with git revision d1b1a93371e056e8929afc40b62b04f26a758fe7

Full URL: https://github.com/mbedmicro/mbed/commit/d1b1a93371e056e8929afc40b62b04f26a758fe7/

Nucleo F103RB - gpio_is_connected method readdition

Changed in this revision

targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/gpio_object.h Show annotated file Show diff for this revision Revisions of this file
--- a/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/gpio_object.h	Mon Mar 16 09:45:08 2015 +0000
+++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/gpio_object.h	Tue Mar 17 10:45:08 2015 +0000
@@ -64,6 +64,10 @@
     return ((*obj->reg_in & obj->mask) ? 1 : 0);
 }
 
+static inline int gpio_is_connected(const gpio_t *obj) {
+    return obj->pin != (PinName)NC;
+}
+
 #ifdef __cplusplus
 }
 #endif