37 #define DEFAULT_UNIT 0
40 "Syntax: example_led \n\r"
42 "Paramaters: None \n\r"
44 "Example: The following command is used to run the led programming \n\r"
50 #define EXAMPLE_LED0_PROGRAM_RAM_SIZE 112
51 #define EXAMPLE_LED1_PROGRAM_RAM_SIZE 176
70 0x06,0xFE,0x80,0xD2,0x19,0x71,0x08,0xE0,0x60,0xFE,0xE9,0xD2,0x0F,0x75,0x10,0x81,\
71 0x61,0xFD,0x02,0x3F,0x60,0xFF,0x28,0x32,0x0F,0x87,0x67,0x4A,0x96,0xFF,0x06,0xFF,\
72 0xD2,0x2B,0x74,0x16,0x02,0x1F,0x60,0xFF,0x28,0x32,0x0F,0x87,0x67,0x4A,0x96,0xFF,\
73 0x06,0xFF,0xD2,0x13,0x74,0x28,0x02,0x0F,0x60,0xFF,0x28,0x32,0x0F,0x87,0x67,0x4A,\
74 0x96,0xFF,0x06,0xFF,0xD2,0x0B,0x74,0x3A,0x3A,0x48,0x32,0x07,0x32,0x08,0xC7,0x32,\
75 0x04,0xC7,0x97,0x71,0x57,0x77,0x69,0x32,0x00,0x32,0x01,0xB7,0x97,0x71,0x63,0x32,\
76 0x0E,0x77,0x6B,0x26,0xFD,0x97,0x27,0x77,0x6B,0x32,0x0F,0x87,0x57,0x00,0x00,0x00};
80 0x06,0xFE,0x80,0xD2,0x19,0x71,0x08,0xE0,0x60,0xFE,0xE9,0xD2,0x0F,0x75,0x10,0x81,\
81 0x61,0xFD,0x02,0x20,0x67,0x89,0x02,0x24,0x67,0x89,0x02,0x10,0x67,0x89,0x02,0x28,\
82 0x67,0x89,0x02,0x2C,0x67,0x89,0x02,0x0C,0x67,0x89,0x02,0x2C,0x67,0x79,0x02,0x28,\
83 0x67,0x79,0x02,0x24,0x67,0x79,0x02,0x20,0x67,0x79,0x02,0x10,0x67,0x79,0x02,0x0C,\
84 0x67,0x79,0x02,0x0B,0x60,0xFF,0x28,0x32,0x0F,0x87,0x67,0x56,0x96,0xFF,0x06,0xFF,\
85 0xD2,0xFF,0x74,0x46,0x3A,0x36,0x32,0x07,0x32,0x08,0xC7,0x32,0x04,0xC7,0x97,0x71,\
86 0x63,0x77,0x75,0x32,0x00,0x32,0x01,0xB7,0x97,0x71,0x6F,0x32,0x0E,0x77,0x77,0x26,\
87 0xFD,0x97,0x27,0x77,0x77,0x32,0x0F,0x87,0x57,0x12,0xA0,0xF8,0x15,0x1A,0x01,0x75,\
88 0x85,0x28,0x67,0x56,0x57,0x32,0x0F,0x87,0x57,0x12,0xA0,0xF8,0x15,0x1A,0x01,0x71,\
89 0xA1,0x28,0x67,0x56,0x80,0x28,0x67,0x56,0x80,0x28,0x67,0x56,0x80,0x28,0x67,0x56,\
90 0x57,0x32,0x0F,0x87,0x32,0x0F,0x87,0x32,0x0F,0x87,0x32,0x0F,0x87,0x57,0x00,0x00};
100 int main(
int argc,
char *argv[])
104 int choice, led_max, ix;
110 if((argc != 1) || ((argc > 1) && (strcmp(argv[1],
"--help") == 0))) {
119 printf(
"\r\nFailed to initialize the system. Error: %s\r\n",
128 printf(
"\r\nFailed to apply default config on ports, rc = %d (%s).\r\n",
133 printf(
"Adding ports to default vlan.\r\n");
137 printf(
"\r\nFailed to add default ports. Error: %s\r\n",
144 printf(
"\r\nUser menu: Select one of the following options\r\n");
145 printf(
"1. Program the LED processor\r\n");
146 #ifdef INCLUDE_DIAG_SHELL
147 printf(
"9. Launch diagnostic shell\n");
149 printf(
"0. Quit the application.\r\n");
153 printf(
"Invalid option entered. Please re-enter.\n");
160 led_info = led_info_cmicm;
163 for(ix = 0; ix < led_max; ix++)
165 led_info_cur = led_info+ix;
171 printf(
"opennsl_pci_write returns failure:%d\n",rv);
214 #ifdef INCLUDE_DIAG_SHELL
217 opennsl_driver_shell();
224 printf(
"Exiting the application.\n");