1 /*
2  * Copyright (c) 2019, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2019-05-05     jg1uaa       the first version
9  */
10 
11 #ifndef __BOARD_H__
12 #define __BOARD_H__
13 
14 #define CPU_CLOCK       48000000        // Hz
15 
16 void rt_hw_board_init(void);
17 
18 void NVIC_EnableIRQ(rt_int32_t irqno);
19 void NVIC_DisableIRQ(rt_int32_t irqno);
20 rt_uint32_t NVIC_GetPendingIRQ(rt_int32_t irqno);
21 void NVIC_SetPendingIRQ(rt_int32_t irqno);
22 void NVIC_ClearPendingIRQ(rt_int32_t irqno);
23 void NVIC_SetPriority(rt_int32_t irqno, rt_uint32_t priority);
24 
25 #endif /* __BOARD_H__ */
26