fpga/ch552: Swap fpga_cts and ch552_cts pins

The FPGA uwg30 package cannot use B3 as an input when an instance of
SB_PLL40_CORE is placed. We swap fpga_cts and ch552_cts to make B3 (from
here on fpga_cts) an output.

For more info check out:
FPGA-TN-02052-1-4-iCE40-sysCLOCK-PLL-Design-User-Guide.pdf chapter "5.1
PLL Placement Rules"
This commit is contained in:
Mikael Ågren 2025-05-09 17:29:52 +02:00
parent 45af9146d6
commit 1e20dba10a
No known key found for this signature in database
GPG key ID: E02DA3D397792C46
3 changed files with 6 additions and 6 deletions

View file

@ -14,8 +14,8 @@
# UART. # UART.
set_io interface_rx 26 set_io interface_rx 26
set_io interface_tx 25 set_io interface_tx 25
set_io interface_ch552_cts 27 set_io interface_ch552_cts 28
set_io interface_fpga_cts 28 set_io interface_fpga_cts 27
# SPI master to flash memory. # SPI master to flash memory.

View file

@ -15,8 +15,8 @@
# UART. # UART.
set_io interface_rx A2 set_io interface_rx A2
set_io interface_tx A1 set_io interface_tx A1
set_io interface_ch552_cts B3 set_io interface_ch552_cts A4
set_io interface_fpga_cts A4 set_io interface_fpga_cts B3
# SPI master to flash memory. # SPI master to flash memory.

View file

@ -9,8 +9,8 @@
#define PIN_P1_4 0x10 #define PIN_P1_4 0x10
#define PIN_P1_5 0x20 #define PIN_P1_5 0x20
#define PIN_FPGA_CTS PIN_P1_4 #define PIN_FPGA_CTS PIN_P1_5
#define PIN_CH552_CTS PIN_P1_5 #define PIN_CH552_CTS PIN_P1_4
void gpio_set(uint8_t pin); void gpio_set(uint8_t pin);
void gpio_unset(uint8_t pin); void gpio_unset(uint8_t pin);