Fixes to get the PIC32MX serial port working
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4062 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
f6b63d6284
commit
64fba1740e
@ -153,6 +153,8 @@ void up_initialize(void)
|
||||
|
||||
#ifdef CONFIG_USE_SERIALDRIVER
|
||||
up_serialinit();
|
||||
#elif defined(CONFIG_DEV_LOWCONSOLE)
|
||||
lowconsole_init();
|
||||
#endif
|
||||
|
||||
/* Initialize the netwok */
|
||||
|
@ -301,7 +301,7 @@ void pic32mx_uartconfigure(uintptr_t uart_base, uint32_t baudrate,
|
||||
|
||||
/* Enable the UART */
|
||||
|
||||
pic32mx_putreg(uart_base, PIC32MX_UART_MODESET_OFFSET,
|
||||
pic32mx_putreg(uart_base, PIC32MX_UART_STASET_OFFSET,
|
||||
UART_STA_UTXEN | UART_STA_URXEN);
|
||||
pic32mx_putreg(uart_base, PIC32MX_UART_MODESET_OFFSET,
|
||||
UART_MODE_ON);
|
||||
|
Loading…
Reference in New Issue
Block a user