Dmitry Kovalev
/
LG2
fork
Fork of LG by
Diff: el_lin.c
- Revision:
- 47:d902ef6f7564
- Parent:
- 30:17c84ed091b3
- Child:
- 91:a2bb81eaa183
diff -r 2670fa0fcebc -r d902ef6f7564 el_lin.c --- a/el_lin.c Wed Feb 10 03:02:35 2016 +0000 +++ b/el_lin.c Wed Feb 10 14:06:57 2016 +0000 @@ -363,8 +363,11 @@ #endif LPC_SC->PCONP |= (1<<4); //switch on UART1 - LPC_PINCON->PINSEL4 |= (2<<0)|(2<<2)|(2<<10)|(2<<14); //P2.0, P2.1, P2.5, P2.7 + // LPC_PINCON->PINSEL4 |= (2<<0)|(2<<2)|(2<<10)|(2<<14); //P2.0, P2.1, P2.5, P2.7 + LPC_PINCON->PINSEL4 |= (2<<0)|(2<<2); //P2.0, P2.1, P2.5, + + pclk = SystemCoreClock/4; LPC_UART1->LCR = word_length_8 |one_stop_bit |no_parity |back_trans_dis |DLAB_access;