Question
Selecting an alternate function
Posted on November 11, 2012 at 23:46
Reading UM0033, page 138, figure 14.
Sorry, can not exactly understand it. For example, I want to connect C.8 to CAN1_TX and C.9 to CAN1_RX. I see AF9 (CAN1/CAN2, TIM12..14). and need to use GPIOC_AFRH(LSB)GPIOC->AFR[1].&= ~0x0000000F; // clr
GPIOC->AFR[1].|= 0x00000009; // AF9But how do I know that it is CAN1, not the other alternatives and where is CAN1_TX and CAN1_RX?
Thanks #alternate-function-mapping