Fix Sure PIC32MX LED compile

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4053 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2011-10-18 02:26:10 +00:00
parent 46cfad7b8a
commit 534e19270e
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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 */