forked from Imagelibrary/rtems
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:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user