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:
jLynx 2023-05-19 08:16:05 +12:00 committed by GitHub
parent 7aca7ce74d
commit 033c4e9a5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
599 changed files with 70746 additions and 66896 deletions

View file

@ -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__*/