nuttx/include
Dimitry Kloper 06d83c6261 Introduce support for Atmel toolchain in-flash strings
Atmel toolchain AVR compiler provides a transparent in-flash object support using __flash and __memx symbols. The former indicates to compiler that this is a flash-based object.  The later used with pointer indicates that the referenced object may reside either in flash or in RAM. The compiler automatically makes 32-bit pointer with flag indicating whether referenced object is in flash or RAM and generates code to access either in run-time. Thus, any function that accepts __memx object can transparently work with RAM and flash objects.

For platforms with a Harvard architecture and a very small RAM like AVR this allows to move all constant strings used in trace messages to flash in the instruction address space, releasing resources for other things.

This change introduces IOBJ and IPTR type qualifiers.  The 'I' indicates that the object may like in instruction space on a Harvard architecture machine.

For platforms that do not have __flash and __memx or similar symbols IOBJ and IPTR are empty, making the types equivalent to, for example, 'const char' and 'const char*'.  For Atmel compiler these will become 'const __flash char' and 'const __memx char*'.  All printf() functions and syslog() functions are changed so that the qualifier is used with the format parameter.

From: Dimitry Kloper <dikloper@cisco.com>
2016-01-05 10:29:29 -06:00
..
arpa
cxx Change all references from avsprintf to vasprintf. From Sebastien Lorquet 2015-09-07 13:22:13 -06:00
net Make some file section headers more consistent with standard 2015-04-08 07:25:06 -06:00
netinet Clean up and review of header files for conformance to standards 2015-06-12 19:26:01 -06:00
netpacket
nuttx Introduce support for Atmel toolchain in-flash strings 2016-01-05 10:29:29 -06:00
sys sys/time.h: Fix timersub macro; time_t is unsigned 2015-12-31 09:05:35 -06:00
.gitignore
aio.h AIO now also supports socket transfers 2014-10-11 08:15:23 -06:00
assert.h include/assert.h: Wrap definitions of assertion macros in do while. Suggested by orbitalfox 2015-04-22 07:35:35 -06:00
crc8.h Add CRC8 support. From Ken Pettit 2014-12-09 13:27:22 -06:00
crc16.h
crc32.h
ctype.h Clean up and review of header files for conformance to standards 2015-06-12 19:26:01 -06:00
debug.h Standardize naming used for public data and function groupings 2015-10-02 16:30:35 -06:00
dirent.h Standardize naming used for public data and function groupings 2015-10-02 16:30:35 -06:00
elf32.h
errno.h Standardize the width of all comment boxes in header files 2015-10-02 17:48:24 -06:00
fcntl.h Add support for freopen() 2015-11-22 08:39:17 -06:00
fixedmath.h Standardize the width of all comment boxes in header files 2015-10-02 17:48:24 -06:00
inttypes.h
libgen.h
limits.h
mqueue.h Clean-up/standardize a few header files 2015-08-03 11:01:41 -06:00
netdb.h Move the DNS server from apps/netutils/dnsclient to nuttx/libc/netdb. Move netdb functions from libc/net to libc/netdb. Fix up naming to reflect the repartitioning 2015-07-10 12:11:40 -06:00
nxflat.h
poll.h Standardize naming used for public data and function groupings 2015-10-02 16:30:35 -06:00
pthread.h sys/time.h: Fix timersub macro; time_t is unsigned 2015-12-31 09:05:35 -06:00
queue.h Clean-up/standardize a few header files 2015-08-03 11:01:41 -06:00
sched.h Clean-up/standardize a few header files 2015-08-03 11:01:41 -06:00
semaphore.h Standardize naming used for public data and function groupings 2015-10-02 16:30:35 -06:00
signal.h sys/time.h: Fix timersub macro; time_t is unsigned 2015-12-31 09:05:35 -06:00
spawn.h A few cosmetic fixes from the last commit 2015-07-23 13:26:41 -06:00
stdbool.h Some typos noted by David Sidrane 2015-02-23 11:49:02 -06:00
stddef.h size_t should be 64-bits on a 64-bit machine. mmsize_t should be 32-bits (unless CONFIG_MM_SMALL is selected). This commit backs out the last change to stddef.h 2015-11-23 12:03:36 -06:00
stdint.h stdint.h: Don't use hex values to specify minimum values of fixed width, signed values. Hex values are inherently unsigned and not usable for this purpose in all contexts 2014-12-08 11:44:52 -06:00
stdio.h Introduce support for Atmel toolchain in-flash strings 2016-01-05 10:29:29 -06:00
stdlib.h Merged in paulpatience/nuttx/stdlib (pull request #36) 2015-11-18 14:01:17 -06:00
string.h Clean-up/standardize a few header files 2015-08-03 11:01:41 -06:00
syscall.h include/sys/syscall.h: System definitions should depend on CONFIG_LIB_SYSCALL not CONFIG_NUTTX_KERNEL 2014-08-28 17:03:54 -06:00
syslog.h Introduce support for Atmel toolchain in-flash strings 2016-01-05 10:29:29 -06:00
termios.h Standardize some header files 2015-02-16 14:29:43 -06:00
threads.h
time.h Move macros timeradd() and friends from time.h to sys/time.h. 2015-12-24 07:09:39 -06:00
unistd.h Clean-up/standardize a few header files 2015-08-03 11:01:41 -06:00
wchar.h Add some comments 2015-02-19 11:47:34 -06:00