[En-Nut-Discussion] Difference between source and GUI configurator
Krzysztof Sawicki
krzysztof.sawicki at mobile.put.edu.pl
Tue Jan 29 09:43:52 CET 2013
W dniu 2013-01-18 11:16, Uwe Bonnes napisał(a):
>>>>>> "Krzysztof" == Krzysztof Sawicki
>>>>>> <krzysztof.sawicki at mobile.put.edu.pl> writes:
>
> Krzysztof> And another report: there is difference in
> CANBUS1_REMAP_CAN
> Krzysztof> meaning between nut/arch/cm3/dev/stm/stm32_can1.c and
> GUI
> Krzysztof> configurator.
>
> Krzysztof> In nut/arch/cm3/dev/stm/stm32_can1.c: #if
> (CANBUS1_REMAP_CAN
> Krzysztof> == 1) #define CANBUS_REMAP AFIO_MAPR_CAN_REMAP_REMAP2
> #define
> Krzysztof> CAN1RX_GPIO_PORT NUTGPIO_PORTB #define
> CAN1TX_GPIO_PORT
> Krzysztof> NUTGPIO_PORTB #define CAN1RX_GPIO_PIN 8 #define
> Krzysztof> CAN1TX_GPIO_PIN 9
>
> Krzysztof> #elif (CANBUS1_REMAP_CAN == 2) #define CANBUS_REMAP
> Krzysztof> AFIO_MAPR_CAN_REMAP_REMAP3 #define CAN1RX_GPIO_PORT
> Krzysztof> NUTGPIO_PORTD #define CAN1TX_GPIO_PORT NUTGPIO_PORTD
> #define
> Krzysztof> CAN1RX_GPIO_PIN 0 #define CAN1TX_GPIO_PIN 1 #else
> #undef
> Krzysztof> CANBUS_REMAP #define CANBUS_REMAP
> AFIO_MAPR_CAN_REMAP_REMAP1
> Krzysztof> #define CAN1RX_GPIO_PORT NUTGPIO_PORTA #define
> Krzysztof> CAN1TX_GPIO_PORT NUTGPIO_PORTA #define CAN1RX_GPIO_PIN
> 11
> Krzysztof> #define CAN1TX_GPIO_PIN 12 #endif
>
> So instead of
>
> 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
> it should be
> Choice 0: CAN_RX PA11 CAN_TX PA12
> Choice 1: CAN_RX PB8 CAN_TX PB9 (Not available on 36-pin package)
> Choice 2: CAN_RX PD0 CAN_TX PD1
>
> Did you consider a patch?
>
> Bye
So, I'm back after holidays :)
I've posted patch at sourceforge (artifact ID: 3602482).
--
Krzysztof Sawicki
Mobile Systems Research Labs, Poznan University of Technology
More information about the En-Nut-Discussion
mailing list