aboutsummaryrefslogtreecommitdiffstats
path: root/demos/gui/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/gui/main.c')
-rwxr-xr-xdemos/gui/main.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/demos/gui/main.c b/demos/gui/main.c
index dcc00c26..ca1a499b 100755
--- a/demos/gui/main.c
+++ b/demos/gui/main.c
@@ -1,29 +1,28 @@
-#include "ch.h"
-#include "hal.h"
-#include "gui.h"
-#include "glcd.h"
-#include "touchpad.h"
-
-__inline void lld_lcdWriteGPIO(uint16_t data) {
- palWritePort(LCD_DATA_PORT, data);
-}
+/*
+ ChibiOS/RT - Copyright (C) 2012
+ Joel Bodenmann aka Tectu <joel@unormal.org>
-__inline uint16_t lld_lcdReadGPIO(void) {
- uint16_t value;
+ This file is part of ChibiOS-LCD-Driver.
- // change pin mode to digital input
- LCD_DATA_PORT->CRH = 0x44444444;
- LCD_DATA_PORT->CRL = 0x44444444;
+ ChibiOS-LCD-Driver 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.
- value = palReadPort(LCD_DATA_PORT); // dummy
- value = palReadPort(LCD_DATA_PORT);
+ ChibiOS-LCD-Driver 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.
- // change pin mode back to digital output
- LCD_DATA_PORT->CRH = 0x33333333;
- LCD_DATA_PORT->CRL = 0x33333333;
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
- return value;
-}
+#include "ch.h"
+#include "hal.h"
+#include "gui.h"
+#include "glcd.h"
+#include "touchpad.h"
// GLCD driver object
static GLCDDriver GLCDD1;
@@ -77,3 +76,4 @@ int main(void) {
return 0;
}
+