From ea11c7adf7ba7e9725ed515c05108476e3a73496 Mon Sep 17 00:00:00 2001 From: Tectu Date: Thu, 2 Aug 2012 22:15:55 +0200 Subject: added new license headers to all files, expect /halext --- demos/README | 20 ++++++++++++++++++++ demos/console/main.c | 21 +++++++++++++++++++++ demos/drawing/main.c | 21 +++++++++++++++++++++ demos/gui/main.c | 42 +++++++++++++++++++++--------------------- demos/powermodes/main.c | 21 +++++++++++++++++++++ 5 files changed, 104 insertions(+), 21 deletions(-) (limited to 'demos') 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 + + 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 . +*/ + 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 + + 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 . +*/ + #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 + + 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 . +*/ + #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 -__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 . +*/ - 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 + + 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 . +*/ + #include "ch.h" #include "hal.h" #include "glcd.h" @@ -32,3 +52,4 @@ int main(void) { return 0; } + -- cgit v1.2.3