mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-05 21:24:11 -04:00
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:
parent
45af9146d6
commit
1e20dba10a
3 changed files with 6 additions and 6 deletions
|
@ -14,8 +14,8 @@
|
|||
# UART.
|
||||
set_io interface_rx 26
|
||||
set_io interface_tx 25
|
||||
set_io interface_ch552_cts 27
|
||||
set_io interface_fpga_cts 28
|
||||
set_io interface_ch552_cts 28
|
||||
set_io interface_fpga_cts 27
|
||||
|
||||
|
||||
# SPI master to flash memory.
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
# UART.
|
||||
set_io interface_rx A2
|
||||
set_io interface_tx A1
|
||||
set_io interface_ch552_cts B3
|
||||
set_io interface_fpga_cts A4
|
||||
set_io interface_ch552_cts A4
|
||||
set_io interface_fpga_cts B3
|
||||
|
||||
|
||||
# SPI master to flash memory.
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#define PIN_P1_4 0x10
|
||||
#define PIN_P1_5 0x20
|
||||
|
||||
#define PIN_FPGA_CTS PIN_P1_4
|
||||
#define PIN_CH552_CTS PIN_P1_5
|
||||
#define PIN_FPGA_CTS PIN_P1_5
|
||||
#define PIN_CH552_CTS PIN_P1_4
|
||||
|
||||
void gpio_set(uint8_t pin);
|
||||
void gpio_unset(uint8_t pin);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue