X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fstr9x.h;h=693851487db646985075731fe8a315b1575c56ad;hb=d0dfec33b6d6844c3c1b817a464b9f040ce40087;hp=f3100ce38aed6b2452123cef67319d6601aa85fc;hpb=80d20326a7fafc0f6ed865df2211bc9e609265fb;p=openocd.git diff --git a/src/flash/str9x.h b/src/flash/str9x.h index f3100ce38a..693851487d 100644 --- a/src/flash/str9x.h +++ b/src/flash/str9x.h @@ -2,6 +2,9 @@ * Copyright (C) 2005 by Dominic Rath * * Dominic.Rath@gmx.de * * * + * Copyright (C) 2008 by Spencer Oliver * + * spen@spen-soft.co.uk * + * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * @@ -21,15 +24,14 @@ #define STR9X_H #include "flash.h" -#include "target.h" -typedef struct str9x_flash_bank_s +struct str9x_flash_bank { - u32 *sector_bits; + uint32_t *sector_bits; int variant; int bank1; working_area_t *write_algorithm; -} str9x_flash_bank_t; +}; enum str9x_status_codes { @@ -47,7 +49,7 @@ enum str9x_status_codes STR9X_BUSY = 11 }; -/* Flash registers */ +/* Flash registers */ #define FLASH_BBSR 0x54000000 /* Boot Bank Size Register */ #define FLASH_NBBSR 0x54000004 /* Non-Boot Bank Size Register */ @@ -58,4 +60,3 @@ enum str9x_status_codes #define FLASH_BCE5ADDR 0x54000020 /* BC Fifth Entry Target Address Register */ #endif /* STR9X_H */ -