diff options
author | Joel Bodenmann <joel@unormal.org> | 2012-11-20 18:37:49 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2012-11-20 18:37:49 +0100 |
commit | 43d45dca63e8e098e8a40481411d0c4ca46564c5 (patch) | |
tree | f395cf3409123d5d96f3950550c711fd4b140aff /demos/console | |
parent | 802e967a7abc8dd40ed35993e885db50f0f8c930 (diff) | |
download | uGFX-43d45dca63e8e098e8a40481411d0c4ca46564c5.tar.gz uGFX-43d45dca63e8e098e8a40481411d0c4ca46564c5.tar.bz2 uGFX-43d45dca63e8e098e8a40481411d0c4ca46564c5.zip |
gtimer demo
Diffstat (limited to 'demos/console')
-rw-r--r-- | demos/console/main.c | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/demos/console/main.c b/demos/console/main.c deleted file mode 100644 index b0e0fb7f..00000000 --- a/demos/console/main.c +++ /dev/null @@ -1,59 +0,0 @@ -/*
- ChibiOS/GFX - Copyright (C) 2012
- Joel Bodenmann aka Tectu <joel@unormal.org>
-
- This file is part of ChibiOS/GFX.
-
- ChibiOS/GFX is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- ChibiOS/GFX is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-/*
- * !!! IMPORTANT !!!
- *
- * This example dosen't compile yet, there's a problem in the console source.
- * This issue will be fixed soon.
- */
-
-/*
- * Please add the following to your halconf.h
- *
- * #define GFX_USE_CONSOLE TRUE
- * #define GDISP_NEED_SCROLL TRUE
- */
-
-#include "ch.h"
-#include "hal.h"
-#include "gdisp.h"
-#include "chprintf.h"
-#include "console.h"
-
-static GConsole CON1;
-
-int main(void) {
- halInit();
- chSysInit();
-
- gdispInit();
- gdispClear(Lime);
-
- gfxConsoleInit(&CON1, 0, 0, gdispGetWidth(), gdispGetHeight(), &fontLarger, Black, White);
- chprintf((BaseSequentialStream *)&CON1, "Hello the time is %d\nGoodbye.", chTimeNow());
-
-
- while (TRUE) {
-
- chThdSleepMilliseconds(100);
- }
-}
-
|