主站加入定时器,fifo被迫加大

This commit is contained in:
RuigeLee
2024-11-04 17:11:16 +08:00
parent df175dc099
commit 7754f6b64e
4 changed files with 11 additions and 5 deletions

View File

@@ -49,6 +49,14 @@ void main()
*cdr_softReset = 1; //复位脉冲
*cdr_direct = 0;
asm volatile ( //timer 2s
"1:\n"
"rdcycle ra\n"
"srli ra, ra, 12\n"
//"srli ra, ra, 26\n"
"andi ra, ra, 0x1\n"
"beqz ra, 1b\n"
);
//发送下行包头
@@ -127,6 +135,5 @@ void main()
totNum = (upRecvLen >> 3);
while(1);
}
}

View File

@@ -49,7 +49,6 @@ void main()
isLast = *ReadIsLast;
*cdr_direct = 0;
asm volatile (
"1:\n"
"andi ra, sp, 0x04\n"