summaryrefslogtreecommitdiff
path: root/nuttx/configs/avr32dev1
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-10-08 01:34:16 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-10-08 01:34:16 +0000
commit1b177f7d57d5f290cc435f344a512f735d5a0e8f (patch)
treeae1a3bf7448370ce6475bc1ef42275df8f316b77 /nuttx/configs/avr32dev1
parent46be453cf632aa7a2c06994640ae0d68a4b8d04e (diff)
downloadpx4-nuttx-1b177f7d57d5f290cc435f344a512f735d5a0e8f.tar.gz
px4-nuttx-1b177f7d57d5f290cc435f344a512f735d5a0e8f.tar.bz2
px4-nuttx-1b177f7d57d5f290cc435f344a512f735d5a0e8f.zip
Add skeleton of AVR32 init
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2975 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/avr32dev1')
-rwxr-xr-xnuttx/configs/avr32dev1/ostest/defconfig12
-rwxr-xr-xnuttx/configs/avr32dev1/src/avr32dev1_internal.h13
-rwxr-xr-xnuttx/configs/avr32dev1/src/up_boot.c6
3 files changed, 24 insertions, 7 deletions
diff --git a/nuttx/configs/avr32dev1/ostest/defconfig b/nuttx/configs/avr32dev1/ostest/defconfig
index 79637bfaa..8f01da96e 100755
--- a/nuttx/configs/avr32dev1/ostest/defconfig
+++ b/nuttx/configs/avr32dev1/ostest/defconfig
@@ -101,14 +101,20 @@ CONFIG_AVR32_AVRTOOLSL=n
#
# CONFIG_AVR32_USARTn - Enable support for USARTn
# CONFIG_AVR32_USARTn_RS232 - Configure USARTn as an RS232 interface.
+# CONFIG_AVR32_USARTn_SPI - Configure USARTn as an SPI interface.
#
CONFIG_AVR32_USART0=y
+CONFIG_AVR32_USART0_RS232=y
+CONFIG_AVR32_USART0_SPI=n
+
CONFIG_AVR32_USART1=n
+CONFIG_AVR32_USART1_RS232=n
+CONFIG_AVR32_USART1_SPI=n
+
CONFIG_AVR32_USART2=n
-CONFIG_AVR32_USART0_RS232=y
-CONFIG_AVR32_USART1_RS232=y
-CONFIG_AVR32_USART2_RS232=y
+CONFIG_AVR32_USART2_RS232=n
+CONFIG_AVR32_USART2_SPI=n
#
# AVR32 specific serial device driver settings
diff --git a/nuttx/configs/avr32dev1/src/avr32dev1_internal.h b/nuttx/configs/avr32dev1/src/avr32dev1_internal.h
index 79901ea7d..b0fedd751 100755
--- a/nuttx/configs/avr32dev1/src/avr32dev1_internal.h
+++ b/nuttx/configs/avr32dev1/src/avr32dev1_internal.h
@@ -48,7 +48,7 @@
* Definitions
************************************************************************************/
-/* AT91DEV1 GPIO Pin Definitions ****************************************************/
+/* AVRDEV1 GPIO Pin Definitions *****************************************************/
/************************************************************************************
* Public Types
@@ -64,6 +64,17 @@
* Public Functions
************************************************************************************/
+/************************************************************************************
+ * Name: avr32dev1_ledinitialize
+ *
+ * Description:
+ * Configure on-board LEDs if LED support has been selected.
+ ************************************************************************************/
+
+#ifdef CONFIG_ARCH_LEDS
+extern void avr32dev1_ledinitialize(void);
+#endif
+
#endif /* __ASSEMBLY__ */
#endif /* _CONFIGS_AT91DEV1_SRC_AT91DEV1_INTERNAL_H */
diff --git a/nuttx/configs/avr32dev1/src/up_boot.c b/nuttx/configs/avr32dev1/src/up_boot.c
index 0fc8971d1..f75cda398 100755
--- a/nuttx/configs/avr32dev1/src/up_boot.c
+++ b/nuttx/configs/avr32dev1/src/up_boot.c
@@ -63,7 +63,7 @@
************************************************************************************/
/************************************************************************************
- * Name: avr32_boardinitialize
+ * Name: at91uc3_boardinitialize
*
* Description:
* All AVR32 architectures must provide the following entry point. This entry point
@@ -72,13 +72,13 @@
*
************************************************************************************/
-void avr32_boardinitialize(void)
+void at91uc3_boardinitialize(void)
{
/* Configure SPI chip selects */
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
- up_ledinit();
+ avr32dev1_ledinitialize();
#endif
}