Files
esp-idf/components/hal/timer_hal.c
T

15 lines
341 B
C
Raw Normal View History

2021-09-27 12:46:51 +08:00
/*
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
2021-09-27 12:46:51 +08:00
*
* SPDX-License-Identifier: Apache-2.0
*/
2019-07-15 14:21:36 +08:00
#include "hal/timer_hal.h"
2021-09-27 12:46:51 +08:00
#include "hal/timer_ll.h"
2019-07-15 14:21:36 +08:00
2021-09-27 12:46:51 +08:00
void timer_hal_init(timer_hal_context_t *hal, uint32_t group_num, uint32_t timer_num)
2019-07-15 14:21:36 +08:00
{
hal->dev = TIMER_LL_GET_HW(group_num);
2021-09-27 12:46:51 +08:00
hal->timer_id = timer_num;
2019-07-15 14:21:36 +08:00
}