mirror of
https://github.com/apache/nuttx.git
synced 2026-09-23 16:22:23 +08:00
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:
+2
-2
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user