[En-Nut-Discussion] devnut_m3n/STM32F1: GPIO Speed definition

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Thu Jul 21 12:22:08 CEST 2011


Hello,

rm0008.pdf/V13/page 156/1093 says:
Table 21. Output MODE bits
              MODE[1:0]            Meaning
                 00                Reserved
                 01        Max. output speed 10 MHz
                 10        Max. output speed 2 MHz
                 11        Max. output speed 50 MHz

while include/dev/gpio_stm32.h defines

/*!
 * \brief GPIO output direction enabled.
 *
 * If set, the pin is configured as an output. Otherwise it is in
 * input mode or z-state.
 * For STM32F it is configured as output 50MHz.
 */
#define GPIO_CFG_OUTPUT     0x00000002

Shouldn't this be 
#define GPIO_CFG_OUTPUT     0x00000003
and perhaps 
#define GPIO_CFG_OUTPUT_2MHZ   0x00000002
#define GPIO_CFG_OUTPUT_10MHZ  0x00000001

And Args!
The STM32F2 GPIO register definition is different!

Bye
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------


More information about the En-Nut-Discussion mailing list