The friendly Operating System for the Internet of Things
chipinfo.h
1 /*
2  * LPC 2000 Loader, http://www.pjrc.com/arm/lpc2k_pgm
3  * Copyright (c) 2004, PJRC.COM, LLC, <paul@pjrc.com>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation; version 2 of the License.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
12  * Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  */
18 
19 extern char *lpc_return_strings[];
20 
24 struct sector_info_struct { /* an array of */
25  int address;
26  int size;
27 };
28 
33  char *part_number;
34  char *id_string;
35  unsigned int ram_addr;
36  int chunk_size;
37  int num_sector;
39  const unsigned int *bootprog;
41 };
42 
43 extern struct chip_info_struct chip_info[];
int size
and how big it is
Definition: chipinfo.h:26
struct sector_info_struct * layout
layout of sectors
Definition: chipinfo.h:38
int chunk_size
download to ram chunk size
Definition: chipinfo.h:36
int address
where each sector is located
Definition: chipinfo.h:25
const unsigned int * bootprog
code that boots into user program (NULL = DTR/RTS only)
Definition: chipinfo.h:39
struct defining sector information
Definition: chipinfo.h:24
char * part_number
human readable part number
Definition: chipinfo.h:33
char * id_string
id string sent by "J" command
Definition: chipinfo.h:34
unsigned int ram_addr
where to download into RAM
Definition: chipinfo.h:35
int num_sector
number of flash sectors
Definition: chipinfo.h:37