root/trunk/tools/lpc21isp/adprog.h

Revision 566, 1.7 KB (checked in by goodea, 9 months ago)

Update lpc21isp

Line 
1/******************************************************************************
2
3Project:           Portable command line ISP for Philips LPC2000 family
4                   and Analog Devices ADUC70xx
5
6Filename:          adprog.h
7
8Compiler:          Microsoft VC 6/7, GCC Cygwin, GCC Linux, GCC ARM ELF
9
10Author:            Martin Maurer (Martin.Maurer@clibb.de)
11
12Copyright:         (c) Martin Maurer 2003-2008, All rights reserved
13Portions Copyright (c) by Aeolus Development 2004 http://www.aeolusdevelopment.com
14
15    This file is part of lpc21isp.
16
17    lpc21isp is free software: you can redistribute it and/or modify
18    it under the terms of the GNU Lesser General Public License as published by
19    the Free Software Foundation, either version 3 of the License, or
20    any later version.
21
22    lpc21isp is distributed in the hope that it will be useful,
23    but WITHOUT ANY WARRANTY; without even the implied warranty of
24    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25    GNU Lesser General Public License for more details.
26
27    You should have received a copy of the GNU Lesser General Public License
28    and GNU General Public License along with lpc21isp.
29    If not, see <http://www.gnu.org/licenses/>.
30*/
31
32#define ANALOG_DEVICES_SYNC_CHAR                ((BINARY)0x08)
33#define ANALOG_DEVICES_SYNC_RESPONSE        ("ADuC")
34#define ANALOG_DEVICES_SYNC_SIZE                (strlen(ANALOG_DEVICES_SYNC_RESPONSE))
35#define ANALOG_DEVICES_ACK                        0x6
36#define ANALOG_DEVICES_NAK                        0x7
37
38typedef struct
39{
40    BINARY product_id[15];
41    BINARY version[3];
42    BINARY reserved[4];
43    BINARY terminator[2];
44} AD_SYNC_RESPONSE;
45
46int AnalogDevicesDownload(ISP_ENVIRONMENT *IspEnvironment);
Note: See TracBrowser for help on using the browser.