Revert "Fix setting alternate port functions on the STM32F2."

This was also fixed in ac29b654a9 in a
different way. I think the mask definition should be left with 1s
indicating the bits of interest.

See also 87ea496ca7.

This reverts commit 2433f17e73.
This commit is contained in:
Fergus Noble
2012-03-21 20:19:36 -07:00
parent 87ea496ca7
commit a30fc96c59

View File

@@ -232,7 +232,7 @@
/* See Datasheet Table 6 (pg. 48) for alternate function mappings. */
#define GPIO_AFR(n, af) (af << ((n) * 4))
#define GPIO_AFR_MASK(n) ~(0xf << ((n) * 4))
#define GPIO_AFR_MASK(n) (0xf << ((n) * 4))
#define GPIO_AF0 0x0
#define GPIO_AF1 0x1
#define GPIO_AF2 0x2