This is my first post, so i will began to thanks the authors of chibios, which seems, for my beginners eyes,
a fantastic, well designed, and orthogonal project to simplfy / permit the use of the body-builded mcu that we can afford now.
After having using pic32/freertos, i try chibios/stm32f4, for educational purpose, and also
to use it in a future version of an uav autopilot.
I use 2.5.0 git version of chibios, a stm32f4 discovery board wired with sdcard reader in sdio mode,
and have merged the discovery demo and Barthess sdio code to log sensors and adc data to the sdcard.
It works now, but i don't understand the use of the PAL_MODE_ALTERNATE macro.
I need to use
Code: Select all
palSetPadMode(GPIOA, 2, PAL_MODE_ALTERNATE(7));
palSetPadMode(GPIOA, 3, PAL_MODE_ALTERNATE(7));
in order to have serial console on usart2, but standard location of usart2 is already
on PA2,3. So i think that i don't have understand PAL_MODE_ALTERNATE use
(the parameter is a pin number, or a function ?, if it's a function why it is not named by a macro ?)
I have hit another problem with dma channel conflict, would it be possible to have a preprocessor based system which can
statically detect conflicts ?
I don't know if it's possible to verify that just with preprocessor, or should i write
a perl script which could detect such conflicts by parsing mcuconf.h, with that script called by the Makefile.
Thanks for any help.
ps: i have read thread about the need of a freertos like version of the documentation,
of course it's a lot of work, but it would be a major help for chibios beginers
Alexandre