// +FHDR------------------------------------------------------------ // Copyright (c) 2022 SmartLogic. // ALL RIGHTS RESERVED // ----------------------------------------------------------------- // Filename : ucp_tick.h // Author : xianfeng.du // Created On : 2022-06-25 // Last Modified : // ----------------------------------------------------------------- // Description: // // // -FHDR------------------------------------------------------------ #ifndef __UCP_TICK_H__ #define __UCP_TICK_H__ #include "ucp_utility.h" //#define UCP_TICK_ENABLE #define STC_LOCAL_TIME_BASE (0x08568000 + 0x4014) #define rdmcycle(x) (*(uint32_t *)(x) = do_read_volatile(STC_LOCAL_TIME_BASE)) #endif