Restore timing + switch to polling + disable CPU interrupts (IE=0)
This commit is contained in:
4
sdk/software/bsp/env/start.S
vendored
4
sdk/software/bsp/env/start.S
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user