Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: 1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB
Fork of mbed by
Diff: TARGET_NUCLEO_F103RB/PinNames.h
- Revision:
- 77:869cf507173a
- Parent:
- 76:824293ae5e43
- Child:
- 81:7d30d6019079
diff -r 824293ae5e43 -r 869cf507173a TARGET_NUCLEO_F103RB/PinNames.h
--- a/TARGET_NUCLEO_F103RB/PinNames.h Mon Jan 13 15:31:11 2014 +0200
+++ b/TARGET_NUCLEO_F103RB/PinNames.h Fri Feb 14 14:36:43 2014 +0000
@@ -42,15 +42,17 @@
#define STM_PIN_MODE(X) ((X) >> 8)
#define STM_PIN_AFNUM(X) ((X) & 0xFF)
+// High nibble = port number (0=A, 1=B, 2=C, 3=D, 4=E, 5=F, 6=G, 7=H)
+// Low nibble = pin number
+#define STM_PORT(X) (((uint32_t)(X) >> 4) & 0xF)
+#define STM_PIN(X) ((uint32_t)(X) & 0xF)
+
typedef enum {
PIN_INPUT,
PIN_OUTPUT
} PinDirection;
typedef enum {
-
- // high nibble = port number (0=A, 1=B, 2=C, 3=D, 4=E, 5=F)
- // low nibble = pin number
PA_0 = 0x00,
PA_1 = 0x01,
PA_2 = 0x02,
@@ -102,8 +104,9 @@
PC_14 = 0x2E,
PC_15 = 0x2F,
+ PD_0 = 0x30,
+ PD_1 = 0x31,
PD_2 = 0x32,
- PD_8 = 0x38,
// Arduino connector namings
A0 = PA_0,
