ответвлено от xt-sys/exectos
Use correct address when clearing COM port buffer
The code was reading from Port->Address to clear the RBR before the field was initialized.
Этот коммит содержится в:
коммит произвёл
CodingWorkshop Signing Team
родитель
e778a95a01
Коммит
da3e039a05
@@ -277,7 +277,7 @@ HlInitializeComPort(IN OUT PCPPORT Port,
|
||||
HlIoPortOutByte(PtrToUshort(PortAddress + (ULONG)COMPORT_REG_MCR), COMPORT_MCR_NOM);
|
||||
|
||||
/* Read junk data out of the Receive Buffer Register (RBR) */
|
||||
HlIoPortInByte(PtrToUshort(Port->Address + (ULONG)COMPORT_REG_RBR));
|
||||
HlIoPortInByte(PtrToUshort(PortAddress + (ULONG)COMPORT_REG_RBR));
|
||||
|
||||
/* Store port details */
|
||||
Port->Address = PortAddress;
|
||||
|
||||
Ссылка в новой задаче
Block a user