In Application Programming with support for both LPC1768 and LPC2368. Original library here http://mbed.org/users/okano/notebook/iap-in-application-programming-internal-flash-eras/
IAP.h@0:406ffaf4d93c, 2011-07-11 (annotated)
- Committer:
- tecnosys
- Date:
- Mon Jul 11 01:53:18 2011 +0000
- Revision:
- 0:406ffaf4d93c
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tecnosys | 0:406ffaf4d93c | 1 | /** IAP : internal Flash memory access library |
tecnosys | 0:406ffaf4d93c | 2 | * |
tecnosys | 0:406ffaf4d93c | 3 | * The internal Flash memory access is described in the LPC1768 usermanual. |
tecnosys | 0:406ffaf4d93c | 4 | * http://www.nxp.com/documents/user_manual/UM10360.pdf |
tecnosys | 0:406ffaf4d93c | 5 | * |
tecnosys | 0:406ffaf4d93c | 6 | * Chapter 2: "LPC17xx Memory map" |
tecnosys | 0:406ffaf4d93c | 7 | * Chapter 32: "LPC17xx Flash memory interface and programming" |
tecnosys | 0:406ffaf4d93c | 8 | * refering Rev. 01 - 4 January 2010 |
tecnosys | 0:406ffaf4d93c | 9 | * |
tecnosys | 0:406ffaf4d93c | 10 | * Released under the MIT License: http://mbed.org/license/mit |
tecnosys | 0:406ffaf4d93c | 11 | * |
tecnosys | 0:406ffaf4d93c | 12 | * revision 1.0 09-Mar-2010 1st release |
tecnosys | 0:406ffaf4d93c | 13 | * revision 1.1 12-Mar-2010 chaged: to make possible to reserve flash area for user |
tecnosys | 0:406ffaf4d93c | 14 | * it can be set by USER_FLASH_AREA_START and USER_FLASH_AREA_SIZE in IAP.h |
tecnosys | 0:406ffaf4d93c | 15 | */ |
tecnosys | 0:406ffaf4d93c | 16 | |
tecnosys | 0:406ffaf4d93c | 17 | #ifndef MBED_IAP |
tecnosys | 0:406ffaf4d93c | 18 | #define MBED_IAP |
tecnosys | 0:406ffaf4d93c | 19 | |
tecnosys | 0:406ffaf4d93c | 20 | #include "mbed.h" |
tecnosys | 0:406ffaf4d93c | 21 | |
tecnosys | 0:406ffaf4d93c | 22 | /* |
tecnosys | 0:406ffaf4d93c | 23 | * memory map information is available in next URL also. |
tecnosys | 0:406ffaf4d93c | 24 | * http://mbed.org/projects/libraries/svn/mbed/trunk/LPC1768/LPC17xx.h |
tecnosys | 0:406ffaf4d93c | 25 | */ |
tecnosys | 0:406ffaf4d93c | 26 | |
tecnosys | 0:406ffaf4d93c | 27 | #ifdef TARGET_LPC1768 |
tecnosys | 0:406ffaf4d93c | 28 | |
tecnosys | 0:406ffaf4d93c | 29 | #define IAP_LOCATION 0x1fff1ff1 |
tecnosys | 0:406ffaf4d93c | 30 | |
tecnosys | 0:406ffaf4d93c | 31 | #define FLASH_SECTOR_0 0x00000000 |
tecnosys | 0:406ffaf4d93c | 32 | #define FLASH_SECTOR_1 0x00001000 |
tecnosys | 0:406ffaf4d93c | 33 | #define FLASH_SECTOR_2 0x00002000 |
tecnosys | 0:406ffaf4d93c | 34 | #define FLASH_SECTOR_3 0x00003000 |
tecnosys | 0:406ffaf4d93c | 35 | #define FLASH_SECTOR_4 0x00004000 |
tecnosys | 0:406ffaf4d93c | 36 | #define FLASH_SECTOR_5 0x00005000 |
tecnosys | 0:406ffaf4d93c | 37 | #define FLASH_SECTOR_6 0x00006000 |
tecnosys | 0:406ffaf4d93c | 38 | #define FLASH_SECTOR_7 0x00007000 |
tecnosys | 0:406ffaf4d93c | 39 | #define FLASH_SECTOR_8 0x00008000 |
tecnosys | 0:406ffaf4d93c | 40 | #define FLASH_SECTOR_9 0x00009000 |
tecnosys | 0:406ffaf4d93c | 41 | #define FLASH_SECTOR_10 0x0000A000 |
tecnosys | 0:406ffaf4d93c | 42 | #define FLASH_SECTOR_11 0x0000B000 |
tecnosys | 0:406ffaf4d93c | 43 | #define FLASH_SECTOR_12 0x0000C000 |
tecnosys | 0:406ffaf4d93c | 44 | #define FLASH_SECTOR_13 0x0000D000 |
tecnosys | 0:406ffaf4d93c | 45 | #define FLASH_SECTOR_14 0x0000E000 |
tecnosys | 0:406ffaf4d93c | 46 | #define FLASH_SECTOR_15 0x0000F000 |
tecnosys | 0:406ffaf4d93c | 47 | #define FLASH_SECTOR_16 0x00010000 |
tecnosys | 0:406ffaf4d93c | 48 | #define FLASH_SECTOR_17 0x00018000 |
tecnosys | 0:406ffaf4d93c | 49 | #define FLASH_SECTOR_18 0x00020000 |
tecnosys | 0:406ffaf4d93c | 50 | #define FLASH_SECTOR_19 0x00028000 |
tecnosys | 0:406ffaf4d93c | 51 | #define FLASH_SECTOR_20 0x00030000 |
tecnosys | 0:406ffaf4d93c | 52 | #define FLASH_SECTOR_21 0x00038000 |
tecnosys | 0:406ffaf4d93c | 53 | #define FLASH_SECTOR_22 0x00040000 |
tecnosys | 0:406ffaf4d93c | 54 | #define FLASH_SECTOR_23 0x00048000 |
tecnosys | 0:406ffaf4d93c | 55 | #define FLASH_SECTOR_24 0x00050000 |
tecnosys | 0:406ffaf4d93c | 56 | #define FLASH_SECTOR_25 0x00058000 |
tecnosys | 0:406ffaf4d93c | 57 | #define FLASH_SECTOR_26 0x00060000 |
tecnosys | 0:406ffaf4d93c | 58 | #define FLASH_SECTOR_27 0x00068000 |
tecnosys | 0:406ffaf4d93c | 59 | #define FLASH_SECTOR_28 0x00070000 |
tecnosys | 0:406ffaf4d93c | 60 | #define FLASH_SECTOR_29 0x00078000 |
tecnosys | 0:406ffaf4d93c | 61 | |
tecnosys | 0:406ffaf4d93c | 62 | #define FLASH_SECTOR_SIZE_0_TO_15 ( 4 * 1024) |
tecnosys | 0:406ffaf4d93c | 63 | #define FLASH_SECTOR_SIZE_16_TO_29 (32 * 1024) |
tecnosys | 0:406ffaf4d93c | 64 | |
tecnosys | 0:406ffaf4d93c | 65 | #define USER_FLASH_AREA_START FLASH_SECTOR_29 |
tecnosys | 0:406ffaf4d93c | 66 | #define USER_FLASH_AREA_SIZE (FLASH_SECTOR_SIZE_16_TO_29 * 1) |
tecnosys | 0:406ffaf4d93c | 67 | |
tecnosys | 0:406ffaf4d93c | 68 | static char * sector_start_adress[] = { |
tecnosys | 0:406ffaf4d93c | 69 | (char *)FLASH_SECTOR_0, |
tecnosys | 0:406ffaf4d93c | 70 | (char *)FLASH_SECTOR_1, |
tecnosys | 0:406ffaf4d93c | 71 | (char *)FLASH_SECTOR_2, |
tecnosys | 0:406ffaf4d93c | 72 | (char *)FLASH_SECTOR_3, |
tecnosys | 0:406ffaf4d93c | 73 | (char *)FLASH_SECTOR_4, |
tecnosys | 0:406ffaf4d93c | 74 | (char *)FLASH_SECTOR_5, |
tecnosys | 0:406ffaf4d93c | 75 | (char *)FLASH_SECTOR_6, |
tecnosys | 0:406ffaf4d93c | 76 | (char *)FLASH_SECTOR_7, |
tecnosys | 0:406ffaf4d93c | 77 | (char *)FLASH_SECTOR_8, |
tecnosys | 0:406ffaf4d93c | 78 | (char *)FLASH_SECTOR_9, |
tecnosys | 0:406ffaf4d93c | 79 | (char *)FLASH_SECTOR_10, |
tecnosys | 0:406ffaf4d93c | 80 | (char *)FLASH_SECTOR_11, |
tecnosys | 0:406ffaf4d93c | 81 | (char *)FLASH_SECTOR_12, |
tecnosys | 0:406ffaf4d93c | 82 | (char *)FLASH_SECTOR_13, |
tecnosys | 0:406ffaf4d93c | 83 | (char *)FLASH_SECTOR_14, |
tecnosys | 0:406ffaf4d93c | 84 | (char *)FLASH_SECTOR_15, |
tecnosys | 0:406ffaf4d93c | 85 | (char *)FLASH_SECTOR_16, |
tecnosys | 0:406ffaf4d93c | 86 | (char *)FLASH_SECTOR_17, |
tecnosys | 0:406ffaf4d93c | 87 | (char *)FLASH_SECTOR_18, |
tecnosys | 0:406ffaf4d93c | 88 | (char *)FLASH_SECTOR_19, |
tecnosys | 0:406ffaf4d93c | 89 | (char *)FLASH_SECTOR_20, |
tecnosys | 0:406ffaf4d93c | 90 | (char *)FLASH_SECTOR_21, |
tecnosys | 0:406ffaf4d93c | 91 | (char *)FLASH_SECTOR_22, |
tecnosys | 0:406ffaf4d93c | 92 | (char *)FLASH_SECTOR_23, |
tecnosys | 0:406ffaf4d93c | 93 | (char *)FLASH_SECTOR_24, |
tecnosys | 0:406ffaf4d93c | 94 | (char *)FLASH_SECTOR_25, |
tecnosys | 0:406ffaf4d93c | 95 | (char *)FLASH_SECTOR_26, |
tecnosys | 0:406ffaf4d93c | 96 | (char *)FLASH_SECTOR_27, |
tecnosys | 0:406ffaf4d93c | 97 | (char *)FLASH_SECTOR_28, |
tecnosys | 0:406ffaf4d93c | 98 | (char *)FLASH_SECTOR_29 |
tecnosys | 0:406ffaf4d93c | 99 | }; |
tecnosys | 0:406ffaf4d93c | 100 | |
tecnosys | 0:406ffaf4d93c | 101 | |
tecnosys | 0:406ffaf4d93c | 102 | #endif |
tecnosys | 0:406ffaf4d93c | 103 | |
tecnosys | 0:406ffaf4d93c | 104 | #ifdef TARGET_LPC2368 |
tecnosys | 0:406ffaf4d93c | 105 | #define IAP_LOCATION 0x7FFFFFF1 |
tecnosys | 0:406ffaf4d93c | 106 | |
tecnosys | 0:406ffaf4d93c | 107 | #define FLASH_SECTOR_0 0x00000000 |
tecnosys | 0:406ffaf4d93c | 108 | #define FLASH_SECTOR_1 0x00001000 |
tecnosys | 0:406ffaf4d93c | 109 | #define FLASH_SECTOR_2 0x00002000 |
tecnosys | 0:406ffaf4d93c | 110 | #define FLASH_SECTOR_3 0x00003000 |
tecnosys | 0:406ffaf4d93c | 111 | #define FLASH_SECTOR_4 0x00004000 |
tecnosys | 0:406ffaf4d93c | 112 | #define FLASH_SECTOR_5 0x00005000 |
tecnosys | 0:406ffaf4d93c | 113 | #define FLASH_SECTOR_6 0x00006000 |
tecnosys | 0:406ffaf4d93c | 114 | #define FLASH_SECTOR_7 0x00007000 |
tecnosys | 0:406ffaf4d93c | 115 | #define FLASH_SECTOR_8 0x00008000 |
tecnosys | 0:406ffaf4d93c | 116 | #define FLASH_SECTOR_9 0x00010000 |
tecnosys | 0:406ffaf4d93c | 117 | #define FLASH_SECTOR_10 0x00018000 |
tecnosys | 0:406ffaf4d93c | 118 | #define FLASH_SECTOR_11 0x00020000 |
tecnosys | 0:406ffaf4d93c | 119 | #define FLASH_SECTOR_12 0x00028000 |
tecnosys | 0:406ffaf4d93c | 120 | #define FLASH_SECTOR_13 0x00030000 |
tecnosys | 0:406ffaf4d93c | 121 | #define FLASH_SECTOR_14 0x00038000 |
tecnosys | 0:406ffaf4d93c | 122 | #define FLASH_SECTOR_15 0x00040000 |
tecnosys | 0:406ffaf4d93c | 123 | #define FLASH_SECTOR_16 0x00048000 |
tecnosys | 0:406ffaf4d93c | 124 | #define FLASH_SECTOR_17 0x00050000 |
tecnosys | 0:406ffaf4d93c | 125 | #define FLASH_SECTOR_18 0x00058000 |
tecnosys | 0:406ffaf4d93c | 126 | #define FLASH_SECTOR_19 0x00060000 |
tecnosys | 0:406ffaf4d93c | 127 | #define FLASH_SECTOR_20 0x00068000 |
tecnosys | 0:406ffaf4d93c | 128 | #define FLASH_SECTOR_21 0x00070000 |
tecnosys | 0:406ffaf4d93c | 129 | #define FLASH_SECTOR_22 0x00078000 |
tecnosys | 0:406ffaf4d93c | 130 | #define FLASH_SECTOR_23 0x00079000 |
tecnosys | 0:406ffaf4d93c | 131 | #define FLASH_SECTOR_24 0x0007A000 |
tecnosys | 0:406ffaf4d93c | 132 | #define FLASH_SECTOR_25 0x0007B000 |
tecnosys | 0:406ffaf4d93c | 133 | #define FLASH_SECTOR_26 0x0007C000 |
tecnosys | 0:406ffaf4d93c | 134 | #define FLASH_SECTOR_27 0x0007D000 |
tecnosys | 0:406ffaf4d93c | 135 | |
tecnosys | 0:406ffaf4d93c | 136 | #define FLASH_SECTOR_SIZE_0_TO_7 ( 4 * 1024) |
tecnosys | 0:406ffaf4d93c | 137 | #define FLASH_SECTOR_SIZE_8_TO_21 (32 * 1024) |
tecnosys | 0:406ffaf4d93c | 138 | #define FLASH_SECTOR_SIZE_22_TO_27 ( 4 * 1024) |
tecnosys | 0:406ffaf4d93c | 139 | |
tecnosys | 0:406ffaf4d93c | 140 | |
tecnosys | 0:406ffaf4d93c | 141 | #define USER_FLASH_AREA_START FLASH_SECTOR_21 |
tecnosys | 0:406ffaf4d93c | 142 | #define USER_FLASH_AREA_SIZE (FLASH_SECTOR_SIZE_8_TO_21 * 1) |
tecnosys | 0:406ffaf4d93c | 143 | |
tecnosys | 0:406ffaf4d93c | 144 | static char * sector_start_adress[] = { |
tecnosys | 0:406ffaf4d93c | 145 | (char *)FLASH_SECTOR_0, |
tecnosys | 0:406ffaf4d93c | 146 | (char *)FLASH_SECTOR_1, |
tecnosys | 0:406ffaf4d93c | 147 | (char *)FLASH_SECTOR_2, |
tecnosys | 0:406ffaf4d93c | 148 | (char *)FLASH_SECTOR_3, |
tecnosys | 0:406ffaf4d93c | 149 | (char *)FLASH_SECTOR_4, |
tecnosys | 0:406ffaf4d93c | 150 | (char *)FLASH_SECTOR_5, |
tecnosys | 0:406ffaf4d93c | 151 | (char *)FLASH_SECTOR_6, |
tecnosys | 0:406ffaf4d93c | 152 | (char *)FLASH_SECTOR_7, |
tecnosys | 0:406ffaf4d93c | 153 | (char *)FLASH_SECTOR_8, |
tecnosys | 0:406ffaf4d93c | 154 | (char *)FLASH_SECTOR_9, |
tecnosys | 0:406ffaf4d93c | 155 | (char *)FLASH_SECTOR_10, |
tecnosys | 0:406ffaf4d93c | 156 | (char *)FLASH_SECTOR_11, |
tecnosys | 0:406ffaf4d93c | 157 | (char *)FLASH_SECTOR_12, |
tecnosys | 0:406ffaf4d93c | 158 | (char *)FLASH_SECTOR_13, |
tecnosys | 0:406ffaf4d93c | 159 | (char *)FLASH_SECTOR_14, |
tecnosys | 0:406ffaf4d93c | 160 | (char *)FLASH_SECTOR_15, |
tecnosys | 0:406ffaf4d93c | 161 | (char *)FLASH_SECTOR_16, |
tecnosys | 0:406ffaf4d93c | 162 | (char *)FLASH_SECTOR_17, |
tecnosys | 0:406ffaf4d93c | 163 | (char *)FLASH_SECTOR_18, |
tecnosys | 0:406ffaf4d93c | 164 | (char *)FLASH_SECTOR_19, |
tecnosys | 0:406ffaf4d93c | 165 | (char *)FLASH_SECTOR_20, |
tecnosys | 0:406ffaf4d93c | 166 | (char *)FLASH_SECTOR_21, |
tecnosys | 0:406ffaf4d93c | 167 | (char *)FLASH_SECTOR_22, |
tecnosys | 0:406ffaf4d93c | 168 | (char *)FLASH_SECTOR_23, |
tecnosys | 0:406ffaf4d93c | 169 | (char *)FLASH_SECTOR_24, |
tecnosys | 0:406ffaf4d93c | 170 | (char *)FLASH_SECTOR_25, |
tecnosys | 0:406ffaf4d93c | 171 | (char *)FLASH_SECTOR_26, |
tecnosys | 0:406ffaf4d93c | 172 | (char *)FLASH_SECTOR_27 |
tecnosys | 0:406ffaf4d93c | 173 | }; |
tecnosys | 0:406ffaf4d93c | 174 | |
tecnosys | 0:406ffaf4d93c | 175 | |
tecnosys | 0:406ffaf4d93c | 176 | #endif |
tecnosys | 0:406ffaf4d93c | 177 | |
tecnosys | 0:406ffaf4d93c | 178 | |
tecnosys | 0:406ffaf4d93c | 179 | /** Error code by IAP routine |
tecnosys | 0:406ffaf4d93c | 180 | * |
tecnosys | 0:406ffaf4d93c | 181 | * Table 588 "ISP Return Codes Summary", Section 7.15 "ISP Return Codes", usermanual |
tecnosys | 0:406ffaf4d93c | 182 | */ |
tecnosys | 0:406ffaf4d93c | 183 | |
tecnosys | 0:406ffaf4d93c | 184 | enum error_code { |
tecnosys | 0:406ffaf4d93c | 185 | CMD_SUCCESS, |
tecnosys | 0:406ffaf4d93c | 186 | INVALID_COMMAND, |
tecnosys | 0:406ffaf4d93c | 187 | SRC_ADDR_ERROR, |
tecnosys | 0:406ffaf4d93c | 188 | DST_ADDR_ERROR, |
tecnosys | 0:406ffaf4d93c | 189 | SRC_ADDR_NOT_MAPPED, |
tecnosys | 0:406ffaf4d93c | 190 | DST_ADDR_NOT_MAPPED, |
tecnosys | 0:406ffaf4d93c | 191 | COUNT_ERROR, |
tecnosys | 0:406ffaf4d93c | 192 | INVALID_SECTOR, |
tecnosys | 0:406ffaf4d93c | 193 | SECTOR_NOT_BLANK, |
tecnosys | 0:406ffaf4d93c | 194 | SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION, |
tecnosys | 0:406ffaf4d93c | 195 | COMPARE_ERROR, |
tecnosys | 0:406ffaf4d93c | 196 | BUSY, |
tecnosys | 0:406ffaf4d93c | 197 | PARAM_ERROR, |
tecnosys | 0:406ffaf4d93c | 198 | ADDR_ERROR, |
tecnosys | 0:406ffaf4d93c | 199 | ADDR_NOT_MAPPED, |
tecnosys | 0:406ffaf4d93c | 200 | CMD_LOCKED, |
tecnosys | 0:406ffaf4d93c | 201 | INVALID_CODE, |
tecnosys | 0:406ffaf4d93c | 202 | INVALID_BAUD_RATE, |
tecnosys | 0:406ffaf4d93c | 203 | INVALID_STOP_BIT, |
tecnosys | 0:406ffaf4d93c | 204 | CODE_READ_PROTECTION_ENABLED |
tecnosys | 0:406ffaf4d93c | 205 | }; |
tecnosys | 0:406ffaf4d93c | 206 | |
tecnosys | 0:406ffaf4d93c | 207 | |
tecnosys | 0:406ffaf4d93c | 208 | |
tecnosys | 0:406ffaf4d93c | 209 | /* |
tecnosys | 0:406ffaf4d93c | 210 | * IAP routine entry |
tecnosys | 0:406ffaf4d93c | 211 | * |
tecnosys | 0:406ffaf4d93c | 212 | * Chapter 8. "IAP commands", usermanual |
tecnosys | 0:406ffaf4d93c | 213 | */ |
tecnosys | 0:406ffaf4d93c | 214 | |
tecnosys | 0:406ffaf4d93c | 215 | |
tecnosys | 0:406ffaf4d93c | 216 | //#define IAP_LOCATION 0x1fff1ff1 |
tecnosys | 0:406ffaf4d93c | 217 | |
tecnosys | 0:406ffaf4d93c | 218 | |
tecnosys | 0:406ffaf4d93c | 219 | typedef void (*IAP_call)(unsigned int [], unsigned int []); |
tecnosys | 0:406ffaf4d93c | 220 | |
tecnosys | 0:406ffaf4d93c | 221 | /** IAP class |
tecnosys | 0:406ffaf4d93c | 222 | * |
tecnosys | 0:406ffaf4d93c | 223 | * Interface for internal flash memory access |
tecnosys | 0:406ffaf4d93c | 224 | */ |
tecnosys | 0:406ffaf4d93c | 225 | |
tecnosys | 0:406ffaf4d93c | 226 | |
tecnosys | 0:406ffaf4d93c | 227 | class IAP { |
tecnosys | 0:406ffaf4d93c | 228 | public: |
tecnosys | 0:406ffaf4d93c | 229 | |
tecnosys | 0:406ffaf4d93c | 230 | /* |
tecnosys | 0:406ffaf4d93c | 231 | * SystemCoreClock ??? : |
tecnosys | 0:406ffaf4d93c | 232 | * http://mbed.org/forum/mbed/topic/229/ |
tecnosys | 0:406ffaf4d93c | 233 | * http://mbed.org/users/simon/programs/SystemCoreClock/16mhsh/ |
tecnosys | 0:406ffaf4d93c | 234 | */ |
tecnosys | 0:406ffaf4d93c | 235 | |
tecnosys | 0:406ffaf4d93c | 236 | |
tecnosys | 0:406ffaf4d93c | 237 | /** Constructor for IAP |
tecnosys | 0:406ffaf4d93c | 238 | * |
tecnosys | 0:406ffaf4d93c | 239 | */ |
tecnosys | 0:406ffaf4d93c | 240 | |
tecnosys | 0:406ffaf4d93c | 241 | IAP() : iap_entry( reinterpret_cast<IAP_call>(IAP_LOCATION) ), cclk_kHz( SystemCoreClock / 1000 ) {} |
tecnosys | 0:406ffaf4d93c | 242 | int read_ID( void ); |
tecnosys | 0:406ffaf4d93c | 243 | int read_serial( void ); |
tecnosys | 0:406ffaf4d93c | 244 | int blank_check( int start, int end ); |
tecnosys | 0:406ffaf4d93c | 245 | int erase( int start, int end ); |
tecnosys | 0:406ffaf4d93c | 246 | int prepare( int start, int end ); |
tecnosys | 0:406ffaf4d93c | 247 | int write( char *source_addr, char *target_addr, int size ); |
tecnosys | 0:406ffaf4d93c | 248 | int compare( char *source_addr, char *target_addr, int size ); |
tecnosys | 0:406ffaf4d93c | 249 | |
tecnosys | 0:406ffaf4d93c | 250 | char *reserved_flash_area_start( void ); |
tecnosys | 0:406ffaf4d93c | 251 | int reserved_flash_area_size( void ); |
tecnosys | 0:406ffaf4d93c | 252 | |
tecnosys | 0:406ffaf4d93c | 253 | private: |
tecnosys | 0:406ffaf4d93c | 254 | IAP_call iap_entry; |
tecnosys | 0:406ffaf4d93c | 255 | unsigned int IAP_command[ 5 ]; |
tecnosys | 0:406ffaf4d93c | 256 | unsigned int IAP_result[ 5 ]; |
tecnosys | 0:406ffaf4d93c | 257 | int cclk_kHz; |
tecnosys | 0:406ffaf4d93c | 258 | |
tecnosys | 0:406ffaf4d93c | 259 | //int cpu_clock( void ); |
tecnosys | 0:406ffaf4d93c | 260 | } |
tecnosys | 0:406ffaf4d93c | 261 | ; |
tecnosys | 0:406ffaf4d93c | 262 | |
tecnosys | 0:406ffaf4d93c | 263 | #endif // #ifndef MBED_IAP |