mirror of
https://github.com/Show-maket/IR-protocol.git
synced 2026-04-28 03:08:08 +00:00
dma fix priority and debug
This commit is contained in:
26
IR_config.h
26
IR_config.h
@ -2,6 +2,32 @@
|
||||
#include <Arduino.h>
|
||||
#include <list>
|
||||
// #define IRDEBUG_INFO
|
||||
|
||||
/** Число потоков DMA-TX задаётся шаблоном: IrDmaTxStm32<2>, см. IrDmaTxStm32.h и irproto::kDefaultDmaTxMaxStreams. */
|
||||
namespace irproto {
|
||||
constexpr size_t kDefaultDmaTxMaxStreams = 4U;
|
||||
}
|
||||
|
||||
// Пошаговый разбор кадра на Serial (по умолчанию выключено). Пульсы IRDEBUG на пинах не меняют.
|
||||
// #define IRDEBUG_SERIAL_PACK
|
||||
// Не обрывать приём сразу при накопленной sync-ошибке — «дописывать» до таймаута (только вместе с IRDEBUG_SERIAL_PACK).
|
||||
// #define IRDEBUG_SERIAL_SOFT_REJECT
|
||||
|
||||
// Журнал фронтов ИК в ISR; сброс строк @IRF1v1: в IR_DecoderRaw::tick(). См. ref/IR_EDGE_TRACE_FORMAT.md
|
||||
// Расход RAM ≈ IR_EDGE_TRACE_CAPACITY * 6 байт на декодер. Выключить — закомментировать:
|
||||
// #define IR_EDGE_TRACE
|
||||
#if defined(IR_EDGE_TRACE)
|
||||
#ifndef IR_EDGE_TRACE_CAPACITY
|
||||
#define IR_EDGE_TRACE_CAPACITY 512u
|
||||
#endif
|
||||
/** Запись в edgeTrace: фронт не передан в decode (isPairSending). */
|
||||
#define IR_EDGE_TRACE_F_SKIP_DECODE 0x01u
|
||||
#endif
|
||||
// Пример в скетче: void irPackTracePrintOkCommand(const uint8_t* b, uint8_t n) { Serial.print(F("CarCmd::...")); }
|
||||
#if defined(IRDEBUG_SERIAL_PACK)
|
||||
/** Слабая реализация в IR_DecoderRaw.cpp; в скетче определите свою для вывода вроде CarCmd::... */
|
||||
void irPackTracePrintOkCommand(const uint8_t *buf, uint8_t packSize);
|
||||
#endif
|
||||
/*//////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Для работы в паре положить декодер в энкодер
|
||||
|
||||
Reference in New Issue
Block a user