переписана инициализация usb интерфейса, убран can интерфейс из командного интерфейса, причина - конфликт прерываний usb и can
This commit is contained in:
parent
7355a1233b
commit
9a5adf17ab
|
|
@ -22,13 +22,13 @@ static void Mma_InitComInt(
|
||||||
) {
|
) {
|
||||||
tSerialPortIO *thisComIntPortIO;
|
tSerialPortIO *thisComIntPortIO;
|
||||||
|
|
||||||
thisComIntPortIO = &env->serialPorts->ComIntHalfDuplexIo;
|
|
||||||
|
|
||||||
// if(GpioPinGet(&env->power.pins->usb)){
|
|
||||||
// thisComIntPortIO = &env->serialPorts->SerialPortUsbIO;
|
|
||||||
// } else {
|
|
||||||
// thisComIntPortIO = &env->serialPorts->ComIntHalfDuplexIo;
|
// thisComIntPortIO = &env->serialPorts->ComIntHalfDuplexIo;
|
||||||
// }
|
|
||||||
|
if(GpioPinGet(&env->power.pins->usb)){
|
||||||
|
thisComIntPortIO = &env->serialPorts->SerialPortUsbIO;
|
||||||
|
} else {
|
||||||
|
thisComIntPortIO = &env->serialPorts->ComIntHalfDuplexIo;
|
||||||
|
}
|
||||||
|
|
||||||
// thisComIntPortIO = &env->serialPorts->SerialPortCan2IO;
|
// thisComIntPortIO = &env->serialPorts->SerialPortCan2IO;
|
||||||
ComInt_Init(
|
ComInt_Init(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue