加入外置CRC32_32

This commit is contained in:
Ruige Lee
2025-01-24 16:01:10 +08:00
parent faf8abc29a
commit b75e724948
4 changed files with 106 additions and 5 deletions

View File

@@ -23,6 +23,8 @@
#define CDR_ReadRxLen 0x18
#define CDR_ReadRxFifo 0x1c
#define CDR_ReadIsLast 0x20
#define CDR_ReadTxCrc 0x24
#define CDR_ReadRxCrc 0x28
extern volatile uint32_t *cdr_status = (uint32_t*)( TL2CDR_BASE + CDR_ReadStatus ); //read
extern volatile uint32_t *cdr_txLen = (uint32_t*)( TL2CDR_BASE + CDR_WriteTxLen ); //write

View File

@@ -172,7 +172,7 @@ static void init_and_clock(){
main_cycle ++;
}
uint8_t phase = 2;
uint8_t phase = 4;
if ( main_time % 10 == (0+phase) ) {
top->clk400 = 1;
} else if ( main_time % 10 == (5+phase) ) {