Configure STM32 pins for the CAN alternate function.