Fixed bugs 2953981 and 2953985.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1634 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
439038efb4
commit
aa71eb0989
|
@ -113,6 +113,7 @@ typedef struct {
|
||||||
typedef struct {
|
typedef struct {
|
||||||
IOREG32 PS_SEL0;
|
IOREG32 PS_SEL0;
|
||||||
IOREG32 PS_SEL1;
|
IOREG32 PS_SEL1;
|
||||||
|
IOREG32 _dummy[3];
|
||||||
IOREG32 PS_SEL2;
|
IOREG32 PS_SEL2;
|
||||||
} PS;
|
} PS;
|
||||||
|
|
||||||
|
|
|
@ -85,12 +85,13 @@ static void uart_init(SerialDriver *sdp) {
|
||||||
*/
|
*/
|
||||||
static void uart_deinit(UART *u) {
|
static void uart_deinit(UART *u) {
|
||||||
|
|
||||||
|
u->UART_LCR = LCR_DLAB;
|
||||||
u->UART_DLL = 1;
|
u->UART_DLL = 1;
|
||||||
u->UART_DLM = 0;
|
u->UART_DLM = 0;
|
||||||
|
u->UART_LCR = 0;
|
||||||
u->UART_FDR = 0x10;
|
u->UART_FDR = 0x10;
|
||||||
u->UART_IER = 0;
|
u->UART_IER = 0;
|
||||||
u->UART_FCR = FCR_RXRESET | FCR_TXRESET;
|
u->UART_FCR = FCR_RXRESET | FCR_TXRESET;
|
||||||
u->UART_LCR = 0;
|
|
||||||
u->UART_ACR = 0;
|
u->UART_ACR = 0;
|
||||||
u->UART_TER = TER_ENABLE;
|
u->UART_TER = TER_ENABLE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,6 +52,10 @@
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
|
|
||||||
*** 1.5.2 ***
|
*** 1.5.2 ***
|
||||||
|
- FIX: Fixed wrong UART deinitialization sequence in LPC214x serial driver
|
||||||
|
(bug 2953985)(backported in 1.4.1).
|
||||||
|
- FIX: Fixed wrong PINSEL2 offset into lpc214x.h (bug 2953981)(backported
|
||||||
|
in 1.4.1).
|
||||||
- FIX: Fixed invalid UART-related macro in the LPC214x HAL (bug 2953195)
|
- FIX: Fixed invalid UART-related macro in the LPC214x HAL (bug 2953195)
|
||||||
(backported in 1.4.1).
|
(backported in 1.4.1).
|
||||||
- FIX: Impossible to enforce alignment greater of a pointer size for heap/core
|
- FIX: Impossible to enforce alignment greater of a pointer size for heap/core
|
||||||
|
|
Loading…
Reference in New Issue