File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.0.0 FATAL_ERROR)
1+ cmake_minimum_required (VERSION 3.13 FATAL_ERROR)
22
33# Set up the project
44project (levelx
Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ ULONG block_word;
290290
291291 /* Loop through the memory supplied and assign to cache entries. */
292292 i = 0 ;
293- while (cache_size >= LX_NOR_SECTOR_SIZE )
293+ while (( cache_size >= LX_NOR_SECTOR_SIZE ) && ( i < LX_NOR_EXTENDED_CACHE_SIZE ) )
294294 {
295295
296296 /* Setup this cache entry. */
@@ -309,7 +309,7 @@ ULONG block_word;
309309 }
310310
311311 /* Save the number of cache entries. */
312- if (i > LX_NOR_EXTENDED_CACHE_SIZE )
312+ if (i == LX_NOR_EXTENDED_CACHE_SIZE )
313313 {
314314
315315 nor_flash -> lx_nor_flash_extended_cache_entries = LX_NOR_EXTENDED_CACHE_SIZE ;
You can’t perform that action at this time.
0 commit comments