From f6b727fa2789dceb231b28483dc714211bbd3293 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 13 Sep 2012 19:33:47 +0000 Subject: [PATCH] Changes needed for clean ez80 compile with ZDS toolchain git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5147 42af7a65-404d-4744-a932-0658087f49c3 --- configs/ez80f910200zco/README.txt | 1 + include/nuttx/vt100.h | 4 ++-- lib/stdio/lib_fopen.c | 2 +- sched/task_exithook.c | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/configs/ez80f910200zco/README.txt b/configs/ez80f910200zco/README.txt index 1b28177046..51b219493c 100644 --- a/configs/ez80f910200zco/README.txt +++ b/configs/ez80f910200zco/README.txt @@ -49,6 +49,7 @@ Version 5.1.1 Windows 7 system. Other Versions + If you use any version of ZDS-II other than 4.11.0 or if you install ZDS-II at any location other than the default location, you will have to modify two files: (1) configs/ez80f910200zco/*/setenv.sh and (2) diff --git a/include/nuttx/vt100.h b/include/nuttx/vt100.h index a0254e88a6..d834f48f0c 100644 --- a/include/nuttx/vt100.h +++ b/include/nuttx/vt100.h @@ -105,7 +105,7 @@ #define VT100_CURSORPOS(v,h) {ASCII_ESC, '[', (v), ';', (h), 'H'} /* Move cursor to screen location v,h */ #define VT100_HVHOME {ASCII_ESC, '[', 'f'} /* Move cursor to upper left corner */ -#define VT100_HVHOME_ {ASCII_ESC, '[', ;', 'f'} /* Move cursor to upper left corner */ +#define VT100_HVHOME_ {ASCII_ESC, '[', ';', 'f'} /* Move cursor to upper left corner */ #define VT100_HVPOS(v,h) {ASCII_ESC, '[', (v), ';', (h), 'f'} /* Move cursor to screen location v,h */ #define VT100_INDEX {ASCII_ESC, 'D'} /* Move/scroll window up one line */ #define VT100_REVINDEX {ASCII_ESC, 'M'} /* Move/scroll window down one line */ @@ -138,7 +138,7 @@ #define VT100_TERMNOK {ASCII_ESC, '3', 'n'} /* Response: terminal is not OK */ #define VT100_GETCURSOR {ASCII_ESC, '6', 'n'} /* Get cursor position */ -#define VT100_CURSORPOS {ASCII_ESC, (v), ';', (h), 'R'} /* Response: cursor is at v,h */ +#define VT100_CURSORPOSAT {ASCII_ESC, (v), ';', (h), 'R'} /* Response: cursor is at v,h */ #define VT100_IDENT {ASCII_ESC, '[', 'c'} /* Identify what terminal type */ #define VT100_IDENT_ {ASCII_ESC, '[', '0', 'c'} /* Identify what terminal type */ diff --git a/lib/stdio/lib_fopen.c b/lib/stdio/lib_fopen.c index 52e44c59de..29ff4569c2 100644 --- a/lib/stdio/lib_fopen.c +++ b/lib/stdio/lib_fopen.c @@ -64,7 +64,7 @@ enum open_mode_e MODE_A, /* "a" or "ab" open for writing, appending to file */ MODE_RPLUS, /* "r+", "rb+", or "r+b" open for update (reading and writing) */ MODE_WPLUS, /* "w+", "wb+", or "w+b" open for update, truncating or creating file */ - MODE_APLUS, /* "a+", "ab+", or "a+b" open for update, appending to file */ + MODE_APLUS /* "a+", "ab+", or "a+b" open for update, appending to file */ }; /**************************************************************************** diff --git a/sched/task_exithook.c b/sched/task_exithook.c index 63dc28aa05..8497af7ee9 100644 --- a/sched/task_exithook.c +++ b/sched/task_exithook.c @@ -44,6 +44,7 @@ #include #include +#include #include #include "os_internal.h"