Merge pull request #2528 from douniwan5788/bigbuf

refactor: change BigBuf to const
This commit is contained in:
Iceman 2024-09-22 10:31:32 +03:00 committed by GitHub
commit 73711f7862
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,7 +30,7 @@ extern uint32_t _stack_start[], __bss_end__[];
// BigBuf is the large multi-purpose buffer, typically used to hold A/D samples or traces. // BigBuf is the large multi-purpose buffer, typically used to hold A/D samples or traces.
// Also used to hold various smaller buffers and the Mifare Emulator Memory. // Also used to hold various smaller buffers and the Mifare Emulator Memory.
// We know that bss is aligned to 4 bytes. // We know that bss is aligned to 4 bytes.
static uint8_t *BigBuf = (uint8_t *)__bss_end__; static uint8_t *const BigBuf = (uint8_t *)__bss_end__;
/* BigBuf memory layout: /* BigBuf memory layout:
Pointer to highest available memory: s_bigbuf_hi Pointer to highest available memory: s_bigbuf_hi