Extend USB_GetDeviceConfigDescriptor() routine to require the configuration number...
[pub/USBasp.git] / Projects / MissileLauncher / MissileLauncher.c
index 2782b69..bd542ee 100644 (file)
 #include "MissileLauncher.h"\r
 \r
 /** Launcher first init command report data sequence */\r
-static const uint8_t CMD_INITA[8]     = {  85, 83, 66, 67,  0,  0,  4,  0  };\r
+uint8_t CMD_INITA[8]     = {  85, 83, 66, 67,  0,  0,  4,  0  };\r
 \r
 /** Launcher second init command report data sequence */\r
-static const uint8_t CMD_INITB[8]     = {  85, 83, 66, 67,  0, 64,  2,  0  };\r
+uint8_t CMD_INITB[8]     = {  85, 83, 66, 67,  0, 64,  2,  0  };\r
 \r
 /** Launcher command report data sequence to stop all movement */\r
-static const uint8_t CMD_STOP[8]      = {   0,  0,  0,  0,  0,  0,  8,  8  };\r
+uint8_t CMD_STOP[8]      = {   0,  0,  0,  0,  0,  0,  8,  8  };\r
 \r
 /** Launcher command report data sequence to move left */\r
-static const uint8_t CMD_LEFT[8]      = {   0,  1,  0,  0,  0,  0,  8,  8  };\r
+uint8_t CMD_LEFT[8]      = {   0,  1,  0,  0,  0,  0,  8,  8  };\r
 \r
 /** Launcher command report data sequence to move right */\r
-static const uint8_t CMD_RIGHT[8]     = {   0,  0,  1,  0,  0,  0,  8,  8  };\r
+uint8_t CMD_RIGHT[8]     = {   0,  0,  1,  0,  0,  0,  8,  8  };\r
 \r
 /** Launcher command report data sequence to move up */\r
-static const uint8_t CMD_UP[8]        = {   0,  0,  0,  1,  0,  0,  8,  8  };\r
+uint8_t CMD_UP[8]        = {   0,  0,  0,  1,  0,  0,  8,  8  };\r
 \r
 /** Launcher command report data sequence to move down */\r
-static const uint8_t CMD_DOWN[8]      = {   0,  0,  0,  0,  1,  0,  8,  8  };\r
+uint8_t CMD_DOWN[8]      = {   0,  0,  0,  0,  1,  0,  8,  8  };\r
 \r
 /** Launcher command report data sequence to move left and up */\r
-static const uint8_t CMD_LEFTUP[8]    = {   0,  1,  0,  1,  0,  0,  8,  8  };\r
+uint8_t CMD_LEFTUP[8]    = {   0,  1,  0,  1,  0,  0,  8,  8  };\r
 \r
 /** Launcher command report data sequence to move right and up */\r
-static const uint8_t CMD_RIGHTUP[8]   = {   0,  0,  1,  1,  0,  0,  8,  8  };\r
+uint8_t CMD_RIGHTUP[8]   = {   0,  0,  1,  1,  0,  0,  8,  8  };\r
 \r
 /** Launcher command report data sequence to move left and down */\r
-static const uint8_t CMD_LEFTDOWN[8]  = {   0,  1,  0,  0,  1,  0,  8,  8  };\r
+uint8_t CMD_LEFTDOWN[8]  = {   0,  1,  0,  0,  1,  0,  8,  8  };\r
 \r
 /** Launcher command report data sequence to move right and down */\r
-static const uint8_t CMD_RIGHTDOWN[8] = {   0,  0,  1,  0,  1,  0,  8,  8  };\r
+uint8_t CMD_RIGHTDOWN[8] = {   0,  0,  1,  0,  1,  0,  8,  8  };\r
 \r
 /** Launcher command report data sequence to fire a missile */\r
-static const uint8_t CMD_FIRE[8]      = {   0,  0,  0,  0,  0,  1,  8,  8  };\r
+uint8_t CMD_FIRE[8]      = {   0,  0,  0,  0,  0,  1,  8,  8  };\r
 \r
 /** Last command sent to the launcher, to determine what new command (if any) must be sent */\r
 uint8_t* CmdState;\r