arm/lpc32xx: Fix prototype mismatch and LPC32XX_SCRATCH_AREA_SIZE use

lpc32xx_mlc_write_blocks() had a different prototype in the header
from the implementation. Changed to match the prototype and Doxygen.

LPC32XX_SCRATCH_AREA_SIZE was tested with "ifdef" not "if" which
resulted in it being used as an array size when undefined or
set to 0.
This commit is contained in:
Joel Sherrill
2025-07-07 17:24:49 -05:00
parent a30ecc39cd
commit 6fbbee4427
3 changed files with 6 additions and 6 deletions

View File

@@ -68,7 +68,7 @@
.begin = (uint32_t) bsp_section_fast_data_begin,
.end = (uint32_t) bsp_section_fast_data_end,
.flags = LPC32XX_MMU_READ_WRITE_DATA
#ifdef LPC32XX_SCRATCH_AREA_SIZE
#if LPC32XX_SCRATCH_AREA_SIZE
}, {
.begin = (uint32_t) &lpc32xx_scratch_area [0],
.end = (uint32_t) &lpc32xx_scratch_area [LPC32XX_SCRATCH_AREA_SIZE],