summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-10-18 02:26:10 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-10-18 02:26:10 +0000
commitd1e0c12fb3e33999e383bbfb0136264df389b00c (patch)
treea370171890937d1b988db9214a1a674581a39231
parent35a59d4d02a5a09f8e4384352e38ae3f80134100 (diff)
downloadnuttx-d1e0c12fb3e33999e383bbfb0136264df389b00c.tar.gz
nuttx-d1e0c12fb3e33999e383bbfb0136264df389b00c.tar.bz2
nuttx-d1e0c12fb3e33999e383bbfb0136264df389b00c.zip
Fix Sure PIC32MX LED compile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4053 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/configs/sure-pic32mx/ostest/defconfig2
-rw-r--r--nuttx/configs/sure-pic32mx/src/up_leds.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/configs/sure-pic32mx/ostest/defconfig b/nuttx/configs/sure-pic32mx/ostest/defconfig
index 6ee48fd5f..3cfa5bd9e 100644
--- a/nuttx/configs/sure-pic32mx/ostest/defconfig
+++ b/nuttx/configs/sure-pic32mx/ostest/defconfig
@@ -85,7 +85,7 @@ CONFIG_ARCH_IRQPRIO=y
CONFIG_ARCH_INTERRUPTSTACK=n
CONFIG_ARCH_STACKDUMP=y
CONFIG_ARCH_BOOTLOADER=n
-CONFIG_ARCH_LEDS=n
+CONFIG_ARCH_LEDS=y
CONFIG_ARCH_BUTTONS=n
CONFIG_ARCH_CALIBRATION=n
CONFIG_ARCH_DMA=n
diff --git a/nuttx/configs/sure-pic32mx/src/up_leds.c b/nuttx/configs/sure-pic32mx/src/up_leds.c
index d6c929163..0ea87571d 100644
--- a/nuttx/configs/sure-pic32mx/src/up_leds.c
+++ b/nuttx/configs/sure-pic32mx/src/up_leds.c
@@ -123,7 +123,7 @@ struct led_setting_s
* Private Data
****************************************************************************/
-static const g_ledonvalues[LED_NVALUES] =
+static const struct led_setting_s g_ledonvalues[LED_NVALUES] =
{
{LED_OFF, LED_OFF, LED_OFF, LED_OFF},
{LED_ON, LED_OFF, LED_NC, LED_NC},
@@ -133,7 +133,7 @@ static const g_ledonvalues[LED_NVALUES] =
{LED_NC, LED_NC, LED_NC, LED_ON},
};
-static const g_ledoffvalues[LED_NVALUES] =
+static const struct led_setting_s g_ledoffvalues[LED_NVALUES] =
{
{LED_NC, LED_NC, LED_NC, LED_NC},
{LED_NC, LED_NC, LED_NC, LED_NC},
@@ -151,7 +151,7 @@ static const g_ledoffvalues[LED_NVALUES] =
* Name: up_setleds
****************************************************************************/
-void up_setleds(struct led_setting_s *setting)
+void up_setleds(FAR const struct led_setting_s *setting)
{
if (setting->usb != LED_NC)
{
@@ -179,10 +179,10 @@ void up_setleds(struct led_setting_s *setting)
****************************************************************************/
/****************************************************************************
- * Name: up_ledinit
+ * Name: pic32mx_ledinit
****************************************************************************/
-void up_ledinit(void)
+void pic32mx_ledinit(void)
{
/* Configure output pins */