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.
Fork of mbed-src by
Diff: targets/hal/TARGET_STM/TARGET_NUCLEO_F091RC/PinNames.h
- Revision:
- 404:cbc7dfcb0ce9
- Parent:
- 355:fcc1051343cd
diff -r 91a4bea587f4 -r cbc7dfcb0ce9 targets/hal/TARGET_STM/TARGET_NUCLEO_F091RC/PinNames.h
--- a/targets/hal/TARGET_STM/TARGET_NUCLEO_F091RC/PinNames.h Fri Nov 14 09:15:08 2014 +0000
+++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_F091RC/PinNames.h Fri Nov 14 10:15:07 2014 +0000
@@ -36,12 +36,11 @@
extern "C" {
#endif
+// See stm32f0xx_hal_gpio.h and stm32f0xx_hal_gpio_ex.h for values of MODE, PUPD and AFNUM
#define STM_PIN_DATA(MODE, PUPD, AFNUM) ((int)(((AFNUM) << 7) | ((PUPD) << 4) | ((MODE) << 0)))
-
#define STM_PIN_MODE(X) (((X) >> 0) & 0x0F)
#define STM_PIN_PUPD(X) (((X) >> 4) & 0x07)
#define STM_PIN_AFNUM(X) (((X) >> 7) & 0x0F)
-
#define STM_MODE_INPUT (0)
#define STM_MODE_OUTPUT_PP (1)
#define STM_MODE_OUTPUT_OD (2)
