Skip to content

Commit 346fa4e

Browse files
committed
remove count_down option
1 parent ee97642 commit 346fa4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: cores/esp32/esp32-hal-timer.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void timerRestart(hw_timer_t timer_handle){
5858
gptimer_set_raw_count(timer_handle,0);
5959
}
6060

61-
hw_timer_t timerBegin(uint32_t frequency, bool countUp){
61+
hw_timer_t timerBegin(uint32_t frequency){
6262

6363
esp_err_t err = ESP_OK;
6464
hw_timer_t timer_handle;
@@ -84,7 +84,7 @@ hw_timer_t timerBegin(uint32_t frequency, bool countUp){
8484

8585
gptimer_config_t config = {
8686
.clk_src = clk,
87-
.direction = countUp,
87+
.direction = GPTIMER_COUNT_UP,
8888
.resolution_hz = frequency,
8989
.flags.intr_shared = true,
9090
};

0 commit comments

Comments
 (0)