diff --git a/Lins.c b/Lins.c index 1aeef0d..686046b 100644 --- a/Lins.c +++ b/Lins.c @@ -385,20 +385,20 @@ tLinData *Lin5_Init(lin_callback_ext_t Lin_ExtCallbackHandler) { tGpioInitStruct.ePinLevel = GPIO_HIGH; GPIO_InitPins(GPIO_A, &tGpioInitStruct); - // Port D8: MUX = GPIO output ENABLE - tInitStruct.u32PortPins = PORT_PIN_8; + // Port A6: MUX = GPIO output ENABLE + tInitStruct.u32PortPins = PORT_PIN_6; tInitStruct.uPortPinMux.u32PortPinMode = PORT_GPIO_MODE; - PORT_InitPins(PORT_D, &tInitStruct); + PORT_InitPins(PORT_A, &tInitStruct); - tGpioInitStruct.u32GpioPins = GPIO_PIN_8; + tGpioInitStruct.u32GpioPins = GPIO_PIN_6; tGpioInitStruct.ePinDirection = GPIO_OUT; tGpioInitStruct.ePinLevel = GPIO_HIGH; - GPIO_InitPins(GPIO_D, &tGpioInitStruct); + GPIO_InitPins(GPIO_A, &tGpioInitStruct); LIN_Initial( &env->lin5, FCUART0, - 19200, + 9600, 0, // UART0 = 0 ... UART7 = 7 FCUART0_IRQn, // FCUART0_IRQn ... FCUART7_IRQn