Jason Smith
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
10 deletions
-
Marlin/src/HAL/STM32F1/HAL.h
|
|
@ -202,17 +202,9 @@ extern "C" { |
|
|
|
|
|
|
|
extern "C" char* _sbrk(int incr); |
|
|
|
|
|
|
|
/*
|
|
|
|
static int freeMemory() { |
|
|
|
volatile int top; |
|
|
|
top = (int)((char*)&top - reinterpret_cast<char*>(_sbrk(0))); |
|
|
|
return top; |
|
|
|
} |
|
|
|
*/ |
|
|
|
|
|
|
|
static int freeMemory() { |
|
|
|
static inline int freeMemory() { |
|
|
|
volatile char top; |
|
|
|
return &top - reinterpret_cast<char*>(_sbrk(0)); |
|
|
|
return &top - _sbrk(0); |
|
|
|
} |
|
|
|
|
|
|
|
#if GCC_VERSION <= 50000 |
|
|
|