HPM APP
HPMicro Application solution
mp_timer.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023 HPMicro
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 #ifndef MP_TIMER_H
8 #define MP_TIMER_H
9 
10 #include "hpm_soc.h"
11 #include "hpm_clock_drv.h"
12 #include "mp_common.h"
13 
21 /***********************************************************************************************************************
22  *
23  * Definitions
24  *
25  **********************************************************************************************************************/
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
35 #define MP_CALLBACK_TIMER (HPM_GPTMR2)
36 
41 #define MP_CALLBACK_TIMER_CH 1
42 
47 #define MP_CALLBACK_TIMER_IRQ IRQn_GPTMR2
48 
53 #define MP_CALLBACK_TIMER_CLK_NAME (clock_gptmr2)
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
61 #endif //MP_TIMER_H