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: Eavesdropper BitstreamGenerator SimpleDecimationFilter 11U68_MP3Player with TFTLCD ... more
Diff: Devices/FastIO_NUCLEO_F401.h
- Revision:
- 7:1e784ae11fba
- Parent:
- 5:3dd1ab9bbc59
diff -r da3730030c07 -r 1e784ae11fba Devices/FastIO_NUCLEO_F401.h --- a/Devices/FastIO_NUCLEO_F401.h Thu Jul 17 15:08:03 2014 +0000 +++ b/Devices/FastIO_NUCLEO_F401.h Tue Jul 29 18:58:05 2014 +0000 @@ -13,7 +13,7 @@ #define INIT_PIN RCC->AHB1ENR |= (1 << STM_PORT(pin)); (PORT->MODER &= ~(GPIO_MODER_MODER0_1 << (STM_PIN(pin) * 2))); container.mask = PINMASK #define DESTROY_PIN -#define SET_DIR_INPUT (PORT->MODER &= ~(GPIO_MODER_MODER0 << (STM_PIN(pin) * 2))) +#define SET_DIR_INPUT (PORT->MODER &= ~(GPIO_MODER_MODER0_0 << (STM_PIN(pin) * 2))) #define SET_DIR_OUTPUT (PORT->MODER |= (GPIO_MODER_MODER0_0 << (STM_PIN(pin) * 2))) #define SET_MODE(pull) pin_mode(pin, pull);
