Make sure z16f still builds

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1154 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2008-11-07 18:16:01 +00:00
parent dcca7be53e
commit 368ef1c0e8
6 changed files with 48 additions and 3 deletions

View File

@ -200,3 +200,17 @@ void up_maskack_irq(int irq)
}
}
}
/****************************************************************************
* Name: up_prioritize_irq
*
* Description:
* Set interrupt priority
*
****************************************************************************/
void up_prioritize_irq(int irq, int priority)
{
/* To be provided */
}

View File

@ -51,6 +51,12 @@
# CONFIG_ARCH_BOARD - identifies the configs subdirectory and, hence,
# the board that supports the particular chip or SoC.
# CONFIG_ARCH_BOARD_name - for use in C code
# CONFIG_ARCH_NOINTC - define if the architecture does not
# support an interrupt controller or otherwise cannot support
# APIs like up_enable_irq() and up_disable_irq().
# CONFIG_ARCH_IRQPRIO
# Define if the architecture suports prioritizaton of interrupts
# and the up_prioritize_irq() API.
# CONFIG_BOARD_LOOPSPERMSEC - for delay loops
# CONFIG_ENDIAN_BIG - define if big endian (default is little endian)
# CONFIG_DRAM_SIZE - Describes the installed DRAM.
@ -66,6 +72,8 @@ CONFIG_ARCH_CHIP_Z16F3211=n
CONFIG_ARCH_CHIP_Z16F6411=n
CONFIG_ARCH_BOARD=z16f2800100zcog
CONFIG_ARCH_BOARD_Z16F2800100ZCOG=y
CONFIG_ARCH_NOINTC=n
CONFIG_ARCH_IRQPRIO=y
CONFIG_BOARD_LOOPSPERMSEC=1250
CONFIG_ENDIAN_BIG=y
CONFIG_DRAM_SIZE=65536

View File

@ -51,6 +51,12 @@
# CONFIG_ARCH_BOARD - identifies the configs subdirectory and, hence,
# the board that supports the particular chip or SoC.
# CONFIG_ARCH_BOARD_name - for use in C code
# CONFIG_ARCH_NOINTC - define if the architecture does not
# support an interrupt controller or otherwise cannot support
# APIs like up_enable_irq() and up_disable_irq().
# CONFIG_ARCH_IRQPRIO
# Define if the architecture suports prioritizaton of interrupts
# and the up_prioritize_irq() API.
# CONFIG_BOARD_LOOPSPERMSEC - for delay loops
# CONFIG_ENDIAN_BIG - define if big endian (default is little endian)
# CONFIG_DRAM_SIZE - Describes the installed DRAM.
@ -66,6 +72,8 @@ CONFIG_ARCH_CHIP_Z16F3211=n
CONFIG_ARCH_CHIP_Z16F6411=n
CONFIG_ARCH_BOARD=z16f2800100zcog
CONFIG_ARCH_BOARD_Z16F2800100ZCOG=y
CONFIG_ARCH_NOINTC=n
CONFIG_ARCH_IRQPRIO=y
CONFIG_BOARD_LOOPSPERMSEC=1250
CONFIG_ENDIAN_BIG=y
CONFIG_DRAM_SIZE=65536

View File

@ -35,6 +35,8 @@
-include $(TOPDIR)/Make.defs
COMPILER = ${shell basename $(CC)}
ifeq ($(CONFIG_NET),y)
include net/Make.defs
ROOTDEPPATH = --dep-path .
@ -45,13 +47,25 @@ ifeq ($(CONFIG_USBDEV),y)
include usbdev/Make.defs
ROOTDEPPATH = --dep-path .
USBDEVDEPPATH = --dep-path usbdev
CFLAGS += -I$(TOPDIR)/drivers/usbdev
ifeq ($(COMPILER),zneocc.exe)
USBDEVDIR = ${shell cygpath -w $(TOPDIR)/drivers/usbdev}
CFLAGS += -usrinc:'$(USBDEVDIR)'
else
USBDEVDIR = $(TOPDIR)/drivers/usbdev
CFLAGS += -I$(USBDEVDIR)
endif
endif
include mmcsd/Make.defs
ROOTDEPPATH = --dep-path .
MMCSDDEPPATH = --dep-path mmcsd
CFLAGS += -I$(TOPDIR)/drivers/mmcsd
ifeq ($(COMPILER),zneocc.exe)
MMCSDDIR = ${shell cygpath -w $(TOPDIR)/drivers/mmcsd}
CFLAGS += -usrinc:'$(MMCSDDIR)'
else
MMCSDDIR = $(TOPDIR)/drivers/mmcsd
CFLAGS += -I$(MMCSDDIR)
endif
ASRCS = $(NET_ASRCS) $(USBDEV_ASRCS) $(MMCSD_ASRCS)
AOBJS = $(ASRCS:.S=$(OBJEXT))

View File

@ -82,7 +82,7 @@
/* Streams */
typedef FAR struct file_struct FILE;
typedef struct file_struct FILE;
/****************************************************************************
* Public Variables

View File

@ -39,6 +39,7 @@
#include <nuttx/config.h>
#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>