configs/flipnclick-pic32mz: Apply same LED fix as for flipnclick-sam3x. The LED code is cloned.
This commit is contained in:
parent
67d09e831b
commit
6c277d082f
@ -218,8 +218,8 @@ LEDs and Buttons
|
||||
LED_PANIC The system has crashed 2Hz N/C N/C N/C N/C
|
||||
LED_IDLE MCU is is sleep mode ---- Not used -----
|
||||
|
||||
Thus if LED L is glowing on and all other LEDs are off (except LED D which
|
||||
was left on but is no longer controlled by NuttX and so may be in any
|
||||
Thus if LED L is glowing faintly and all other LEDs are off (except LED D
|
||||
which was left on but is no longer controlled by NuttX and so may be in any
|
||||
state), NuttX has successfully booted and is, apparently, running normally
|
||||
and taking interrupts. If any of LEDs A-D are statically set, then NuttX
|
||||
failed to boot and the LED indicates the initialization phase where the
|
||||
|
@ -240,7 +240,7 @@
|
||||
#define LED_PANIC 4 /* The system has crashed 2Hz N/C N/C N/C N/C */
|
||||
#undef LED_IDLE /* MCU is is sleep mode ---- Not used ----- */
|
||||
|
||||
/* Thus if LED L is glowing on and all other LEDs are off (except LED D which
|
||||
/* Thus if LED L is faintly glowing and all other LEDs are off (except LED D which
|
||||
* was left on but is no longer controlled by NuttX and so may be in any state),
|
||||
* NuttX has successfully booted and is, apparently, running normally and taking
|
||||
* interrupts. If any of LEDs A-D are statically set, then NuttX failed to boot
|
||||
|
@ -57,6 +57,7 @@
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* There are four LEDs on the top, red side of the board. Only one can be
|
||||
* controlled by software:
|
||||
*
|
||||
@ -89,8 +90,8 @@
|
||||
* LED_PANIC The system has crashed 2Hz N/C N/C N/C N/C
|
||||
* LED_IDLE MCU is is sleep mode ---- Not used -----
|
||||
*
|
||||
* Thus if LED L is glowing on and all other LEDs are off (except LED D
|
||||
* which was left on but is no longer controlled by NuttX and so may be in
|
||||
* Thus if LED L is faintly glowing and all other LEDs are off (except LED
|
||||
* D which was left on but is no longer controlled by NuttX and so may be in
|
||||
* any state), NuttX has successfully booted and is, apparently, running
|
||||
* normally and taking interrupts. If any of LEDs A-D are statically set,
|
||||
* then NuttX failed to boot and the LED indicates the initialization phase
|
||||
@ -122,7 +123,7 @@ static void board_autoled_setone(int ledndx)
|
||||
pic32mz_gpiowrite(GPIO_LED_L, ledon[INDEX_LED_L]);
|
||||
pic32mz_gpiowrite(GPIO_LED_A, ledon[INDEX_LED_A]);
|
||||
pic32mz_gpiowrite(GPIO_LED_B, ledon[INDEX_LED_B]);
|
||||
pic32mz_gpiowrite(GPIO_LED_C, ledon[INDEX_LED_D]);
|
||||
pic32mz_gpiowrite(GPIO_LED_C, ledon[INDEX_LED_C]);
|
||||
pic32mz_gpiowrite(GPIO_LED_D, ledon[INDEX_LED_D]);
|
||||
}
|
||||
|
||||
@ -175,7 +176,7 @@ void board_autoled_on(int led)
|
||||
board_autoled_setone(INDEX_LED_B);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
case 2:
|
||||
board_autoled_setone(INDEX_LED_C);
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user