diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-18 02:26:10 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-18 02:26:10 +0000 |
commit | d1e0c12fb3e33999e383bbfb0136264df389b00c (patch) | |
tree | a370171890937d1b988db9214a1a674581a39231 /nuttx/configs | |
parent | 35a59d4d02a5a09f8e4384352e38ae3f80134100 (diff) | |
download | px4-nuttx-d1e0c12fb3e33999e383bbfb0136264df389b00c.tar.gz px4-nuttx-d1e0c12fb3e33999e383bbfb0136264df389b00c.tar.bz2 px4-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
Diffstat (limited to 'nuttx/configs')
-rw-r--r-- | nuttx/configs/sure-pic32mx/ostest/defconfig | 2 | ||||
-rw-r--r-- | nuttx/configs/sure-pic32mx/src/up_leds.c | 10 |
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 */ |