SAM4S Xplained Pro: Correct description of LEDs and usage. From Kosma Moczek
This commit is contained in:
parent
4478d1ba72
commit
4999546ede
@ -14,7 +14,7 @@ README
|
|||||||
- IS66WV51216DBLL ISSI SRAM 8Mb 512K x 16 55ns PSRAM 2.5v-3.6v
|
- IS66WV51216DBLL ISSI SRAM 8Mb 512K x 16 55ns PSRAM 2.5v-3.6v
|
||||||
- Four Atmel QTouch buttons
|
- Four Atmel QTouch buttons
|
||||||
- External voltage input
|
- External voltage input
|
||||||
- Four LEDs, two controllable from software
|
- Two LEDs, one controllable from software
|
||||||
- Xplained expansion headers
|
- Xplained expansion headers
|
||||||
- Footprint for external serial Flash (not fitted)
|
- Footprint for external serial Flash (not fitted)
|
||||||
|
|
||||||
@ -288,37 +288,40 @@ Buttons and LEDs
|
|||||||
|
|
||||||
LEDs
|
LEDs
|
||||||
----
|
----
|
||||||
|
=======================
|
||||||
There are four LEDs on board the SAM4X Xplained board, two of these can be
|
There is one LED on board the SAM4S Xplained board Pro that can be
|
||||||
controlled by software in the SAM4S:
|
controlled by software in the SAM4S:
|
||||||
|
|
||||||
LED GPIO
|
LED GPIO
|
||||||
---------------- -----
|
---------------- -----
|
||||||
D9 Yellow LED PC10
|
LED0 Yellow LED PC23
|
||||||
D10 Yellow LED PC17
|
|
||||||
|
|
||||||
Both can be illuminated by driving the GPIO output to ground (low).
|
It can be illuminated by driving the GPIO output to ground (low).
|
||||||
|
|
||||||
These LEDs are not used by the board port unless CONFIG_ARCH_LEDS is
|
If CONFIG_ARCH_LEDs is defined, then NuttX will control the LED on
|
||||||
|
board the SAM4S Xplained Pro, otherwise it can controlled by the user
|
||||||
|
with functions defined into boards file src/sam_userleds.c.
|
||||||
|
|
||||||
|
The user LED is not used by the board port unless CONFIG_ARCH_LEDS is
|
||||||
defined. In that case, the usage by the board port is defined in
|
defined. In that case, the usage by the board port is defined in
|
||||||
include/board.h and src/sam_leds.c. The LEDs are used to encode OS-related
|
include/board.h and src/sam_leds.c. The LEDs are used to encode OS-
|
||||||
events as follows:
|
related events as follows:
|
||||||
|
|
||||||
SYMBOL Meaning LED state
|
SYMBOL Meaning LED state
|
||||||
D9 D10
|
LED0
|
||||||
------------------- ----------------------- -------- --------
|
------------------- ----------------------- -----------
|
||||||
LED_STARTED NuttX has been started OFF OFF
|
LED_STARTED NuttX has been started OFF
|
||||||
LED_HEAPALLOCATE Heap has been allocated OFF OFF
|
LED_HEAPALLOCATE Heap has been allocated OFF
|
||||||
LED_IRQSENABLED Interrupts enabled OFF OFF
|
LED_IRQSENABLED Interrupts enabled OFF
|
||||||
LED_STACKCREATED Idle stack created ON OFF
|
LED_STACKCREATED Idle stack created ON
|
||||||
LED_INIRQ In an interrupt No change
|
LED_INIRQ In an interrupt No change
|
||||||
LED_SIGNAL In a signal handler No change
|
LED_SIGNAL In a signal handler No change
|
||||||
LED_ASSERTION An assertion failed No change
|
LED_ASSERTION An assertion failed No change
|
||||||
LED_PANIC The system has crashed OFF Blinking
|
LED_PANIC The system has crashed OFF
|
||||||
LED_IDLE MCU is is sleep mode Not used
|
LED_IDLE MCU is is sleep mode Not used
|
||||||
|
|
||||||
Thus if D9 is statically on, NuttX has successfully booted and is,
|
Thus if LED0 is statically on, NuttX has successfully booted and is,
|
||||||
apparently, running normmally. If D10 is flashing at approximately
|
apparently, running normally. If LED0 is flashing at approximately
|
||||||
2Hz, then a fatal error has been detected and the system has halted.
|
2Hz, then a fatal error has been detected and the system has halted.
|
||||||
|
|
||||||
Serial Consoles
|
Serial Consoles
|
||||||
|
@ -197,7 +197,7 @@
|
|||||||
*
|
*
|
||||||
* LED GPIO
|
* LED GPIO
|
||||||
* ---------------- -----
|
* ---------------- -----
|
||||||
* D301 Yellow LED PC10
|
* D301 Yellow LED PC23
|
||||||
*
|
*
|
||||||
* Both can be illuminated by driving the GPIO output to ground (low).
|
* Both can be illuminated by driving the GPIO output to ground (low).
|
||||||
*/
|
*/
|
||||||
@ -233,7 +233,7 @@
|
|||||||
#define LED_D301_ON false /* GPIO low for ON */
|
#define LED_D301_ON false /* GPIO low for ON */
|
||||||
|
|
||||||
/* Thus if D301 is statically on, NuttX has successfully booted and is,
|
/* Thus if D301 is statically on, NuttX has successfully booted and is,
|
||||||
* apparently, running normmally.
|
* apparently, running normally.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Button definitions ***************************************************************/
|
/* Button definitions ***************************************************************/
|
||||||
|
@ -110,37 +110,34 @@
|
|||||||
# undef HAVE_USBMONITOR
|
# undef HAVE_USBMONITOR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* There are four LEDs on board the SAM4S Xplained board, two of these can be
|
/* There is one LED on board the SAM4S Xplained board Pro that can be
|
||||||
* controlled by software in the SAM4S:
|
* controlled by software in the SAM4S:
|
||||||
*
|
*
|
||||||
* LED GPIO
|
* LED GPIO
|
||||||
* ---------------- -----
|
* ---------------- -----
|
||||||
* D9 Yellow LED PC10
|
* LED0 Yellow LED PC23
|
||||||
* D10 Yellow LED PC17
|
|
||||||
*
|
*
|
||||||
* Both can be illuminated by driving the GPIO output to ground (low).
|
* It can be illuminated by driving the GPIO output to ground (low).
|
||||||
*
|
*
|
||||||
* These LEDs are not used by the board port unless CONFIG_ARCH_LEDS is
|
* If CONFIG_ARCH_LEDs is defined, then NuttX will control the LED on
|
||||||
* defined. In that case, the usage by the board port is defined in
|
* board the SAM4S Xplained Pro, otherwise it can controlled by the user
|
||||||
* include/board.h and src/up_leds.c. The LEDs are used to encode OS-related
|
* with functions defined into boards file src/sam_userleds.c.
|
||||||
* events as follows:
|
*
|
||||||
|
* The following definitions describe how NuttX
|
||||||
|
* controls the LEDs:
|
||||||
*
|
*
|
||||||
* SYMBOL Meaning LED state
|
* SYMBOL Meaning LED state
|
||||||
* D9 D10
|
* LED0
|
||||||
* ------------------- ----------------------- -------- --------
|
* ------------------- ----------------------- -----------
|
||||||
* LED_STARTED NuttX has been started OFF OFF
|
* LED_STARTED NuttX has been started OFF
|
||||||
* LED_HEAPALLOCATE Heap has been allocated OFF OFF
|
* LED_HEAPALLOCATE Heap has been allocated OFF
|
||||||
* LED_IRQSENABLED Interrupts enabled OFF OFF
|
* LED_IRQSENABLED Interrupts enabled OFF
|
||||||
* LED_STACKCREATED Idle stack created ON OFF
|
* LED_STACKCREATED Idle stack created ON
|
||||||
* LED_INIRQ In an interrupt No change
|
* LED_INIRQ In an interrupt No change
|
||||||
* LED_SIGNAL In a signal handler No change
|
* LED_SIGNAL In a signal handler No change
|
||||||
* LED_ASSERTION An assertion failed No change
|
* LED_ASSERTION An assertion failed No change
|
||||||
* LED_PANIC The system has crashed OFF Blinking
|
* LED_PANIC The system has crashed OFF
|
||||||
* LED_IDLE MCU is is sleep mode Not used
|
* LED_IDLE MCU is is sleep mode Not used
|
||||||
*
|
|
||||||
* Thus if D9 is statically on, NuttX has successfully booted and is,
|
|
||||||
* apparently, running normally. If D10 is flashing at approximately
|
|
||||||
* 2Hz, then a fatal error has been detected and the system has halted.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define GPIO_D301 (GPIO_OUTPUT | GPIO_CFG_PULLUP | GPIO_OUTPUT_SET | \
|
#define GPIO_D301 (GPIO_OUTPUT | GPIO_CFG_PULLUP | GPIO_OUTPUT_SET | \
|
||||||
|
Loading…
Reference in New Issue
Block a user