Sophie Dexter
/
Just4Trionic
Just4Trionic - CAN and BDM FLASH programmer for Saab cars
Diff: common.h
- Revision:
- 5:1775b4b13232
- Parent:
- 4:682d96ff6d79
- Child:
- 6:2fbcbebed28c
diff -r 682d96ff6d79 -r 1775b4b13232 common.h --- a/common.h Wed Sep 11 11:55:51 2013 +0000 +++ b/common.h Sat Apr 25 17:07:08 2015 +0000 @@ -29,6 +29,8 @@ #include "sizedefs.h" #include "strings.h" #include "interfaces.h" +#include "t8bootloaders.h" +#include "t5bootloaders.h" // build configuration //#define IGNORE_VCC_PIN ///< uncomment to ignore the VCC pin @@ -60,19 +62,33 @@ #define FILE_BUF_LENGTH 0x1000 ///< file buffer size static char file_buffer[FILE_BUF_LENGTH]; ///< file buffer +static const uint8_t T8BootloaderRead[] = T8_BOOTLOADER_DUMP; +static const uint8_t T8BootLoaderWrite[] = T8_BOOTLOADER_PROG; + +static const uint8_t T5BootLoader[] = MYBOOTY; + // FLASH chip manufacturer id values #define AMD 0x01 #define CSI 0x31 #define INTEL 0x89 +#define ATMEL 0x1F +#define SST 0xBF +#define ST 0x20 +#define AMIC 0x37 // FLASH chip type values #define INTEL28F512 0xB8 #define AMD28F512 0x25 -#define INTEL28F010 0xB4 +#define INTEL28F010 0xB4 // and CSI #define AMD28F010 0xA7 -#define AMD29F010 0x20 +#define AMD29F010 0x20 // and ST +#define ATMEL29C512 0x5D +#define ATMEL29C010 0xD5 +#define SST39SF010 0xB5 +#define ST29F010 0x20 +#define AMICA29010L 0xA4 #define AMD29F400T 0x23 -#define AMD29F400B 0xAB +#define AMD29F400B 0xAB // !!! NOT USED IN T7 !!! //#define 29F400T 0x2223 //#define 29F400B 0x22AB #define AMD29BL802C 0x81