summaryrefslogtreecommitdiff
path: root/bsp/n32/n32hxxx/libraries/N32_Drivers/drivers/drv_tim.h
blob: ebca7498cb2e863962a80f78cfc1befbf95c1c15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright (c) 2006-2025, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author           Notes
 * 2026-02-26     ox-horse         first version
 * 2026-08-19     ox-horse         Add N32H47X_48X
 * 2026-08-19     ox-horse         Add N32H49X
 */

#ifndef __DRV_TIM_H__
#define __DRV_TIM_H__

#include <rtdef.h>
#include <board.h>

#if defined(SOC_SERIES_N32H47x_48x) || defined(SOC_SERIES_N32H49x)
rt_uint32_t n32_tim_clock_freq_get(TIM_Module *timer);
#endif /* SOC_SERIES_N32H47x_48x || SOC_SERIES_N32H49x */

void n32_tim_ahbx_div_get(TIM_Module *timer, rt_uint32_t *div);
void n32_tim_enable_clock(TIM_Module *timer);

#endif /* __DRV_TIM_H__ */