kopia lustrzana https://github.com/espressif/esp-idf
example/mcpwm_basic_config: fix bugs in MCPWM basic example
Closes https://github.com/espressif/esp-idf/issues/6926pull/7307/head
rodzic
b9587c28cc
commit
6df89fa042
|
@ -49,7 +49,7 @@
|
|||
#define GPIO_SYNC1_IN 4 //Set GPIO 04 as SYNC1
|
||||
#define GPIO_SYNC2_IN 5 //Set GPIO 05 as SYNC2
|
||||
#define GPIO_FAULT0_IN 32 //Set GPIO 32 as FAULT0
|
||||
#define GPIO_FAULT1_IN 34 //Set GPIO 34 as FAULT1
|
||||
#define GPIO_FAULT1_IN 33 //Set GPIO 33 as FAULT1
|
||||
#define GPIO_FAULT2_IN 34 //Set GPIO 34 as FAULT2
|
||||
|
||||
typedef struct {
|
||||
|
@ -159,7 +159,7 @@ static void disp_captured_signal(void *arg)
|
|||
/**
|
||||
* @brief this is ISR handler function, here we check for interrupt that triggers rising edge on CAP0 signal and according take action
|
||||
*/
|
||||
static void IRAM_ATTR isr_handler(void)
|
||||
static void IRAM_ATTR isr_handler(void* arg)
|
||||
{
|
||||
uint32_t mcpwm_intr_status;
|
||||
capture evt;
|
||||
|
|
Ładowanie…
Reference in New Issue