mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-25 09:51:10 -04:00
Rework to make use of declared memory map regions.
This commit is contained in:
parent
05690b20ed
commit
1c3e45917c
6 changed files with 20 additions and 10 deletions
|
@ -25,7 +25,7 @@
|
|||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#include "hal.h"
|
||||
#include "memory_map.hpp"
|
||||
|
||||
namespace portapack {
|
||||
namespace spi_flash {
|
||||
|
@ -34,8 +34,8 @@ struct region_t {
|
|||
const size_t offset;
|
||||
const size_t size;
|
||||
|
||||
constexpr const void* base_address() {
|
||||
return reinterpret_cast<void*>(LPC_SPIFI_DATA_CACHED_BASE + offset);
|
||||
constexpr const void* base() {
|
||||
return reinterpret_cast<void*>(portapack::memory::map::spifi_cached.base() + offset);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue