mcpwm: support esp32h2

This commit is contained in:
morris
2023-01-06 14:17:04 +08:00
parent b37980d26e
commit 15b9352f60
31 changed files with 1877 additions and 153 deletions

View File

@@ -10,7 +10,11 @@
#include "driver/rmt_tx.h"
#include "dshot_esc_encoder.h"
#if CONFIG_IDF_TARGET_ESP32H2
#define DSHOT_ESC_RESOLUTION_HZ 32000000 // 32MHz resolution, DSHot protocol needs a relative high resolution
#else
#define DSHOT_ESC_RESOLUTION_HZ 40000000 // 40MHz resolution, DSHot protocol needs a relative high resolution
#endif
#define DSHOT_ESC_GPIO_NUM 0
static const char *TAG = "example";