mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
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:
@@ -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 */
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user