pazi88 / STM32_CAN

CAN bus Library for Arduino STM32
GNU General Public License v3.0
67 stars 28 forks source link

Support for pin mapping on STM32F042 #35

Open TT-ZX opened 4 months ago

TT-ZX commented 4 months ago

On the UFQFPN28 and TSSOP20 packages, pins PA11/PA12 must be remapped in place of pins PA9/PA10 to use the CAN peripheral. I do this in my code with SYSCFG->CFGR1 |= SYSCFG_CFGR1_PA11_PA12_RMP. I think it would be good to include this in your library if practical.