MCPcopy Create free account
hub / github.com/OpenStickCommunity/GP2040-CE / getTotalFlash

Method getTotalFlash

src/system.cpp:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16extern char __StackTop;
17
18uint32_t System::getTotalFlash() {
19#if defined(PICO_FLASH_SIZE_BYTES)
20 return PICO_FLASH_SIZE_BYTES;
21#else
22 #warning PICO_FLASH_SIZE_BYTES is not set, defaulting to 2MB
23 return 2 * 1024 * 1024;
24#endif
25}
26
27uint32_t System::getUsedFlash() {
28 return &__flash_binary_end - &__flash_binary_start;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected