summaryrefslogtreecommitdiff
path: root/nuttx/configs/nutiny-nuc120/src
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-18 20:24:20 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-18 20:24:20 +0000
commitd3aa6ce3315a4f75b5dabcc7358a34a1ce2e451b (patch)
tree59cf90aba2d010904d3d3a8045b9d81f6866dbe6 /nuttx/configs/nutiny-nuc120/src
parent31a5581021afca8240e6aa7eebed28ef7a55e561 (diff)
downloadnuttx-d3aa6ce3315a4f75b5dabcc7358a34a1ce2e451b.tar.gz
nuttx-d3aa6ce3315a4f75b5dabcc7358a34a1ce2e451b.tar.bz2
nuttx-d3aa6ce3315a4f75b5dabcc7358a34a1ce2e451b.zip
More files for the Cortex-M0/NUC120 port
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5659 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/nutiny-nuc120/src')
-rw-r--r--nuttx/configs/nutiny-nuc120/src/nuc_led.c8
-rw-r--r--nuttx/configs/nutiny-nuc120/src/nutiny-nuc120.h17
2 files changed, 22 insertions, 3 deletions
diff --git a/nuttx/configs/nutiny-nuc120/src/nuc_led.c b/nuttx/configs/nutiny-nuc120/src/nuc_led.c
index 873a116e3..2482e7da0 100644
--- a/nuttx/configs/nutiny-nuc120/src/nuc_led.c
+++ b/nuttx/configs/nutiny-nuc120/src/nuc_led.c
@@ -103,10 +103,14 @@
****************************************************************************/
/****************************************************************************
- * Name: up_ledinit
+ * Name: nuc_ledinit
+ *
+ * Description:
+ * Initialize the on-board LED
+ *
****************************************************************************/
-void up_ledinit(void)
+void nuc_ledinit(void)
{
nuc_configgpio(GPIO_LED);
}
diff --git a/nuttx/configs/nutiny-nuc120/src/nutiny-nuc120.h b/nuttx/configs/nutiny-nuc120/src/nutiny-nuc120.h
index f7f3184bc..55744fb61 100644
--- a/nuttx/configs/nutiny-nuc120/src/nutiny-nuc120.h
+++ b/nuttx/configs/nutiny-nuc120/src/nutiny-nuc120.h
@@ -52,7 +52,7 @@
/* NuTiny-EVB-120 GPIOs *****************************************************************************/
/* The NuTiny has a single green LED that can be controlled from sofware. This LED
- * is connected to PIN17. It is pulled high so a low value will illuminate the LED.
+ * is connected to PIN17 (PB.0). It is pulled high so a low value will illuminate the LED.
*
* If CONFIG_ARCH_LEDs is defined, then NuttX will control the LED on board the
* NuTiny. The following definitions describe how NuttX controls the LEDs:
@@ -71,6 +71,8 @@
* LED_IDLE NUC1XX is is sleep mode (Optional, not used)
*/
+#define GPIO_LED (GPIO_OUTPUT | GPIO_OUTPUT_SET | GPIO_PORTB | GPIO_PIN8)
+
/* Button definitions ***************************************************************/
/* The NuTiny has no buttons */
@@ -111,6 +113,19 @@ void weak_function nuc_spiinitialize(void);
void weak_function nuc_usbinitialize(void);
#endif
+/****************************************************************************************************
+ * Name: nuc_ledinit
+ *
+ * Description:
+ * Initialize the on-board LED
+ *
+ ****************************************************************************************************/
+
+#ifdef CONFIG_ARCH_LEDS
+void nuc_ledinit(void);
+#endif
+
+
#endif /* __ASSEMBLY__ */
#endif /* __CONFIGS_NUTINY_NUC120_SRC_NUTINY_NUC120_H */