#ifndef _LEDSTATE_H #define _LEDSTATE_H /* * LED State definitions * April 2003, Jeremy Andrus */ /* Main functions */ #define LED_STATUS_INIT 0 /* A zero state */ #define LED_STATUS_MEM 1 /* Initialize DRAM controller */ #define LED_STATUS_RUNTIME 2 /* Setup C Runtime environment */ #define LED_STATUS_UART 3 /* Initialize the UARTs */ #define LED_STATUS_UI 4 /* Run the UI */ #define LED_STATUS_RUNIMAGE 5 /* Do: start image */ #define LED_STATUS_STARTIMG 6 /* Jump to the image and begin execution */ #define LED_STATUS_ERROR 7 /* Error state (generally timer related) */ /* Chip select initialization */ #define LED_STATUS_CS0 8 /* Setup Chip Select 0 */ #define LED_STATUS_CS1 9 /* Setup Chip Select 1 */ #define LED_STATUS_CS2 10 /* Setup Chip Select 2 */ #define LED_STATUS_CS3 11 /* Setup Chip Select 3 */ #define LED_STATUS_CS4 12 /* Setup Chip Select 4 */ #define LED_STATUS_CS5 13 /* Setup Chip Select 5 */ #define LED_STATUS_CS6 14 /* Setup Chip Select 6 */ /* DRAM setup states */ #define LED_STATUS_MEMPRECHARGE 15 /* DRAM Precharge Sequence */ #define LED_STATUS_MEMREFRESH 16 /* DRAM Refresh sequence */ #define LED_STATUS_MEMMRI 17 /* DRAM Mode Register Initialization */ /* UI functions */ #define LED_STATUS_DDECOMPGO 18 /* Do: image decompression then start image */ #define LED_STATUS_DDECOMPRESS 19 /* Do: image decompression */ #define LED_STATUS_DLOAD 20 /* Do: image serial download */ #define LED_STATUS_DGO 21 /* Do: run image */ /* Misc functions */ #define LED_STATUS_COPYDATA 22 /* Copy data section to RAM */ #define LED_STATUS_DECOMP1 23 /* Checking for compressed image */ #define LED_STATUS_DECOMP2 24 /* Start decompression */ #define LED_STATUS_ENCACHE 25 /* Enable CPU cache */ #define LED_STATUS_ENSWT 26 /* Enable the watchdog timer */ #define LED_STATUS_INITVEC 27 /* Initialize the vector table (copy from RAM to ROM) */ #define LED_STATUS_LOADIMG 28 /* Copy image to RAM for execution */ #define LED_STATUS_LOAD1 29 /* Start serial download */ #define LED_STATUS_LOAD2 30 /* Serial download complete */ #define LED_STATUS_ZEROBSS 31 /* Zero out the BSS section */ #endif