Обновление платы на V2
This commit is contained in:
parent
3df9b83c7e
commit
c69b54c875
17
Lins.c
17
Lins.c
|
|
@ -386,15 +386,16 @@ tLinData *Lin5_Init(lin_callback_ext_t Lin_ExtCallbackHandler) {
|
||||||
GPIO_InitPins(GPIO_A, &tGpioInitStruct);
|
GPIO_InitPins(GPIO_A, &tGpioInitStruct);
|
||||||
|
|
||||||
// Port A6: MUX = GPIO output ENABLE Fix V2
|
// Port A6: MUX = GPIO output ENABLE Fix V2
|
||||||
//tInitStruct.u32PortPins = PORT_PIN_6;
|
tInitStruct.u32PortPins = PORT_PIN_6;
|
||||||
//tInitStruct.uPortPinMux.u32PortPinMode = PORT_GPIO_MODE;
|
tInitStruct.uPortPinMux.u32PortPinMode = PORT_GPIO_MODE;
|
||||||
//PORT_InitPins(PORT_A, &tInitStruct);
|
PORT_InitPins(PORT_A, &tInitStruct);
|
||||||
|
|
||||||
//tGpioInitStruct.u32GpioPins = GPIO_PIN_6;
|
tGpioInitStruct.u32GpioPins = GPIO_PIN_6;
|
||||||
//tGpioInitStruct.ePinDirection = GPIO_OUT;
|
tGpioInitStruct.ePinDirection = GPIO_OUT;
|
||||||
//tGpioInitStruct.ePinLevel = GPIO_HIGH;
|
tGpioInitStruct.ePinLevel = GPIO_HIGH;
|
||||||
//GPIO_InitPins(GPIO_A, &tGpioInitStruct);
|
GPIO_InitPins(GPIO_A, &tGpioInitStruct);
|
||||||
|
|
||||||
|
/*
|
||||||
// Port A7: MUX = GPIO output ENABLE
|
// Port A7: MUX = GPIO output ENABLE
|
||||||
tInitStruct.u32PortPins = PORT_PIN_7;
|
tInitStruct.u32PortPins = PORT_PIN_7;
|
||||||
tInitStruct.uPortPinMux.u32PortPinMode = PORT_GPIO_MODE;
|
tInitStruct.uPortPinMux.u32PortPinMode = PORT_GPIO_MODE;
|
||||||
|
|
@ -404,7 +405,7 @@ tLinData *Lin5_Init(lin_callback_ext_t Lin_ExtCallbackHandler) {
|
||||||
tGpioInitStruct.ePinDirection = GPIO_OUT;
|
tGpioInitStruct.ePinDirection = GPIO_OUT;
|
||||||
tGpioInitStruct.ePinLevel = GPIO_HIGH;
|
tGpioInitStruct.ePinLevel = GPIO_HIGH;
|
||||||
GPIO_InitPins(GPIO_A, &tGpioInitStruct);
|
GPIO_InitPins(GPIO_A, &tGpioInitStruct);
|
||||||
|
*/
|
||||||
|
|
||||||
LIN_Initial(
|
LIN_Initial(
|
||||||
&env->lin5,
|
&env->lin5,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue