Basic SCI support
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1152 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
a5e870f756
commit
2df3c50052
@ -51,8 +51,14 @@
|
|||||||
|
|
||||||
/* Clocking *****************************************************************/
|
/* Clocking *****************************************************************/
|
||||||
|
|
||||||
|
#define SH1_CLOCK 10000000 /* 10 MHz */
|
||||||
|
|
||||||
/* LED definitions **********************************************************/
|
/* LED definitions **********************************************************/
|
||||||
|
|
||||||
|
/* The SH1_LPEVB has no user controllable LEDs. These are provided only
|
||||||
|
* in the event that CONFIG_ARCH_LEDs is enabled.
|
||||||
|
*/
|
||||||
|
|
||||||
#define LED_STARTED 0
|
#define LED_STARTED 0
|
||||||
#define LED_HEAPALLOCATE 1
|
#define LED_HEAPALLOCATE 1
|
||||||
#define LED_IRQSENABLED 2
|
#define LED_IRQSENABLED 2
|
||||||
|
@ -92,20 +92,20 @@ CONFIG_ARCH_STACKDUMP=y
|
|||||||
# CONFIG_UARTn_PARTIY - 0=no parity, 1=odd parity, 2=even parity, 3=mark 1, 4=space 0
|
# CONFIG_UARTn_PARTIY - 0=no parity, 1=odd parity, 2=even parity, 3=mark 1, 4=space 0
|
||||||
# CONFIG_UARTn_2STOP - Two stop bits
|
# CONFIG_UARTn_2STOP - Two stop bits
|
||||||
#
|
#
|
||||||
CONFIG_UART0_SERIAL_CONSOLE=y
|
CONFIG_SCI0_SERIAL_CONSOLE=y
|
||||||
CONFIG_UART1_SERIAL_CONSOLE=n
|
CONFIG_SCI1_SERIAL_CONSOLE=n
|
||||||
CONFIG_UART0_TXBUFSIZE=256
|
CONFIG_SCI0_TXBUFSIZE=256
|
||||||
CONFIG_UART1_TXBUFSIZE=256
|
CONFIG_SCI1_TXBUFSIZE=256
|
||||||
CONFIG_UART0_RXBUFSIZE=256
|
CONFIG_SCI0_RXBUFSIZE=256
|
||||||
CONFIG_UART1_RXBUFSIZE=256
|
CONFIG_SCI1_RXBUFSIZE=256
|
||||||
CONFIG_UART0_BAUD=38400
|
CONFIG_SCI0_BAUD=9600
|
||||||
CONFIG_UART1_BAUD=38400
|
CONFIG_SCI1_BAUD=9600
|
||||||
CONFIG_UART0_BITS=8
|
CONFIG_SCI0_BITS=8
|
||||||
CONFIG_UART1_BITS=8
|
CONFIG_SCI1_BITS=8
|
||||||
CONFIG_UART0_PARITY=0
|
CONFIG_SCI0_PARITY=0
|
||||||
CONFIG_UART1_PARITY=0
|
CONFIG_SCI1_PARITY=0
|
||||||
CONFIG_UART0_2STOP=0
|
CONFIG_SCI0_2STOP=0
|
||||||
CONFIG_UART1_2STOP=0
|
CONFIG_SCI1_2STOP=0
|
||||||
|
|
||||||
#
|
#
|
||||||
# General build options
|
# General build options
|
||||||
|
@ -67,7 +67,9 @@
|
|||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
void up_ledinit(void)
|
void up_ledinit(void)
|
||||||
{
|
{
|
||||||
#warning "To be provided"
|
/* The SH1_LPEVB has no user controllable LEDs. This is provided only
|
||||||
|
* in the event that CONFIG_ARCH_LEDs is enabled.
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@ -76,7 +78,9 @@ void up_ledinit(void)
|
|||||||
|
|
||||||
void up_ledon(int led)
|
void up_ledon(int led)
|
||||||
{
|
{
|
||||||
#warning "To be provided"
|
/* The SH1_LPEVB has no user controllable LEDs. This is provided only
|
||||||
|
* in the event that CONFIG_ARCH_LEDs is enabled.
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@ -85,6 +89,8 @@ void up_ledon(int led)
|
|||||||
|
|
||||||
void up_ledoff(int led)
|
void up_ledoff(int led)
|
||||||
{
|
{
|
||||||
#warning "To be provided"
|
/* The SH1_LPEVB has no user controllable LEDs. This is provided only
|
||||||
|
* in the event that CONFIG_ARCH_LEDs is enabled.
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_ARCH_LEDS */
|
#endif /* CONFIG_ARCH_LEDS */
|
||||||
|
Loading…
Reference in New Issue
Block a user