view src/cs/layer1/dsp1/leadboot.c @ 680:ee3ac8c617cb

armio.c: set GPIO2 output high initially On TI-canonical platforms GPIO2 is DCD modem control output. In TI's original code the AI_InitIOConfig() function called from Init_Target() would configure GPIO2 as an output and set the initial output value to low, but then the init code in uartfax.c called from Init_Serial_Flows() would immediately change it to high, corresponding to DCD not asserted. The result is a momentary asserted-state glitch on the DCD output. The present change eliminates this glitch, setting DCD output to not-asserted initially like it should be.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 25 Jun 2020 03:17:43 +0000
parents 50a15a54801e
children
line wrap: on
line source

/*
 * This module is from the LoCosto source, and the char array found herein
 * has been confirmed to match the one in the Leonardo binary lib as well.
 */

const unsigned char bootCode[] = {

/* Tag  */ 0x00, 0x00, 0x00, 0x00,
/* Vers */ 0x03, 0x00, 0x00, 0x00,

/* size */ 0x31, 0x00, 0x00, 0x00,
/* addr */ 0x00, 0xf8, 0x00, 0x00,

0xF8,0x69,0x29,0x00,0x02,0x00,0x1F,0xEA,0x14,0x77,0x00,0x00,0x7F,0x76,0x01,0x00,
0x7F,0x60,0x04,0x00,0x20,0xF8,0x10,0x01,0x14,0x72,0x00,0x08,0x7F,0x76,0x01,0x00,
0x7F,0x60,0x02,0x00,0x20,0xF8,0x08,0x01,0x7E,0x12,0x7C,0x3C,0x7D,0x13,0x11,0x89,
0x4C,0xF8,0x1D,0x01,0x30,0xF0,0xFF,0xFF,0xE2,0xF4,0x89,0x6D,0x12,0x77,0x00,0x08,
0xF8,0x11,0x14,0x00,0x4E,0xF8,0x29,0x01,0xF8,0x47,0x11,0x00,0x92,0x7F,0x73,0xF0,
0x2D,0x01,0x13,0x88,0xF8,0x47,0x11,0x00,0x89,0xE5,0x7F,0x76,0x01,0x00,0x73,0xF0,
0x08,0x01,

/* size */ 0x29, 0x00, 0x00, 0x00,
/* addr */ 0x00, 0xfe, 0x00, 0x00,

0x18,0x77,0x80,0x07,0xF8,0x69,0x1D,0x00,0x28,0x00,0x28,0x77,0x92,0x24,0xF8,0x76,
0x11,0x00,0x01,0x00,0xF8,0x75,0x11,0x00,0x00,0xF9,0x06,0x77,0x00,0x18,0x07,0x77,
0x00,0x2D,0x26,0x77,0x10,0x00,0x00,0x77,0x00,0x00,0x01,0x77,0xFF,0xFF,0x00,0xEA,
0x95,0xF4,0x11,0x77,0x00,0x01,0x12,0x77,0x00,0xF8,0x20,0xF0,0x31,0xF8,0x12,0x08,
0x10,0xF0,0x01,0x00,0x13,0x80,0x95,0xF4,0x13,0x47,0x91,0x7C,0x00,0xF8,0x73,0xF0,
0x00,0x01,

/* size */ 0x04, 0x00, 0x00, 0x00,
/* addr */ 0x80, 0xff, 0x00, 0x00,

0x73,0xF0,0x00,0xFE,0x95,0xF4,0x95,0xF4,
/* Final record */
/* size */ 0x00, 0x00, 0x00, 0x00,
/* addr */ 0x00, 0xf8, 0x00, 0x00,

};