comparison packages/devs/flash/arm/iq80310/current/src/flash.h @ 177:4c750ce71ae3

Merge from eCos master repository on 2001-08-10-19:22:57-BST
author jlarmour
date Fri, 10 Aug 2001 19:27:55 +0000
parents f935b880e96c
children e0c0827131d1
comparison
equal deleted inserted replaced
176:3902ef905c9c 177:4c750ce71ae3
45 #define _FLASH_HWR_H_ 45 #define _FLASH_HWR_H_
46 46
47 // First 4K page of flash at physical address zero is 47 // First 4K page of flash at physical address zero is
48 // virtually mapped at address 0xa0000000. 48 // virtually mapped at address 0xa0000000.
49 #define FLASH_P2V(x) ((volatile unsigned char *)(((unsigned)(x) < 0x1000) ? \ 49 #define FLASH_P2V(x) ((volatile unsigned char *)(((unsigned)(x) < 0x1000) ? \
50 ((unsigned)(x) | 0xa0000000) : \ 50 ((unsigned)(x) | 0xd0000000) : \
51 (unsigned)(x))) 51 (unsigned)(x)))
52 52
53 #define FLASH_BOOT_BLOCK_SIZE 0x4000 53 #define FLASH_BOOT_BLOCK_SIZE 0x4000
54 54
55 #define FLASH_Intel_code 0x89 55 #define FLASH_Intel_code 0x89