cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to port ChibiOS funtion to some combination of the STM32 library?

cnhx27
Associate III
Posted on October 14, 2014 at 19:17

Hi,

I would like to port some Chibios functions with some combination of the STM32 library and direct bit banging.

I use STM32F103RB board. The ChibiOS operating system functions

are:

/* FSMC setup for F1 */
rccEnableAHB(RCC_AHBENR_FSMCEN, 0);
/* FSMC timing */
FSMC_Bank1->BTCR[FSMC_Bank+1] = (6) | (10 << 8) | (10 << 16);
/* Bank1 NOR/SRAM control register configuration. This is actually not needed as already set by default after reset */
FSMC_Bank1->BTCR[FSMC_Bank] = FSMC_BCR1_MWID_0 | FSMC_BCR1_WREN | FSMC_BCR1_MBKEN;

Is it possible? Thanks for your help. Rem : Excuse me for my poor english, I'm french. :)
0 REPLIES 0