从站邻近设备的代码正常工作,和正常转发的代码能同时工作不会产生fifo上下溢出

This commit is contained in:
2025-02-15 01:05:16 +08:00
parent a9f741deca
commit 7b457e9e22
3 changed files with 77 additions and 41 deletions

View File

@@ -39,12 +39,13 @@ void disable_mtimer_int()
void set_mtimer(uint32_t delta_t)
{
#if 0
uint64_t t;
t = read_mtimer();
t += delta_t;
set_mtimecmp(t);
#if 0
#else
uint64_t t;
t = *(volatile uint64_t *)(CLINT_BASE + CLINT_MTIME_LOW);