Commit 2be0790
committed
targets:TARGET_IMX: Fix the memset issue for FLASHIAP
The memset function from c library will be linked in flash
space, it's risk for FLASHIAP. So I wrote flexspi_memset
to replace the memset for IMX FLASHIAP, and put the function
into targets/.../TARGET_IMX/flash_api.c file. All IMX Soc
platforms can declare it as extern and use in their Soc
flexspi driver files.
Signed-off-by: Gavin Liu <gang.liu@nxp.com>1 parent f8a8401 commit 2be0790
File tree
3 files changed
+60
-7
lines changed- targets/TARGET_NXP/TARGET_MCUXpresso_MCUS
- TARGET_IMX
- TARGET_MIMXRT1050/drivers
3 files changed
+60
-7
lines changedLines changed: 50 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
40 | 85 | | |
41 | 86 | | |
42 | 87 | | |
43 | 88 | | |
44 | 89 | | |
45 | | - | |
| 90 | + | |
46 | 91 | | |
47 | 92 | | |
48 | 93 | | |
| |||
77 | 122 | | |
78 | 123 | | |
79 | 124 | | |
80 | | - | |
| 125 | + | |
81 | 126 | | |
82 | 127 | | |
83 | 128 | | |
| |||
99 | 144 | | |
100 | 145 | | |
101 | 146 | | |
102 | | - | |
| 147 | + | |
103 | 148 | | |
104 | 149 | | |
105 | 150 | | |
| |||
138 | 183 | | |
139 | 184 | | |
140 | 185 | | |
141 | | - | |
| 186 | + | |
142 | 187 | | |
143 | 188 | | |
144 | 189 | | |
| |||
229 | 274 | | |
230 | 275 | | |
231 | 276 | | |
232 | | - | |
| 277 | + | |
233 | 278 | | |
234 | 279 | | |
235 | 280 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
| 362 | + | |
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
336 | 344 | | |
337 | 345 | | |
338 | 346 | | |
| |||
0 commit comments