mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-18 19:35:02 -04:00
[processor_check] adjust SDI input speed to max
SDI input clock has to be *less* than 1/4 of the processor's main clock
This commit is contained in:
parent
c4dd103b19
commit
447f7f0eac
1 changed files with 2 additions and 1 deletions
|
@ -1528,8 +1528,9 @@ int main() {
|
|||
cnt_test++;
|
||||
|
||||
// configure and enable SDI + SPI
|
||||
// SDI input clock (= SPI output clock) must be less than 1/4 of the processor clock
|
||||
neorv32_sdi_setup(1 << SDI_CTRL_IRQ_RX_AVAIL);
|
||||
neorv32_spi_setup(CLK_PRSC_8, 0, 0, 0, 0);
|
||||
neorv32_spi_setup(CLK_PRSC_2, 1, 0, 0, 0);
|
||||
|
||||
// enable fast interrupt
|
||||
neorv32_cpu_csr_write(CSR_MIE, 1 << SDI_FIRQ_ENABLE);
|
||||
|
|
Loading…
Add table
Reference in a new issue