diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-24 23:51:46 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-24 23:51:46 +0000 |
commit | d1070dd752bae7f60ca97ef593eafa2249919629 (patch) | |
tree | 338cb28e22afdeacc07fa4cfd19d4057a66714b4 /nuttx/arch | |
parent | 2464d9fe2f0b97e88e10956539258e1fa35de108 (diff) | |
download | px4-nuttx-d1070dd752bae7f60ca97ef593eafa2249919629.tar.gz px4-nuttx-d1070dd752bae7f60ca97ef593eafa2249919629.tar.bz2 px4-nuttx-d1070dd752bae7f60ca97ef593eafa2249919629.zip |
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
Diffstat (limited to 'nuttx/arch')
-rw-r--r-- | nuttx/arch/mips/src/common/up_initialize.c | 2 | ||||
-rw-r--r-- | nuttx/arch/mips/src/pic32mx/pic32mx-lowconsole.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/arch/mips/src/common/up_initialize.c b/nuttx/arch/mips/src/common/up_initialize.c index 93af8667b..b51319175 100644 --- a/nuttx/arch/mips/src/common/up_initialize.c +++ b/nuttx/arch/mips/src/common/up_initialize.c @@ -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 */ diff --git a/nuttx/arch/mips/src/pic32mx/pic32mx-lowconsole.c b/nuttx/arch/mips/src/pic32mx/pic32mx-lowconsole.c index c6452e2b3..f8d318bf0 100644 --- a/nuttx/arch/mips/src/pic32mx/pic32mx-lowconsole.c +++ b/nuttx/arch/mips/src/pic32mx/pic32mx-lowconsole.c @@ -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); |