diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-11-14 11:23:33 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-11-14 11:23:33 +0000 |
commit | dc283fd4e68b3d5f19f8577195699b7d7e2801f8 (patch) | |
tree | 1ddc14d138b87897145976b07ffc8e9fe8c973b6 /os | |
parent | 4e1aad3172a7beb6e15df3a69c7c66084378de4d (diff) | |
download | ChibiOS-dc283fd4e68b3d5f19f8577195699b7d7e2801f8.tar.gz ChibiOS-dc283fd4e68b3d5f19f8577195699b7d7e2801f8.tar.bz2 ChibiOS-dc283fd4e68b3d5f19f8577195699b7d7e2801f8.zip |
Fixed bug 2897636.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1289 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/io/platforms/STM32/pal_lld.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/os/io/platforms/STM32/pal_lld.c b/os/io/platforms/STM32/pal_lld.c index 154fbf4a7..83428e8e1 100644 --- a/os/io/platforms/STM32/pal_lld.c +++ b/os/io/platforms/STM32/pal_lld.c @@ -141,15 +141,15 @@ void _pal_lld_setgroupmode(ioportid_t port, mh <<= 4;
crl <<= 4;
crh <<= 4;
- if ((mask & 1) == 0)
+ if ((mask & 0x0080) == 0)
ml |= 0xf;
else
crl |= cfg;
- if ((mask & 0x10000) == 0)
+ if ((mask & 0x8000) == 0)
mh |= 0xf;
else
crh |= cfg;
- mask >>= 1;
+ mask <<= 1;
}
port->CRH = (port->CRH & mh) | crh;
port->CRL = (port->CRL & ml) | crl;
|