Restore timing + switch to polling + disable CPU interrupts (IE=0)

This commit is contained in:
2026-06-26 01:01:48 +08:00
parent 115466353d
commit a2b496ca8d
3 changed files with 32 additions and 61 deletions

View File

@@ -142,12 +142,12 @@ _start:
li.w t1, 0x1
csrwr t1, csr_ticlr
#enable int
#disable int (IE=0, all polling-mode)
li.w t1, 0x4
#ifdef RTThread
csrxchg zero, t1, csr_crmd
#else
csrxchg t1, t1, csr_crmd
csrxchg zero, t1, csr_crmd
#endif
csrwr zero, csr_prmd
li.w t1, 0x1fff