William Reynolds
/
LPC_Bootloader
Diff: LPC.h
- Revision:
- 2:9e3ee0c6536b
- Parent:
- 1:0872c208795f
- Child:
- 3:eb6d9211592d
--- a/LPC.h Thu Sep 29 11:32:52 2011 +0000 +++ b/LPC.h Thu Sep 29 15:09:50 2011 +0000 @@ -33,10 +33,9 @@ int n1, n2, n3, n4; //UU-Encoded 4 bytes corresponding to the converted 3 raw bytes int ch1, ch2, ch3; //3 raw bytes for conversion into the 4 bytes above --^ int sum20, checksum; //Checksum sent after a certain number of UU-Encoded lines - int lastByte; //When the end of the file to be encoded has been reached this value defines the last byte in the last line to be sent to the board bool readAll; //Global variable determining if the file has been encoded and sent fully - char uuline[63]; //Contains the current UU-encoded line to be sent to the board next - char enduuline[51]; //Output array from EndUUEncode() + char uuline[64]; //Contains the current UU-encoded line to be sent to the board next + char enduuline[52]; //Output array from EndUUEncode() char sum[45], sum1[28]; //The char arrays assist in the conversion to big-endian for the FirstEncode() function unsigned int id; //ID code for the attached chip int bytesfilled; //Int to keep track of the position in the 1024 byte block (sets up triggering of switching to EndUUEncode()