git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10033 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Giovanni Di Sirio 2017-01-11 10:48:29 +00:00
parent 72b36371b2
commit 1187f7fad4
3 changed files with 4 additions and 2 deletions

View File

@ -177,7 +177,7 @@ void _pal_lld_setgroupmode(ioportid_t port,
port->OTYPER = (port->OTYPER & ~m1) | otyper;
port->OSPEEDR = (port->OSPEEDR & ~m2) | ospeedr;
port->PUPDR = (port->PUPDR & ~m2) | pupdr;
if (moder == PAL_STM32_MODE_ALTERNATE) {
if ((mode & PAL_STM32_MODE_MASK) == PAL_STM32_MODE_ALTERNATE) {
/* If going in alternate mode then the alternate number is set
before switching mode in order to avoid glitches.*/
if (bit < 8)

View File

@ -163,7 +163,7 @@ void _pal_lld_setgroupmode(ioportid_t port,
port->ASCR = (port->ASCR & ~m1) | ascr;
port->OSPEEDR = (port->OSPEEDR & ~m2) | ospeedr;
port->PUPDR = (port->PUPDR & ~m2) | pupdr;
if (moder == PAL_STM32_MODE_ALTERNATE) {
if ((mode & PAL_STM32_MODE_MASK) == PAL_STM32_MODE_ALTERNATE) {
/* If going in alternate mode then the alternate number is set
before switching mode in order to avoid glitches.*/
if (bit < 8)

View File

@ -153,6 +153,8 @@
- RT: Merged RT4.
- NIL: Merged NIL2.
- NIL: Added STM32F7 demo.
- HAL: Fixed setting alternate mode in STM32 GPIOv3 and GPIOv3 drivers can fail
(bug #813)(backported to 16.1.7).
- HAL: Fixed incorrect handling of shared ISRs in STM32 DMAv1 driver
(bug #812)(backported to 16.1.7).
- HAL: Fixed protocol violation in usbDisableEndpointsI() API (bug #811)