aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-08-02 22:15:55 +0200
committerTectu <joel@unormal.org>2012-08-02 22:15:55 +0200
commitea11c7adf7ba7e9725ed515c05108476e3a73496 (patch)
tree218ff1bff4aca7ce8cfc9220ee0b4d5f67fd1b1e /demos
parentff0b8d0fecbf9db330657cca2b2c0656bf9e463b (diff)
downloaduGFX-ea11c7adf7ba7e9725ed515c05108476e3a73496.tar.gz
uGFX-ea11c7adf7ba7e9725ed515c05108476e3a73496.tar.bz2
uGFX-ea11c7adf7ba7e9725ed515c05108476e3a73496.zip
added new license headers to all files, expect /halext
Diffstat (limited to 'demos')
-rw-r--r--demos/README20
-rwxr-xr-xdemos/console/main.c21
-rwxr-xr-xdemos/drawing/main.c21
-rwxr-xr-xdemos/gui/main.c42
-rwxr-xr-xdemos/powermodes/main.c21
5 files changed, 104 insertions, 21 deletions
diff --git a/demos/README b/demos/README
index a15ebd51..3d3d6013 100644
--- a/demos/README
+++ b/demos/README
@@ -1,3 +1,23 @@
+/*
+ ChibiOS/RT - Copyright (C) 2012
+ Joel Bodenmann aka Tectu <joel@unormal.org>
+
+ This file is part of ChibiOS-LCD-Driver.
+
+ 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.
+
+ 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.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
This are a few demos, showing how to use the library.
Please note that this are not compilable projects.
diff --git a/demos/console/main.c b/demos/console/main.c
index c629e2cd..b8ccd633 100755
--- a/demos/console/main.c
+++ b/demos/console/main.c
@@ -1,3 +1,23 @@
+/*
+ ChibiOS/RT - Copyright (C) 2012
+ Joel Bodenmann aka Tectu <joel@unormal.org>
+
+ This file is part of ChibiOS-LCD-Driver.
+
+ 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.
+
+ 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.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#include "ch.h"
#include "hal.h"
#include "glcd.h"
@@ -28,3 +48,4 @@ int main(void) {
return 0;
}
+
diff --git a/demos/drawing/main.c b/demos/drawing/main.c
index c2266898..391b0786 100755
--- a/demos/drawing/main.c
+++ b/demos/drawing/main.c
@@ -1,3 +1,23 @@
+/*
+ ChibiOS/RT - Copyright (C) 2012
+ Joel Bodenmann aka Tectu <joel@unormal.org>
+
+ This file is part of ChibiOS-LCD-Driver.
+
+ 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.
+
+ 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.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#include "ch.h"
#include "hal.h"
#include "glcd.h"
@@ -25,3 +45,4 @@ int main(void) {
return 0;
}
+
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;
}
+
diff --git a/demos/powermodes/main.c b/demos/powermodes/main.c
index 5d71f60f..8a138d06 100755
--- a/demos/powermodes/main.c
+++ b/demos/powermodes/main.c
@@ -1,3 +1,23 @@
+/*
+ ChibiOS/RT - Copyright (C) 2012
+ Joel Bodenmann aka Tectu <joel@unormal.org>
+
+ This file is part of ChibiOS-LCD-Driver.
+
+ 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.
+
+ 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.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#include "ch.h"
#include "hal.h"
#include "glcd.h"
@@ -32,3 +52,4 @@ int main(void) {
return 0;
}
+