1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /*
- * Copyright (c) 2006-2023, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2018-04-17 WangBing the first version.
- */
- #ifndef DRV_HWTIMER_H__
- #define DRV_HWTIMER_H__
- #include <rtthread.h>
- #include <rtdevice.h>
- #ifdef BSP_USING_CTIMER0
- #define TIM1_CONFIG \
- { \
- .tim_handle = CTIMER0, \
- .tim_irqn = CTIMER0_IRQn, \
- .name = "timer1", \
- }
- #endif /* TIM1_CONFIG */
- #ifdef BSP_USING_CTIMER3
- #define TIM3_CONFIG \
- { \
- .tim_handle = CTIMER3, \
- .tim_irqn = CTIMER3_IRQn, \
- .name = "timer2", \
- }
- #endif /* TIM3_CONFIG */
- #ifdef BSP_USING_CTIMER4
- #define TIM4_CONFIG \
- { \
- .tim_handle = CTIMER4, \
- .tim_irqn = CTIMER4_IRQn, \
- .name = "timer3", \
- }
- #endif /* TIM4_CONFIG */
- int rt_hw_hwtimer_init(void);
- #endif /* __DRV_HWTIMER_H__ */
|