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:
patacongo
2011-10-24 23:51:46 +00:00
parent 13e9a60e3a
commit 6cdf5f8fd8
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -153,6 +153,8 @@ void up_initialize(void)
#ifdef CONFIG_USE_SERIALDRIVER #ifdef CONFIG_USE_SERIALDRIVER
up_serialinit(); up_serialinit();
#elif defined(CONFIG_DEV_LOWCONSOLE)
lowconsole_init();
#endif #endif
/* Initialize the netwok */ /* Initialize the netwok */
+1 -1
View File
@@ -301,7 +301,7 @@ void pic32mx_uartconfigure(uintptr_t uart_base, uint32_t baudrate,
/* Enable the UART */ /* 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); UART_STA_UTXEN | UART_STA_URXEN);
pic32mx_putreg(uart_base, PIC32MX_UART_MODESET_OFFSET, pic32mx_putreg(uart_base, PIC32MX_UART_MODESET_OFFSET,
UART_MODE_ON); UART_MODE_ON);