|
|
@@ -53,30 +53,8 @@ static int usbInEpState;
|
|
|
static int usbDebugEpState;
|
|
|
static int usbReady;
|
|
|
|
|
|
-uint8_t DEFAULT_CONFIG[256]
|
|
|
- __attribute__ ((section(".DEFAULT_CONFIG"))) =
|
|
|
-{
|
|
|
- CONFIG_TARGET_ENABLED,
|
|
|
- CONFIG_FIXED,
|
|
|
- 0,
|
|
|
- 0,
|
|
|
- 0, 0, 0, 0,
|
|
|
- 0xff, 0xff, 0x3f, 0x00, // 4194303, 2GB - 1 sector
|
|
|
- 0x00, 0x02, //512
|
|
|
- 63, 0,
|
|
|
- 255, 0,
|
|
|
- ' ', 'c', 'o', 'd', 'e', 's', 'r', 'c',
|
|
|
- ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 'S', 'C', 'S', 'I', '2', 'S', 'D',
|
|
|
- ' ', '4', '.', '2',
|
|
|
- '1','2','3','4','5','6','7','8','1','2','3','4','5','6','7','8'
|
|
|
-};
|
|
|
-// otherwise linker removes unused section.
|
|
|
-volatile uint8_t trickLinker;
|
|
|
-
|
|
|
void configInit()
|
|
|
{
|
|
|
- trickLinker = DEFAULT_CONFIG[0];
|
|
|
-
|
|
|
// The USB block will be powered by an internal 3.3V regulator.
|
|
|
// The PSoC must be operating between 4.6V and 5V for the regulator
|
|
|
// to work.
|