diff options
| -rw-r--r-- | cyw43-pio/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cyw43-pio/src/lib.rs b/cyw43-pio/src/lib.rs index 46ea0411e..9c425cbaa 100644 --- a/cyw43-pio/src/lib.rs +++ b/cyw43-pio/src/lib.rs | |||
| @@ -43,6 +43,7 @@ where | |||
| 43 | "set pindirs, 0 side 0" | 43 | "set pindirs, 0 side 0" |
| 44 | // these nops seem to be necessary for fast clkdiv | 44 | // these nops seem to be necessary for fast clkdiv |
| 45 | "nop side 1" | 45 | "nop side 1" |
| 46 | "nop side 0" | ||
| 46 | "nop side 1" | 47 | "nop side 1" |
| 47 | // read in y-1 bits | 48 | // read in y-1 bits |
| 48 | "lp2:" | 49 | "lp2:" |
| @@ -70,11 +71,10 @@ where | |||
| 70 | sm.write_instr(relocated.origin() as usize, relocated.code()); | 71 | sm.write_instr(relocated.origin() as usize, relocated.code()); |
| 71 | 72 | ||
| 72 | // theoretical maximum according to data sheet, 100Mhz Pio => 50Mhz SPI Freq | 73 | // theoretical maximum according to data sheet, 100Mhz Pio => 50Mhz SPI Freq |
| 73 | // does not work yet, | 74 | sm.set_clkdiv(0x0140); |
| 74 | // sm.set_clkdiv(0x0140); | ||
| 75 | 75 | ||
| 76 | // same speed as pico-sdk, 62.5Mhz | 76 | // same speed as pico-sdk, 62.5Mhz |
| 77 | sm.set_clkdiv(0x0200); | 77 | // sm.set_clkdiv(0x0200); |
| 78 | 78 | ||
| 79 | // 32 Mhz | 79 | // 32 Mhz |
| 80 | // sm.set_clkdiv(0x03E8); | 80 | // sm.set_clkdiv(0x03E8); |
