yes i did like this...
/* Enable GPIOD and AFIO clocks for remapping */
RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO | RCC_APB2Periph_GPIOD, ENABLE);
/* Configure CAN1 RX pin */
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_0;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU;
GPIO_Init(GPIOD, &GPIO ...
Search found 2 matches
- Thu Jun 21, 2012 10:19 am
- Forum: General Support
- Topic: STM32F107VC CAN bus pin remap
- Replies: 5
- Views: 5343
- Wed Jun 20, 2012 10:52 pm
- Forum: General Support
- Topic: STM32F107VC CAN bus pin remap
- Replies: 5
- Views: 5343
STM32F107VC CAN bus pin remap
hi.
i am using the STM32F107VC board from IAR i have some example code for CAN but in my Board they used the PD0 and PD1 for CAN i dont know how to remap it in my code. i have 2 board and i want to sent data between 2 boards.
void GPIO_Configuration(void)
{
GPIO_InitTypeDef GPIO_InitStructure ...
i am using the STM32F107VC board from IAR i have some example code for CAN but in my Board they used the PD0 and PD1 for CAN i dont know how to remap it in my code. i have 2 board and i want to sent data between 2 boards.
void GPIO_Configuration(void)
{
GPIO_InitTypeDef GPIO_InitStructure ...