]> git.sur5r.net Git - openocd/blob - src/flash/avrf.h
d1c976c6f753c98ae0f33cc8d306c72c8bfa8fb8
[openocd] / src / flash / avrf.h
1 /***************************************************************************\r
2  *   Copyright (C) 2009 by Simon Qian                                      *\r
3  *   SimonQian@SimonQian.com                                               *\r
4  *                                                                         *\r
5  *   This program is free software; you can redistribute it and/or modify  *\r
6  *   it under the terms of the GNU General Public License as published by  *\r
7  *   the Free Software Foundation; either version 2 of the License, or     *\r
8  *   (at your option) any later version.                                   *\r
9  *                                                                         *\r
10  *   This program is distributed in the hope that it will be useful,       *\r
11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *\r
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *\r
13  *   GNU General Public License for more details.                          *\r
14  *                                                                         *\r
15  *   You should have received a copy of the GNU General Public License     *\r
16  *   along with this program; if not, write to the                         *\r
17  *   Free Software Foundation, Inc.,                                       *\r
18  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *\r
19  ***************************************************************************/\r
20 #ifndef AVRF_H\r
21 #define AVRF_H\r
22 \r
23 typedef struct avrf_type_s\r
24 {\r
25         char name[15];\r
26         u16 chip_id;\r
27         int flash_page_size;\r
28         int flash_page_num;\r
29         int eeprom_page_size;\r
30         int eeprom_page_num;\r
31 } avrf_type_t;\r
32 \r
33 typedef struct avrf_flash_bank_s\r
34 {\r
35         int ppage_size;\r
36         int probed;\r
37 } avrf_flash_bank_t;\r
38 \r
39 #endif /* AVRF_H */\r