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

DCCTrack::schedulePacket allows multiple different motordrivers side by side

This commit is contained in:
Harald Barth
2021-11-22 23:26:04 +01:00
parent ed2aa4c1d8
commit c711be7980
14 changed files with 211 additions and 56 deletions

View File

@@ -20,6 +20,7 @@
#pragma once
#include <Arduino.h>
#if defined(ARDUINO_ARCH_ESP32)
#include "DCCPacket.h"
#include "driver/rmt.h"
#include "soc/rmt_reg.h"
#include "soc/rmt_struct.h"
@@ -34,7 +35,8 @@ class RMTChannel {
RMTChannel(byte pin, byte ch, byte plen);
void IRAM_ATTR RMTinterrupt();
void RMTprefill();
bool RMTfillData(const byte buffer[], byte byteCount, byte repeatCount);
bool RMTfillData(dccPacket packet);
//bool RMTfillData(const byte buffer[], byte byteCount, byte repeatCount);
static RMTChannel mainRMTChannel;
static RMTChannel progRMTChannel;