diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-05-12 17:42:01 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-05-12 17:42:01 +0000 |
commit | 9e52f60313290f0b6e17551e825094c117909690 (patch) | |
tree | 6b0b090c3ee973cf926eb1df0eb9d2636c5166a8 /nuttx/configs/rgmp/include | |
parent | 9319e9b53ca68435f0f7ea1c85ba1ac9e224f1e2 (diff) | |
download | px4-nuttx-9e52f60313290f0b6e17551e825094c117909690.tar.gz px4-nuttx-9e52f60313290f0b6e17551e825094c117909690.tar.bz2 px4-nuttx-9e52f60313290f0b6e17551e825094c117909690.zip |
First set of changes to incorporate the RGMP port
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3595 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/rgmp/include')
-rwxr-xr-x | nuttx/configs/rgmp/include/README.txt | 1 | ||||
-rwxr-xr-x | nuttx/configs/rgmp/include/stdarg.h | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/nuttx/configs/rgmp/include/README.txt b/nuttx/configs/rgmp/include/README.txt new file mode 100755 index 000000000..006f13e7c --- /dev/null +++ b/nuttx/configs/rgmp/include/README.txt @@ -0,0 +1 @@ +This directory is reserved for RGMP header files
diff --git a/nuttx/configs/rgmp/include/stdarg.h b/nuttx/configs/rgmp/include/stdarg.h new file mode 100755 index 000000000..8f879a819 --- /dev/null +++ b/nuttx/configs/rgmp/include/stdarg.h @@ -0,0 +1,23 @@ +#ifndef _RGMP_STDARG_H +#define _RGMP_STDARG_H + +typedef char *va_list; + +#define __va_size(type) \ + (((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long)) + +#ifndef va_start +#define va_start(ap, last) \ + ((ap) = (va_list)&(last) + __va_size(last)) +#endif + +#ifndef va_arg +#define va_arg(ap, type) \ + (*(type *)((ap) += __va_size(type), (ap) - __va_size(type))) +#endif + +#ifndef va_end +#define va_end(ap) ((void)0) +#endif + +#endif |