move rmt constants to constants comp

This commit is contained in:
superkor
2026-01-15 19:31:52 -05:00
parent 55daf92ed2
commit e3907eeb63
5 changed files with 36 additions and 21 deletions

View File

@@ -8,20 +8,7 @@
#include "driver/rmt_tx.h"
#include "driver/rmt_rx.h"
#include "soc/gpio_num.h"
#define MAX_CHANNELS 4
#define RMT_SYMBOL_BLOCK_SIZE 48
#define RECEIVE_BUFFER_SIZE 1024 //this is some value (we should probably set it to some packet size that we predetermine in some custom protocol:tm:)
#define DEBUG_TAG "RMTManager"
#define CHANNEL_LISTENING (0x2) //channel waiting to receive
#define CHANNEL_READY_STATUS (0x1) //channel able to send and ready to start receive async job
#define CHANNEL_NOT_READY_STATUS (0x0) //channel is not ready (cannot send and/or receive)
#define QUEUE_SIZE 10
#define MUTEX_MAX_WAIT_TICKS 100
#include "constants/rmt.h"
/**
* @brief This struct keeps track of the current byte and bit index of the user data being transmmitted via RMT