diff options
-rw-r--r-- | os/hal/platforms/STM32/ext_lld.c | 6 | ||||
-rw-r--r-- | todo.txt | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/platforms/STM32/ext_lld.c b/os/hal/platforms/STM32/ext_lld.c index 4a3cd3c2e..ed80f524c 100644 --- a/os/hal/platforms/STM32/ext_lld.c +++ b/os/hal/platforms/STM32/ext_lld.c @@ -577,11 +577,11 @@ void ext_lld_channel_enable(EXTDriver *extp, expchannel_t channel) { /* Setting the associated GPIO for external channels.*/
if (channel < 16) {
- uint32_t n = channel & 3;
- uint32_t mask = 0xF << (channel >> 2);
+ uint32_t n = channel >> 2;
+ uint32_t mask = ~(0xF << (channel & 3));
uint32_t port = ((extp->config->channels[channel].mode &
EXT_MODE_GPIO_MASK) >>
- EXT_MODE_GPIO_OFF) << (channel >> 2);
+ EXT_MODE_GPIO_OFF) << (channel & 3);
#if defined(STM32L1XX_MD) || defined(STM32F2XX) || defined(STM32F4XX)
SYSCFG->EXTICR[n] = (SYSCFG->EXTICR[n] & mask) | port;
@@ -8,7 +8,6 @@ N = Decided against. Version 2.4.1
* MAC driver for STM32F107, STM32F2xx, STM32F4xx.
* SDC driver port to STM32F2 and STM32F4.
-* FatFs 0.9x integration.
X STM32F2 validation (so far testing done on STM32F4 only).
X Revision of the RTCv2 driver implementation.
- CAN2 support and CAN driver test on STM32F2/F4.
@@ -18,6 +17,7 @@ Within 2.5.x: * Handling of Virtual Timer callbacks out of critical zone.
* Add normal API (not iclass) variants of the VT functions.
* MMC_SPI driver speedup.
+* FatFs 0.9x integration.
- USB driver model revision.
X STM32 OTG USB cell support for CL, F2, F4 devices.
- Add USARTs support to the STM32 SPI driver.
|