Add support for accessing printf, sprintf, puts, etc. strings that do not lie in the MCU data space
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3738 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
ddc35de7c8
commit
9db7adaa53
@ -76,11 +76,16 @@ typedef signed long long _int64_t; /* long long is 64-bits */
|
|||||||
typedef unsigned long long _uint64_t;
|
typedef unsigned long long _uint64_t;
|
||||||
#define __INT64_DEFINED
|
#define __INT64_DEFINED
|
||||||
|
|
||||||
/* A pointer is 2 bytes */
|
/* A (near) pointer is 2 bytes */
|
||||||
|
|
||||||
typedef signed int _intptr_t;
|
typedef signed int _intptr_t;
|
||||||
typedef unsigned int _uintptr_t;
|
typedef unsigned int _uintptr_t;
|
||||||
|
|
||||||
|
/* A FAR pointer is 4 bytes */
|
||||||
|
|
||||||
|
typedef signed long _int_farptr_t;
|
||||||
|
typedef unsigned long _uint_farptr_t;
|
||||||
|
|
||||||
/* This is the size of the interrupt state save returned by irqsave(). */
|
/* This is the size of the interrupt state save returned by irqsave(). */
|
||||||
|
|
||||||
typedef unsigned char irqstate_t;
|
typedef unsigned char irqstate_t;
|
||||||
|
@ -62,6 +62,10 @@ ifeq ($(CONFIG_DEBUG_STACK),y)
|
|||||||
CMN_CSRCS += up_checkstack.c
|
CMN_CSRCS += up_checkstack.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_ARCH_ROMGETC),y)
|
||||||
|
CMN_CSRCS += up_romgetc.c
|
||||||
|
endif
|
||||||
|
|
||||||
# Required AT90USB files
|
# Required AT90USB files
|
||||||
|
|
||||||
CHIP_ASRCS = at90usb_exceptions.S
|
CHIP_ASRCS = at90usb_exceptions.S
|
||||||
|
@ -62,6 +62,10 @@ ifeq ($(CONFIG_DEBUG_STACK),y)
|
|||||||
CMN_CSRCS += up_checkstack.c
|
CMN_CSRCS += up_checkstack.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_ARCH_ROMGETC),y)
|
||||||
|
CMN_CSRCS += up_romgetc.c
|
||||||
|
endif
|
||||||
|
|
||||||
# Required ATMEGA files
|
# Required ATMEGA files
|
||||||
|
|
||||||
CHIP_ASRCS = atmega_exceptions.S
|
CHIP_ASRCS = atmega_exceptions.S
|
||||||
|
@ -64,9 +64,15 @@ HOSTSRCS = up_stdio.c up_hostusleep.c
|
|||||||
ifeq ($(USEX),y)
|
ifeq ($(USEX),y)
|
||||||
HOSTSRCS += up_x11framebuffer.c
|
HOSTSRCS += up_x11framebuffer.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_FS_FAT),y)
|
ifeq ($(CONFIG_FS_FAT),y)
|
||||||
CSRCS += up_blockdevice.c up_deviceimage.c
|
CSRCS += up_blockdevice.c up_deviceimage.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_ARCH_ROMGETC),y)
|
||||||
|
CSRCS += up_romgetc.c
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_NET),y)
|
ifeq ($(CONFIG_NET),y)
|
||||||
CSRCS += up_uipdriver.c
|
CSRCS += up_uipdriver.c
|
||||||
HOSTCFLAGS += -DNETDEV_BUFSIZE=$(CONFIG_NET_BUFSIZE)
|
HOSTCFLAGS += -DNETDEV_BUFSIZE=$(CONFIG_NET_BUFSIZE)
|
||||||
|
Loading…
Reference in New Issue
Block a user