A10 serial driver (still needs some work). From Alan Carvalho de Assis

This commit is contained in:
Gregory Nutt 2013-12-13 16:41:44 -06:00
parent c0e8a124a1
commit f80d82d14f
3 changed files with 32 additions and 6 deletions

View File

@ -187,10 +187,15 @@ pcDuino v1 Connectors
Serial Console Serial Console
============== ==============
Two UART connections are available: 1. UART0 is available on J5 Debug Port.
UART0 is available on J5 Debug Port. J15 Pin 1 Rx UART0-RX UART0_RX/IR1_RX/PB23
UART2 is available on J11 J15 Pin 2 Tx UART0-TX UART0_TX/IR1_TX/PB22
2. UART2 is available on J11
J11 Pin1 UART-Rx / GPIO0 UART2_RX EINT31/SPI1_MISO/UART2_RX/PI19
J11 Pin2 UART-Tx / GPIO1 UART2_TX EINT30/SPI1_MOSI/UART2_TX/PI18
By default, the serial console will be provided on UART0 in all of these By default, the serial console will be provided on UART0 in all of these
configurations. configurations.

View File

@ -42,6 +42,8 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include "chip/a1x_piocfg.h"
/************************************************************************************ /************************************************************************************
* Definitions * Definitions
************************************************************************************/ ************************************************************************************/
@ -126,6 +128,25 @@
/* NAND *****************************************************************************/ /* NAND *****************************************************************************/
/* GPIO pin disambiguation **********************************************************/ /* GPIO pin disambiguation **********************************************************/
/* UARTs ****************************************************************************/
/* Two UART connections are available:
*
* 1. UART0 is available on J5 Debug Port.
*
* J15 Pin 1 Rx UART0-RX UART0_RX/IR1_RX/PB23
* J15 Pin 2 Tx UART0-TX UART0_TX/IR1_TX/PB22
*
* 2. UART2 is available on J11
*
* J11 Pin1 UART-Rx / GPIO0 UART2_RX EINT31/SPI1_MISO/UART2_RX/PI19
* J11 Pin2 UART-Tx / GPIO1 UART2_TX EINT30/SPI1_MOSI/UART2_TX/PI18
*/
#define PIO_UART0_RX PIO_UART0_RX_1
#define PIO_UART0_TX PIO_UART0_TX_1
#define PIO_UART2_RX PIO_UART2_RX_1
#define PIO_UART2_TX PIO_UART2_TX_1
/************************************************************************************ /************************************************************************************
* Assembly Language Macros * Assembly Language Macros

View File

@ -123,9 +123,9 @@
void a1x_led_initialize(void) void a1x_led_initialize(void)
{ {
a1x_configpio(PIO_LED1); a1x_pio_config(PIO_LED1);
a1x_configpio(PIO_LED3); a1x_pio_config(PIO_LED3);
a1x_configpio(PIO_LED4); a1x_pio_config(PIO_LED4);
} }
/**************************************************************************** /****************************************************************************