mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-13 09:48:00 -06:00
stm32f4: Automatically calculate dynmem start/end
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
16616662ed
commit
7bc0a261ab
2 changed files with 17 additions and 2 deletions
|
@ -11,6 +11,22 @@
|
|||
|
||||
DECL_CONSTANT_STR("MCU", CONFIG_MCU);
|
||||
|
||||
// Return the start of memory available for dynamic allocations
|
||||
void *
|
||||
dynmem_start(void)
|
||||
{
|
||||
extern uint32_t _ebss;
|
||||
return &_ebss;
|
||||
}
|
||||
|
||||
// Return the end of memory available for dynamic allocations
|
||||
void *
|
||||
dynmem_end(void)
|
||||
{
|
||||
extern uint32_t _sstack;
|
||||
return &_sstack;
|
||||
}
|
||||
|
||||
void
|
||||
command_reset(uint32_t *args)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue