Add wchar_t type; Add LPC17xx CAN driver from Lzyy; Fix serial bug reported by Lzyy

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3775 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2011-07-12 16:36:45 +00:00
parent 2ad95a1d10
commit 62d94bb3d6
8 changed files with 341 additions and 9 deletions
+2 -2
View File
@@ -40,6 +40,8 @@
* Included Files
****************************************************************************/
#include <stddef.h> /* for wchar_t */
/* Notes from www.opengroup.org:
*
* "The <inttypes.h> header shall include the <stdint.h> header."
@@ -177,10 +179,8 @@ EXTERN imaxdiv_t imaxdiv(intmax_t, intmax_t);
EXTERN intmax_t strtoimax(const char *, char **, int);
EXTERN uintmax_t strtoumax(const char *, char **, int);
#if 0 /* No wchar_t */
EXTERN intmax_t wcstoimax(const wchar_t *, wchar_t **, int);
EXTERN uintmax_t wcstoumax(const wchar_t *, wchar_t **, int);
#endif
#undef EXTERN
#ifdef __cplusplus
+11
View File
@@ -103,6 +103,9 @@
****************************************************************************/
#ifndef __ASSEMBLY__
/* Floating point types */
typedef float float32;
#ifndef CONFIG_HAVE_DOUBLE
typedef float double_t;
@@ -158,6 +161,14 @@ typedef int pid_t;
typedef unsigned int id_t;
/* Signed integral type of the result of subtracting two pointers */
typedef intptr_t ptrdiff_t;
/* Wide, 16-bit character types */
typedef uint16_t wchar_t;
/* blkcnt_t and off_t are signed integer types.
*
* blkcnt_t is used for file block counts.