mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-17 21:24:02 +00:00
Dyn flash size (#2933)
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
using namespace lpc43xx;
|
||||
|
||||
#include "utility.hpp"
|
||||
#include "../flashsize.h"
|
||||
|
||||
namespace portapack {
|
||||
namespace memory {
|
||||
@@ -70,7 +71,7 @@ constexpr region_t ahb_ram_2{0x2000c000, 16_KiB};
|
||||
|
||||
constexpr region_t backup_ram{LPC_BACKUP_REG_BASE, 256};
|
||||
|
||||
constexpr region_t spifi_uncached{LPC_SPIFI_DATA_BASE, 1_MiB};
|
||||
constexpr region_t spifi_uncached{LPC_SPIFI_DATA_BASE, FLASH_SIZE_MB * 1024 * 1024};
|
||||
constexpr region_t spifi_cached{LPC_SPIFI_DATA_CACHED_BASE, spifi_uncached.size()};
|
||||
|
||||
/////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user