WIP: feature/esp32-ng-basic #1

Draft
localhorst wants to merge 23 commits from feature/esp32-ng-basic into master
21 changed files with 4713 additions and 326 deletions
Showing only changes of commit 284553f3f8 - Show all commits

View File

@ -22,10 +22,10 @@ static const char *TAG = "CONFIG";
#define HARDCODED_CONFIG
#ifdef HARDCODED_CONFIG
#define HARDCODED_CONFIG_LED_STRIP_A_PIN 3U
#define HARDCODED_CONFIG_LED_STRIP_B_PIN 2U
#define HARDCODED_CONFIG_LED_STRIP_A_COUNT 10U
#define HARDCODED_CONFIG_LED_STRIP_B_COUNT 10U
#define HARDCODED_CONFIG_LED_STRIP_A_PIN 2U
#define HARDCODED_CONFIG_LED_STRIP_B_PIN 3U
#define HARDCODED_CONFIG_LED_STRIP_A_COUNT 1U
#define HARDCODED_CONFIG_LED_STRIP_B_COUNT 1U
#define HARDCODED_CONFIG_PWM_PIN 1U
#if defined(CONFIG_IDF_TARGET_ESP32C3)

View File

@ -194,7 +194,13 @@ static esp_err_t init_strip(led_strip_t *strip, int8_t pin, uint16_t num_leds)
rmt_tx_channel_config_t tx_chan_config = {
.clk_src = RMT_CLK_SRC_DEFAULT,
.gpio_num = pin,
#if defined(CONFIG_IDF_TARGET_ESP32C3)
.mem_block_symbols = 48,
#elif defined(CONFIG_IDF_TARGET_ESP32)
.mem_block_symbols = 64,
#else
#error "Unsupported target: rmt block symbols undefined"
#endif
.resolution_hz = 80000000, // 80MHz
.trans_queue_depth = 4,
};