diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-10-08 01:34:16 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-10-08 01:34:16 +0000 |
commit | 1b177f7d57d5f290cc435f344a512f735d5a0e8f (patch) | |
tree | ae1a3bf7448370ce6475bc1ef42275df8f316b77 /nuttx/configs/avr32dev1/src | |
parent | 46be453cf632aa7a2c06994640ae0d68a4b8d04e (diff) | |
download | px4-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/src')
-rwxr-xr-x | nuttx/configs/avr32dev1/src/avr32dev1_internal.h | 13 | ||||
-rwxr-xr-x | nuttx/configs/avr32dev1/src/up_boot.c | 6 |
2 files changed, 15 insertions, 4 deletions
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
}
|