mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-23 08:06:13 +01:00
free memory value updated on ESP
This commit is contained in:
parent
9afce0a7df
commit
56ed6ab6dc
|
@ -21,6 +21,7 @@
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
#include "DIAG.h"
|
#include "DIAG.h"
|
||||||
#include "DCCRMT.h"
|
#include "DCCRMT.h"
|
||||||
|
#include "DCCTimer.h"
|
||||||
#include "DCCWaveform.h" // for MAX_PACKET_SIZE
|
#include "DCCWaveform.h" // for MAX_PACKET_SIZE
|
||||||
#include "soc/gpio_sig_map.h"
|
#include "soc/gpio_sig_map.h"
|
||||||
|
|
||||||
|
@ -67,6 +68,8 @@ RMTChannel *channelHandle[8] = { 0 };
|
||||||
void IRAM_ATTR interrupt(rmt_channel_t channel, void *t) {
|
void IRAM_ATTR interrupt(rmt_channel_t channel, void *t) {
|
||||||
RMTChannel *tt = channelHandle[channel];
|
RMTChannel *tt = channelHandle[channel];
|
||||||
if (tt) tt->RMTinterrupt();
|
if (tt) tt->RMTinterrupt();
|
||||||
|
if (channel == 0)
|
||||||
|
DCCTimer::updateMinimumFreeMemoryISR(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
RMTChannel::RMTChannel(pinpair pins, bool isMain) {
|
RMTChannel::RMTChannel(pinpair pins, bool isMain) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user