2 * betty.h - betty alternative firmware header file
4 * author: hackbard@hackdaworld.org
26 /* bank 0/2 and boootloader addr/size */
27 #define BANK0 0x80000000
28 #define BANK1 0x81000000
29 #define BANK2 0x82000000
30 #define BANK_SIZE 0x00100000
31 #define BOOTLOADER 0x7fffe000
32 #define BL_SIZE 0x00002000
34 /* flash cmd addresses - flash[0-18] <--> arm[1-19]*/
35 #define B0F555 (*((volatile unsigned short *)(BANK0|0xaaa))) // 0x555
36 #define B0F2AA (*((volatile unsigned short *)(BANK0|0x554))) // 0x2aa
37 #define B0F (*((volatile unsigned short *)(BANK0)))
38 #define B2F555 (*((volatile unsigned short *)(BANK2|0xaaa))) // 0x555
39 #define B2F2AA (*((volatile unsigned short *)(BANK2|0x554))) // 0x2aa
40 #define B2F (*((volatile unsigned short *)(BANK2)))
42 /* lcd command and data addresses */
43 #define LCD_CMD (*((volatile unsigned char *)(BANK1)))
44 #define LCD_DATA (*((volatile unsigned char *)(BANK1+1)))
50 typedef unsigned char u8;
51 typedef unsigned short u16;
52 typedef unsigned int u32;
53 typedef unsigned long long int u64;