Files
KY-XTZ/src/ge_config/dev_profile/timer_profile.c
T
Gatsby Van 3470b6f6dc chore: merge GE program
* merge GE code
* update fold structure
* enable to build two types of projects separately
2024-12-24 13:27:22 +08:00

18 lines
467 B
C

#include "dev_profile.h"
#include "timer.h"
#include "../app_config.h"
#include "drivers/platform/xilinx_timer.h"
struct xil_timer_init_param xil_scutimer_init_param = {
.active_tmr = 0,
.type = TIMER_PS
};
struct timer_init_param scutimer_init_param = {
.id = SCUTIMER_DEVICE_ID,
.freq_hz = SCU_TIMER_CLK_HZ,
.ticks_count = (SCU_TIMER_CLK_HZ/2), //update log every 500ms
.platform_ops = &xil_timer_ops,
.extra = &xil_scutimer_init_param
};