Skip to content

Commit

Permalink
z20x: Changes to reduce serial Rx data overrun
Browse files Browse the repository at this point in the history
boards/z80/ez80/z20x:  Increase RX buffer size to 4Kb, reduce BAUD to 2400 in w25boot configuration
arch/z80/src/ez80/ez80_serial.c:  Reduce Rx FIFO trigger level for eZ80F92 to 1 so that will respond more quickly to incoming data.
  • Loading branch information
gregory-nutt authored and Ouss4 committed Mar 9, 2020
1 parent 9f3648d commit 199b4d6
Show file tree
Hide file tree
Showing 12 changed files with 274 additions and 281 deletions.
45 changes: 44 additions & 1 deletion arch/z80/src/ez80/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

if ARCH_CHIP_EZ80

# Chip capabilities

config ARCH_EZ80_HAVE_PLL
bool
default n
Expand All @@ -21,6 +23,8 @@ config ARCH_EZ80_HAVE_TIMER_INTREGS
bool
default n

# Chip selection

choice
prompt "eZ80 Chip Selection"
default ARCH_CHIP_EZ80F91
Expand Down Expand Up @@ -72,6 +76,8 @@ config EZ80_ZDSII_V533

endchoice # ZDS-II Toolchain version

# Build type selection

config EZ80_BOOTLOADER
bool
default n
Expand All @@ -89,20 +95,29 @@ config EZ80_PROGRAM
may require special properties such as re-direction of interrupts
(eZ80F92)

# Peripheral selection

config EZ80_UART
bool
default n

menu "ez80 Peripheral Support"

config EZ80_UART0
bool "UART0"
select EZ80_UART
select UART0_SERIALDRIVER
default n

config EZ80_UART1
bool "UART1"
select EZ80_UART
select UART1_SERIALDRIVER
default n

config EZ80_UART2
bool "UART2"
select EZ80_UART
select UART2_SERIALDRIVER
default n
depends on ARCH_EZ80_HAVE_UART2
Expand Down Expand Up @@ -132,6 +147,30 @@ config EZ80_EMAC

endmenu # ez80 Peripheral Support

# UART Configuration

choice
prompt "UART Rx FIFO depth"
default EZ80_UART_RXFIFO_1 if ARCH_CHIP_EZ80F92 || ARCH_CHIP_EZ80F93
default EZ80_UART_RXFIFO_4 if ARCH_CHIP_EZ80F91
depends on EZ80_UART

config EZ80_UART_RXFIFO_1
bool "1"

config EZ80_UART_RXFIFO_4
bool "4"

config EZ80_UART_RXFIFO_8
bool "8"

config EZ80_UART_RXFIFO_14
bool "14"

endchoice

# RTC/Crystal Configuration

config EZ80_RTC_32KHZ
bool "32KHz crystal present"
default y
Expand All @@ -148,10 +187,12 @@ config EZ80_RTC_LINEFREQ50
If there is no 32Hz crystal, the RTC will fall back to use the line
frequency, either 50 or 60Hz.

# EMAC Configuration

if EZ80_EMAC

config EZ80_FIAD
hex "PHY Address"
hex "PHY Address"
range 0x00 0x1f
default 0x1f
---help---
Expand Down Expand Up @@ -208,6 +249,8 @@ config ARCH_MCFILTER

endif # EZ80_EMAC

# System integration

config ARCH_TIMERHOOK
bool "Timer Hook"
default n
Expand Down
Loading

0 comments on commit 199b4d6

Please sign in to comment.