clk_tree: added default clock source for peripheral
This commit is contained in:
@@ -75,7 +75,7 @@ void app_main(void)
|
||||
ESP_LOGI(TAG, "Create timer handle");
|
||||
gptimer_handle_t gptimer = NULL;
|
||||
gptimer_config_t timer_config = {
|
||||
.clk_src = GPTIMER_CLK_SRC_APB,
|
||||
.clk_src = GPTIMER_CLK_SRC_DEFAULT,
|
||||
.direction = GPTIMER_COUNT_UP,
|
||||
.resolution_hz = 1000000, // 1MHz, 1 tick=1us
|
||||
};
|
||||
|
||||
@@ -62,7 +62,7 @@ static void example_tg_timer_init(example_timer_user_data_t *user_data)
|
||||
int timer = user_data->timer_idx;
|
||||
|
||||
timer_config_t config = {
|
||||
.clk_src = TIMER_SRC_CLK_APB,
|
||||
.clk_src = TIMER_SRC_CLK_DEFAULT,
|
||||
.divider = APB_CLK_FREQ / TIMER_RESOLUTION_HZ,
|
||||
.counter_dir = TIMER_COUNT_UP,
|
||||
.counter_en = TIMER_PAUSE,
|
||||
|
||||
Reference in New Issue
Block a user