1 /* 2 * Copyright (c) 2006-2021, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2017-01-01 Urey first version 9 */ 10 #ifndef _BOARD_CORETIMER_H_ 11 #define _BOARD_CORETIMER_H_ 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 #include <stdint.h> 18 19 #define CK_TIMER_BASE (0xE000E000) 20 21 #define CORET_CSR (volatile unsigned int *)(CK_TIMER_BASE + 0x10) 22 #define CORET_RVR (volatile unsigned int *)(CK_TIMER_BASE + 0x14) 23 #define CORET_CVR (volatile unsigned int *)(CK_TIMER_BASE + 0x18) 24 #define CORET_CALIB (volatile unsigned int *)(CK_TIMER_BASE + 0x1c) 25 26 /* 27 * define the bits for TxControl 28 */ 29 #define CORETIM_TXCONTROL_ENABLE (1UL << 0) 30 #define CORETIM_TXCONTROL_INTMASK (1UL << 1) 31 #define CORETIM_TXCONTROL_MODE (1UL << 16) 32 33 34 #ifdef __cplusplus 35 } 36 #endif 37 38 #endif /* _BOARD_CORETIMER_H_ */ 39