From 534e19270e2e9f8bdc8e9a33b4dc99d988e83489 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 18 Oct 2011 02:26:10 +0000 Subject: [PATCH] Fix Sure PIC32MX LED compile git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4053 42af7a65-404d-4744-a932-0658087f49c3 --- configs/sure-pic32mx/ostest/defconfig | 2 +- configs/sure-pic32mx/src/up_leds.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configs/sure-pic32mx/ostest/defconfig b/configs/sure-pic32mx/ostest/defconfig index 6ee48fd5fbb..3cfa5bd9e4f 100644 --- a/configs/sure-pic32mx/ostest/defconfig +++ b/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/configs/sure-pic32mx/src/up_leds.c b/configs/sure-pic32mx/src/up_leds.c index d6c92916399..0ea87571dd4 100644 --- a/configs/sure-pic32mx/src/up_leds.c +++ b/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 */