diff --git a/docs/en/api-reference/peripherals/gptimer.rst b/docs/en/api-reference/peripherals/gptimer.rst index b836a05551..bc0f609592 100644 --- a/docs/en/api-reference/peripherals/gptimer.rst +++ b/docs/en/api-reference/peripherals/gptimer.rst @@ -261,7 +261,7 @@ Alarm value can be updated dynamically inside the ISR handler callback, by chang }; ESP_ERROR_CHECK(gptimer_register_event_callbacks(gptimer, &cbs, queue)); ESP_ERROR_CHECK(gptimer_enable(gptimer)); - ESP_ERROR_CHECK(gptimer_start(gptimer, &alarm_config)); + ESP_ERROR_CHECK(gptimer_start(gptimer)); .. only:: SOC_ETM_SUPPORTED and SOC_TIMER_SUPPORT_ETM diff --git a/docs/zh_CN/api-reference/peripherals/gptimer.rst b/docs/zh_CN/api-reference/peripherals/gptimer.rst index ecf9cf4cb4..c850717d76 100644 --- a/docs/zh_CN/api-reference/peripherals/gptimer.rst +++ b/docs/zh_CN/api-reference/peripherals/gptimer.rst @@ -261,7 +261,7 @@ }; ESP_ERROR_CHECK(gptimer_register_event_callbacks(gptimer, &cbs, queue)); ESP_ERROR_CHECK(gptimer_enable(gptimer)); - ESP_ERROR_CHECK(gptimer_start(gptimer, &alarm_config)); + ESP_ERROR_CHECK(gptimer_start(gptimer)); .. only:: SOC_ETM_SUPPORTED and SOC_TIMER_SUPPORT_ETM