Обновление
This commit is contained in:
parent
87028e8a82
commit
20cc027f2e
12
Lins.c
12
Lins.c
|
|
@ -385,20 +385,20 @@ tLinData *Lin5_Init(lin_callback_ext_t Lin_ExtCallbackHandler) {
|
||||||
tGpioInitStruct.ePinLevel = GPIO_HIGH;
|
tGpioInitStruct.ePinLevel = GPIO_HIGH;
|
||||||
GPIO_InitPins(GPIO_A, &tGpioInitStruct);
|
GPIO_InitPins(GPIO_A, &tGpioInitStruct);
|
||||||
|
|
||||||
// Port D8: MUX = GPIO output ENABLE
|
// Port A6: MUX = GPIO output ENABLE
|
||||||
tInitStruct.u32PortPins = PORT_PIN_8;
|
tInitStruct.u32PortPins = PORT_PIN_6;
|
||||||
tInitStruct.uPortPinMux.u32PortPinMode = PORT_GPIO_MODE;
|
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.ePinDirection = GPIO_OUT;
|
||||||
tGpioInitStruct.ePinLevel = GPIO_HIGH;
|
tGpioInitStruct.ePinLevel = GPIO_HIGH;
|
||||||
GPIO_InitPins(GPIO_D, &tGpioInitStruct);
|
GPIO_InitPins(GPIO_A, &tGpioInitStruct);
|
||||||
|
|
||||||
LIN_Initial(
|
LIN_Initial(
|
||||||
&env->lin5,
|
&env->lin5,
|
||||||
FCUART0,
|
FCUART0,
|
||||||
19200,
|
9600,
|
||||||
|
|
||||||
0, // UART0 = 0 ... UART7 = 7
|
0, // UART0 = 0 ... UART7 = 7
|
||||||
FCUART0_IRQn, // FCUART0_IRQn ... FCUART7_IRQn
|
FCUART0_IRQn, // FCUART0_IRQn ... FCUART7_IRQn
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue