nuttx/arch/z80/src
Byron Ellacott 1105cf0669 ez80: fix several bugs in emac driver
IRQs cannot be individually disabled on the eZ80, so using
`up_disable_irq()` had no effect. This left the IRQ handler being
constantly triggered without the lower half handler running.

The macro for EMAC stats was incompatible with Clang. The simplified
form gives identical results under ZDS-II.

The MII clock speed must be set before trying to read MII registers.
It's now done before resetting the PHY using the Mode Control Register.

MII initialization waited on the auto-neogotiate restart bit being set
but PHY hardware is frequently fast enough to have cleared the bit
before the first read of it. It now instead just waits on auto-negotiate
completing. The MII poll loop now uses `up_mdelay` because it was far
too fast at 50MHz using a busy loop, giving time for a link to be
established.

Bad packets are now processed enough to release their buffers back to
the EMAC hardware.

A few typos, unused variables, and other miscellaneous issues were also
fixed.
2021-02-26 03:25:58 -06:00
..
common eZ80: fix name of SP register in stack frame 2021-02-17 02:32:12 -08:00
ez80 ez80: fix several bugs in emac driver 2021-02-26 03:25:58 -06:00
z8 arch: Remove critical section inside up_schedule_sigaction 2021-01-22 08:34:07 +01:00
z80 arch: Remove critical section inside up_schedule_sigaction 2021-01-22 08:34:07 +01:00
z180 arch: Remove critical section inside up_schedule_sigaction 2021-01-22 08:34:07 +01:00
.gitignore build: Remve the unnecessary .gitignore 2020-05-23 18:00:40 +01:00
Makefile arch/: Add the ARCH_SRC directory to the context and clean_context 2020-10-17 22:46:27 +09:00
Makefile.sdccl arch/: Add the ARCH_SRC directory to the context and clean_context 2020-10-17 22:46:27 +09:00
Makefile.sdccw arch/: Add the ARCH_SRC directory to the context and clean_context 2020-10-17 22:46:27 +09:00
Makefile.zdsiil style/Makefile: remove unnecessary trailing whitespace 2020-11-28 12:20:30 +01:00
Makefile.zdsiiw make/expression: improving up asm/C/C++ compile times 2020-11-02 07:53:53 -08:00