ez80: Add I2C_TRANSFER method to the I2C driver; Fixes for working with ZDS-II toolchain (still some problems with internal errors; Various fixes due to bit rot

This commit is contained in:
Gregory Nutt 2016-01-31 12:43:14 -06:00
parent b5019c4b54
commit e4629af2bc
6 changed files with 528 additions and 327 deletions

View File

@ -173,7 +173,7 @@ void lowconsole_init(void);
/* Defined in drivers/syslog_console.c */
#ifdef defined(CONFIG_SYSLOG_CONSOLE)
#ifdef CONFIG_SYSLOG_CONSOLE
void syslog_console_init();
#else
# define syslog_console_init()

View File

@ -41,6 +41,18 @@ config EZ80_TOOLCHAIN_ZDSII
default y if ARCH_CHIP_EZ80
default n if !ARCH_CHIP_EZ80
choice
prompt "ZDS-II Toolchain version"
default EZ80_ZDSII_V521
config EZ80_ZDSII_V511
bool "ZDS-II 5.1.1"
config EZ80_ZDSII_V521
bool "ZDS-II 5.2.1"
endchoice # ZDS-II Toolchain version
if EZ80_EMAC
config EZ80_FIAD
@ -105,7 +117,7 @@ config ARCH_MCFILTER
---help---
Enables multicast MAC address filtering (not fully implemented)
endif
endif # EZ80_EMAC
config ARCH_TIMERHOOK
bool "Timer Hook"
@ -116,4 +128,4 @@ config ARCH_TIMERHOOK
user provided function called up_timerhook(). At present, this timer hook is
only used for driving the segment LED on board certain ez80 boards.
endif
endif # ARCH_CHIP_EZ80

View File

@ -44,8 +44,8 @@ CMN_CSRCS += up_reprioritizertr.c up_idle.c up_assert.c up_doirq.c
CMN_CSRCS += up_mdelay.c up_stackframe.c up_udelay.c up_usestack.c
CMN_CSRCS += up_puts.c
CHIP_ASRCS = ez80_startup.asm ez80_io.asm ez80_irqsave.asm
ez80_saveusercontext.asm ez80_restorecontext.asm
CHIP_ASRCS = ez80_startup.asm ez80_io.asm ez80_irqsave.asm
CHIP_ASRCS += ez80_saveusercontext.asm ez80_restorecontext.asm
ifeq ($(CONFIG_ARCH_CHIP_EZ80F91),y)
CHIP_ASRCS += ez80f91_init.asm
endif

View File

@ -1,7 +1,7 @@
############################################################################
# arch/z80/src/ez80/Toolchain.defs
#
# Copyright (C) 2012 Gregory Nutt. All rights reserved.
# Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without

File diff suppressed because it is too large Load Diff

View File

@ -26,4 +26,15 @@ config Z8_TOOLCHAIN_ZDSII
default y if ARCH_CHIP_Z8
default n if !ARCH_CHIP_Z8
endif
choice
prompt "ZDS-II Toolchain version"
default EZ80_ZDSII_V521
config Z8_ZDSII_V500
bool "ZDS-II 5.0.0"
config Z8_ZDSII_V522
bool "ZDS-II 5.2.2"
endchoice # ZDS-II Toolchain version
endif # ARCH_CHIP_Z8