1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-29 18:33:44 +02:00

in principle schedules packets

This commit is contained in:
Harald Barth
2022-07-30 21:11:51 +02:00
parent 37f44709f9
commit 67e8c04314
5 changed files with 51 additions and 22 deletions

View File

@@ -32,16 +32,10 @@
class RMTChannel {
public:
inline RMTChannel(byte pin, bool isMain) {
if (isMain)
RMTChannel(pin, 0, PREAMBLE_BITS_MAIN, 1);
else
RMTChannel(pin, 2, PREAMBLE_BITS_PROG, 0);
};
RMTChannel(byte pin, byte ch, byte plen, bool isProg);
RMTChannel(byte pin, bool isMain);
void IRAM_ATTR RMTinterrupt();
void RMTprefill();
bool RMTfillData(dccPacket packet);
int RMTfillData(dccPacket packet);
//bool RMTfillData(const byte buffer[], byte byteCount, byte repeatCount);
static RMTChannel mainRMTChannel;