Skip to content

Commit b54827b

Browse files
committed
ESP32: Use hw-deadtime by default
1 parent 574ce63 commit b54827b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/drivers/hardware_specific/esp32/esp32_mcu.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
#if defined(ESP_H) && defined(ARDUINO_ARCH_ESP32) && defined(SOC_MCPWM_SUPPORTED) && !defined(SIMPLEFOC_ESP32_USELEDC)
44

5+
#ifndef SIMPLEFOC_ESP32_HW_DEADTIME
6+
#define SIMPLEFOC_ESP32_HW_DEADTIME true // TODO: Change to false when sw-deadtime & phase_state is approved ready for general use.
7+
#endif
8+
59
// define bldc motor slots array
610
bldc_3pwm_motor_slots_t esp32_bldc_3pwm_motor_slots[4] = {
711
{_EMPTY_SLOT, &MCPWM0, MCPWM_UNIT_0, MCPWM_OPR_A, MCPWM0A, MCPWM1A, MCPWM2A}, // 1st motor will be MCPWM0 channel A

0 commit comments

Comments
 (0)