diff options
author | Tectu <joel@unormal.org> | 2012-08-02 22:15:55 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-08-02 22:15:55 +0200 |
commit | ea11c7adf7ba7e9725ed515c05108476e3a73496 (patch) | |
tree | 218ff1bff4aca7ce8cfc9220ee0b4d5f67fd1b1e /demos/gui/main.c | |
parent | ff0b8d0fecbf9db330657cca2b2c0656bf9e463b (diff) | |
download | uGFX-ea11c7adf7ba7e9725ed515c05108476e3a73496.tar.gz uGFX-ea11c7adf7ba7e9725ed515c05108476e3a73496.tar.bz2 uGFX-ea11c7adf7ba7e9725ed515c05108476e3a73496.zip |
added new license headers to all files, expect /halext
Diffstat (limited to 'demos/gui/main.c')
-rwxr-xr-x | demos/gui/main.c | 42 |
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;
}
+
|