Commit 7ba5659
committed
hal/nxp: s32K344: flash_c40: add C40 features, IP aliases; init ret
- fsl_c40_flash.c: Initialize `ret` in FLASH_Erase() to
`kStatus_FLASH_Success` to avoid potential use-before-set warnings on some
toolchains/static analyzers (no functional change).
- S32K344_features.h: Define C40 array geometry for S32K344 using unsigned
constants:
* FSL_FEATURE_FLASH_C40_BLOCK_SIZE_CODE (1 MiB)
* FSL_FEATURE_FLASH_C40_BLOCK_COUNT_CODE (4)
* FSL_FEATURE_FLASH_C40_BLOCK_SIZE_DATA (256 KiB)
Note: erase/program granularities are controller-level and handled by driver.
- S32K344_glue_mcux.h: Provide conditional aliases mapping FLASH↔IP_FLASH and
PFLASH↔IP_PFLASH to harmonize SDK naming and improve build portability.
Signed-off-by: Sumit Batra <sumit.batra@nxp.com>1 parent b374adf commit 7ba5659
File tree
4 files changed
+37
-1
lines changed- mcux
- mcux-sdk-ng/drivers/flash_c40
- s32/mcux/devices/S32K344
4 files changed
+37
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
247 | 254 | | |
248 | 255 | | |
249 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
821 | | - | |
| 821 | + | |
822 | 822 | | |
823 | 823 | | |
824 | 824 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
239 | 248 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
211 | 231 | | |
0 commit comments