mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-09 23:22:33 -04:00
Formatted code (#1007)
* Updated style * Updated files * fixed new line * Updated spacing * File fix WIP * Updated to clang 13 * updated comment style * Removed old comment code
This commit is contained in:
parent
7aca7ce74d
commit
033c4e9a5b
599 changed files with 70746 additions and 66896 deletions
|
@ -34,55 +34,54 @@ namespace portapack {
|
|||
namespace memory {
|
||||
|
||||
struct region_t {
|
||||
public:
|
||||
constexpr region_t(
|
||||
const uint32_t base,
|
||||
const size_t size
|
||||
) : base_ { base },
|
||||
size_ { size } {
|
||||
public:
|
||||
constexpr region_t(
|
||||
const uint32_t base,
|
||||
const size_t size)
|
||||
: base_{base},
|
||||
size_{size} {
|
||||
}
|
||||
|
||||
}
|
||||
constexpr uint32_t base() const {
|
||||
return base_;
|
||||
}
|
||||
|
||||
constexpr uint32_t base() const {
|
||||
return base_;
|
||||
}
|
||||
constexpr uint32_t end() const {
|
||||
return base_ + size_;
|
||||
}
|
||||
|
||||
constexpr uint32_t end() const {
|
||||
return base_ + size_;
|
||||
}
|
||||
constexpr size_t size() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
constexpr size_t size() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
private:
|
||||
const uint32_t base_;
|
||||
const size_t size_;
|
||||
private:
|
||||
const uint32_t base_;
|
||||
const size_t size_;
|
||||
};
|
||||
|
||||
namespace map {
|
||||
|
||||
constexpr region_t local_sram_0 { 0x10000000, 96_KiB };
|
||||
constexpr region_t local_sram_1 { 0x10080000, 40_KiB };
|
||||
constexpr region_t local_sram_0{0x10000000, 96_KiB};
|
||||
constexpr region_t local_sram_1{0x10080000, 40_KiB};
|
||||
|
||||
constexpr region_t ahb_ram_0 { 0x20000000, 32_KiB };
|
||||
constexpr region_t ahb_ram_1 { 0x20008000, 16_KiB };
|
||||
constexpr region_t ahb_ram_2 { 0x2000c000, 16_KiB };
|
||||
constexpr region_t ahb_ram_0{0x20000000, 32_KiB};
|
||||
constexpr region_t ahb_ram_1{0x20008000, 16_KiB};
|
||||
constexpr region_t ahb_ram_2{0x2000c000, 16_KiB};
|
||||
|
||||
constexpr region_t backup_ram { LPC_BACKUP_REG_BASE, 256 };
|
||||
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_cached { LPC_SPIFI_DATA_CACHED_BASE, spifi_uncached.size() };
|
||||
constexpr region_t spifi_uncached{LPC_SPIFI_DATA_BASE, 1_MiB};
|
||||
constexpr region_t spifi_cached{LPC_SPIFI_DATA_CACHED_BASE, spifi_uncached.size()};
|
||||
|
||||
/////////////////////////////////
|
||||
|
||||
constexpr region_t m4_code { local_sram_1.base(), 32_KiB };
|
||||
constexpr region_t shared_memory { m4_code.end(), 8_KiB };
|
||||
constexpr region_t m4_code{local_sram_1.base(), 32_KiB};
|
||||
constexpr region_t shared_memory{m4_code.end(), 8_KiB};
|
||||
|
||||
constexpr region_t m4_code_hackrf = local_sram_0;
|
||||
constexpr region_t m4_code_hackrf = local_sram_0;
|
||||
|
||||
} /* namespace map */
|
||||
} /* namespace memory */
|
||||
} /* namespace portapack */
|
||||
|
||||
#endif/*__MEMORY_MAP_H__*/
|
||||
#endif /*__MEMORY_MAP_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue