I really like Chibios, but i have some trouble now. I want to use the UART's of my stm32f4 Discovery board. To use them, I have to initialize the corresponding pins with PAL_MODE_ALTERNATE(7 or 8). In Case of UART4, it is
Code: Select all
palSetPadMode(GPIOA, 0, PAL_MODE_ALTERNATE(8));
palSetPadMode(GPIOA, 1, PAL_MODE_ALTERNATE(8));My problem is, that I cant define these pins as alternate function AND output (Pin 0) as pushpull OR input (pin 1) as Pullup. This is necessary for using higher baudrates in my hardware. I tried
Code: Select all
palSetPadMode(GPIOA, 0, PAL_MODE_ALTERNATE(8) | PAL_MODE_OUTPUT_PUSHPULL);and
Code: Select all
palSetPadMode(GPIOA, 0, PAL_MODE_ALTERNATE(8) | PAL_MODE_INPUT_PULLUP);both resulting to absolute no function. Has anybody an idea, how I can manage that?
Tank you!