[En-Nut-Discussion] Difference between source and GUI configurator
Krzysztof Sawicki
krzysztof.sawicki at mobile.put.edu.pl
Wed Jan 16 15:48:54 CET 2013
And another report:
there is difference in CANBUS1_REMAP_CAN meaning
between
nut/arch/cm3/dev/stm/stm32_can1.c
and
GUI configurator.
In nut/arch/cm3/dev/stm/stm32_can1.c:
#if (CANBUS1_REMAP_CAN == 1)
#define CANBUS_REMAP AFIO_MAPR_CAN_REMAP_REMAP2
#define CAN1RX_GPIO_PORT NUTGPIO_PORTB
#define CAN1TX_GPIO_PORT NUTGPIO_PORTB
#define CAN1RX_GPIO_PIN 8
#define CAN1TX_GPIO_PIN 9
#elif (CANBUS1_REMAP_CAN == 2)
#define CANBUS_REMAP AFIO_MAPR_CAN_REMAP_REMAP3
#define CAN1RX_GPIO_PORT NUTGPIO_PORTD
#define CAN1TX_GPIO_PORT NUTGPIO_PORTD
#define CAN1RX_GPIO_PIN 0
#define CAN1TX_GPIO_PIN 1
#else
#undef CANBUS_REMAP
#define CANBUS_REMAP AFIO_MAPR_CAN_REMAP_REMAP1
#define CAN1RX_GPIO_PORT NUTGPIO_PORTA
#define CAN1TX_GPIO_PORT NUTGPIO_PORTA
#define CAN1RX_GPIO_PIN 11
#define CAN1TX_GPIO_PIN 12
#endif
and in configurator:
Choice 0: CAN_RX PA11 CAN_TX PA12
Choice 1: Not available
Choice 2: CAN_RX PB8 CAN_TX PB9 (Not available on 36-pin package)
Choice 3: CAN_RX PD0 CAN_TX PD1
--
Krzysztof Sawicki
Mobile Systems Research Labs, Poznan University of Technology
More information about the En-Nut-Discussion
mailing list