1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-27 01:56:14 +01:00
Commit Graph

5 Commits

Author SHA1 Message Date
Neil McKechnie
7954c85b7d Update freeMemory.cpp 2021-03-09 10:27:38 +00:00
Neil McKechnie
fab05bac79 Update freeMemory.cpp
Inhibit interrupts while updating/reading minimum_free_memory as it is accessed from interrupt handler.
2021-03-09 10:13:04 +00:00
Neil McKechnie
609d3d13de Mark minimum_free_memory volatile. 2021-03-08 13:25:13 +00:00
Neil McKechnie
ddc55690f3 More conservative memory monitoring
Add function to maintain a  minimum value seen of free memory.  Add call to it in DCCWaveform interrupt handler (assumed to be the likely worst case for stack usage).  Report this minimum value in main loop.
2021-03-08 13:09:09 +00:00
Harald Barth
9bb9fa5e84 rewrite freeMemory code 2020-09-22 23:10:52 +02:00