comparison packages/io/flash/current/include/flash_dev.h @ 194:feb0fcf83327

Merge from eCos master repository on 2001-10-26-06:43:03-BST
author jlarmour
date Fri, 26 Oct 2001 12:27:31 +0000
parents 0d0f03f76f6a
children e0c0827131d1
comparison
equal deleted inserted replaced
193:4dfd3b21767f 194:feb0fcf83327
32 //####COPYRIGHTEND#### 32 //####COPYRIGHTEND####
33 //========================================================================== 33 //==========================================================================
34 //#####DESCRIPTIONBEGIN#### 34 //#####DESCRIPTIONBEGIN####
35 // 35 //
36 // Author(s): hmt 36 // Author(s): hmt
37 // Contributors: hmt, jskov 37 // Contributors: hmt, jskov, Jose Pascual <josepascual@almudi.com>
38 // Date: 2001-02-22 38 // Date: 2001-02-22
39 // Purpose: Define common flash device driver definitions 39 // Purpose: Define common flash device driver definitions
40 // Description: The flash_data_t type is used for accessing 40 // Description: The flash_data_t type is used for accessing
41 // devices at the correct width. 41 // devices at the correct width.
42 // The FLASHWORD macro must be used to create constants 42 // The FLASHWORD macro must be used to create constants
112 typedef cyg_uint16 flash_data_t; 112 typedef cyg_uint16 flash_data_t;
113 # elif 2 == CYGNUM_FLASH_INTERLEAVE 113 # elif 2 == CYGNUM_FLASH_INTERLEAVE
114 // 2 devices to make 32-bit 114 // 2 devices to make 32-bit
115 # define FLASHWORD( k ) ((k)+((k)<<16)) 115 # define FLASHWORD( k ) ((k)+((k)<<16))
116 typedef cyg_uint32 flash_data_t; 116 typedef cyg_uint32 flash_data_t;
117 # elif 2 == CYGNUM_FLASH_INTERLEAVE 117 # elif 4 == CYGNUM_FLASH_INTERLEAVE
118 // 4 devices to make 64-bit - intermediate requires explicit widening 118 // 4 devices to make 64-bit - intermediate requires explicit widening
119 # define FLASHWORD32( k ) ((flash_data_t)((k)+((k)<<16))) 119 # define FLASHWORD32( k ) ((flash_data_t)((k)+((k)<<16)))
120 # define FLASHWORD( k ) (FLASHWORD32( k ) + (FLASHWORD32( k ) << 32)); 120 # define FLASHWORD( k ) (FLASHWORD32( k ) + (FLASHWORD32( k ) << 32));
121 typedef cyg_uint64 flash_data_t; 121 typedef cyg_uint64 flash_data_t;
122 # else 122 # else