diff options
| author | Brad Luyster <BradLuyster@gmail.com> | 2012-09-07 21:39:43 -0400 |
|---|---|---|
| committer | Brad Luyster <BradLuyster@gmail.com> | 2012-09-07 21:39:43 -0400 |
| commit | 0a326d6219945b5e55f0c0ff6f3abb9e63dbaaa5 (patch) | |
| tree | 98004704a66cf7c5a546e39f8e3264d4e8a705c8 /adprog.h | |
Initial Commit
Diffstat (limited to 'adprog.h')
| -rw-r--r-- | adprog.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/adprog.h b/adprog.h new file mode 100644 index 0000000..efd296c --- /dev/null +++ b/adprog.h @@ -0,0 +1,47 @@ +/******************************************************************************
+
+Project: Portable command line ISP for NXP LPC1000 / LPC2000 family
+ and Analog Devices ADUC70xx
+
+Filename: adprog.h
+
+Compiler: Microsoft VC 6/7, Microsoft VS2008, Microsoft VS2010,
+ GCC Cygwin, GCC Linux, GCC ARM ELF
+
+Author: Martin Maurer (Martin.Maurer@clibb.de)
+
+Copyright: (c) Martin Maurer 2003-2011, All rights reserved
+Portions Copyright (c) by Aeolus Development 2004 http://www.aeolusdevelopment.com
+
+ This file is part of lpc21isp.
+
+ lpc21isp is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ any later version.
+
+ lpc21isp is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ and GNU General Public License along with lpc21isp.
+ If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#define ANALOG_DEVICES_SYNC_CHAR ((BINARY)0x08)
+#define ANALOG_DEVICES_SYNC_RESPONSE ("ADuC")
+#define ANALOG_DEVICES_SYNC_SIZE (strlen(ANALOG_DEVICES_SYNC_RESPONSE))
+#define ANALOG_DEVICES_ACK 0x6
+#define ANALOG_DEVICES_NAK 0x7
+
+typedef struct
+{
+ BINARY product_id[15];
+ BINARY version[3];
+ BINARY reserved[4];
+ BINARY terminator[2];
+} AD_SYNC_RESPONSE;
+
+int AnalogDevicesDownload(ISP_ENVIRONMENT *IspEnvironment);
|
