From b2252bb7bede275461700db9c56b702a93a33982 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 30 Apr 2013 17:35:34 +0700 Subject: New LLD: HVGA_X81 For HVGA : 320 x 480, 16bpp displays, controlled by ILI9481 or compatible controllers. * Pixel readback TODO * Powermodes: Sleep implemented --- drivers/gdisp/HVGA_X81/gdisp_lld.c | 621 +++++++++++++++++++++ drivers/gdisp/HVGA_X81/gdisp_lld.mk | 5 + drivers/gdisp/HVGA_X81/gdisp_lld_board_example.h | 126 +++++ .../gdisp/HVGA_X81/gdisp_lld_board_example_fsmc.h | 165 ++++++ .../HVGA_X81/gdisp_lld_board_firebullstm32f103.h | 158 ++++++ drivers/gdisp/HVGA_X81/gdisp_lld_config.h | 53 ++ drivers/gdisp/HVGA_X81/readme.txt | 15 + 7 files changed, 1143 insertions(+) create mode 100644 drivers/gdisp/HVGA_X81/gdisp_lld.c create mode 100644 drivers/gdisp/HVGA_X81/gdisp_lld.mk create mode 100644 drivers/gdisp/HVGA_X81/gdisp_lld_board_example.h create mode 100644 drivers/gdisp/HVGA_X81/gdisp_lld_board_example_fsmc.h create mode 100644 drivers/gdisp/HVGA_X81/gdisp_lld_board_firebullstm32f103.h create mode 100644 drivers/gdisp/HVGA_X81/gdisp_lld_config.h create mode 100644 drivers/gdisp/HVGA_X81/readme.txt diff --git a/drivers/gdisp/HVGA_X81/gdisp_lld.c b/drivers/gdisp/HVGA_X81/gdisp_lld.c new file mode 100644 index 00000000..e0cedad1 --- /dev/null +++ b/drivers/gdisp/HVGA_X81/gdisp_lld.c @@ -0,0 +1,621 @@ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ + +/** + * @file drivers/gdisp/HVGA_X81/gdisp_lld.c + * @brief GDISP Graphics Driver subsystem low level driver source for + * the ILI9481 and compatible HVGA display + * + * @addtogroup GDISP + * @{ + */ + +#include "ch.h" +#include "hal.h" +#include "gfx.h" + +#if GFX_USE_GDISP /*|| defined(__DOXYGEN__)*/ + +/* Include the emulation code for things we don't support */ +#include "gdisp/lld/emulation.c" + +/*===========================================================================*/ +/* Driver local definitions. */ +/*===========================================================================*/ + +#if defined(GDISP_SCREEN_HEIGHT) + #warning "GDISP: This low level driver does not support setting a screen size. It is being ignored." + #undef GISP_SCREEN_HEIGHT +#endif +#if defined(GDISP_SCREEN_WIDTH) + #warning "GDISP: This low level driver does not support setting a screen size. It is being ignored." + #undef GDISP_SCREEN_WIDTH +#endif + +#define GDISP_SCREEN_HEIGHT 480 +#define GDISP_SCREEN_WIDTH 320 + +#define GDISP_INITIAL_CONTRAST 50 +#define GDISP_INITIAL_BACKLIGHT 100 + +/*===========================================================================*/ +/* Driver local functions. */ +/*===========================================================================*/ + +#if defined(GDISP_USE_CUSTOM_BOARD) && GDISP_USE_CUSTOM_BOARD + /* Include the user supplied board definitions */ + #include "gdisp_lld_board.h" +#elif defined(BOARD_FIREBULL_STM32_F103) + #include "gdisp_lld_board_firebullstm32f103.h" +#else + /* Include the user supplied board definitions */ + #include "gdisp_lld_board.h" +#endif + +// Some common routines and macros +#define write_reg(reg, data) { write_index(reg); write_data(data); } +#define stream_start() write_index(0x2C); +#define stream_stop() +#define delay(us) chThdSleepMicroseconds(us) +#define delayms(ms) chThdSleepMilliseconds(ms) + +static inline void set_cursor(coord_t x, coord_t y) { + write_index(0x2A); + write_data((x >> 8)); + write_data((uint8_t) x); + write_data((x) >> 8); + write_data((uint8_t) (x)); + + write_index(0x2B); + write_data((y >> 8)); + write_data((uint8_t) y); + write_data((y) >> 8); + write_data((uint8_t) (y)); +} + +static void set_viewport(coord_t x, coord_t y, coord_t cx, coord_t cy) { + write_index(0x2A); + write_data((x >> 8)); + write_data((uint8_t) x); + write_data((x + cx - 1) >> 8); + write_data((uint8_t) (x + cx - 1)); + + write_index(0x2B); + write_data((y >> 8)); + write_data((uint8_t) y); + write_data((y + cy - 1) >> 8); + write_data((uint8_t) (y + cy - 1)); +} + +static inline void reset_viewport(void) { + set_viewport(0, 0, GDISP.Width, GDISP.Height); +} + +/*===========================================================================*/ +/* Driver interrupt handlers. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Driver exported functions. */ +/*===========================================================================*/ + +/* ---- Required Routines ---- */ +/* + The following 2 routines are required. + All other routines are optional. +*/ + +/** + * @brief Low level GDISP driver initialization. + * + * @notapi + */ +bool_t gdisp_lld_init(void) { + /* Initialise your display */ + init_board(); + + /* Hardware reset */ + setpin_reset(TRUE); + delayms(20); + setpin_reset(FALSE); + delayms(20); + + /* Get the bus for the following initialisation commands */ + acquire_bus(); + + /* Enable Access to all Manufacturer commands (0xB0 and higher opcodes) */ + write_index(0xB0); + write_data(0x00); + + /* Frame Memory Access and Interface Setting */ + write_index(0xB3); + write_data(0x02); + write_data(0x00); + write_data(0x00); + write_data(0x10); + + /* Display Mode and Frame Memory Write Mode Setting (B4h) */ + /* Use internal clock for synchronization */ + /* Use DBI interface (only DB0-17, no HSYNC, VSYNC or CLK) */ + write_index(0xB4); + write_data(0x00); + + /* Internal Backlight Control */ +/* write_index(0xB9); /*PWM Settings for Brightness Control */ +/* write_data(0x01); /* Disabled by default. */ +/* write_data(0xFF); /*0xFF = Max brightness */ +/* write_data(0xFF); +/* write_data(0x18); + + /* Panel Driving settings */ + write_index(0xC0); + write_data(0x03); + write_data(0x3B); + write_data(0x00); + write_data(0x00); + write_data(0x00); + write_data(0x01); + write_data(0x00); /* NW */ + write_data(0x43); + + /* Display timings in Operating Mode */ + write_index(0xC1); + write_data(0x08); + write_data(0x15); /* CLOCK */ + write_data(0x08); + write_data(0x08); + + /* S/VCOM/Gate Driving timing setting */ + write_index(0xC4); + write_data(0x15); + write_data(0x03); + write_data(0x03); + write_data(0x01); + + /* Interface Setting */ + write_index(0xC6); + write_data(0x02); + + /* Gamma Setting - should be changed if using a different panel */ + write_index(0xC8); + write_data(0x0C); + write_data(0x05); + write_data(0x0A); /*0X12 */ + write_data(0x6B); /*0x7D */ + write_data(0x04); + write_data(0x06); /*0x08 */ + write_data(0x15); /*0x0A */ + write_data(0x10); + write_data(0x00); + write_data(0x60); /*0x23 */ + + /* Address Mode setting */ + write_index(0x36); + write_data(0x00); + + /* Set Pixel Format = 16 bits per pixel */ + /* The driver supports upto 24 bits per pixel, with dither */ + write_index(0x3A); + write_data(0x55); + + /* Exit Idle Mode */ + write_index(0x38); + + /* Power Setting */ + write_index(0xD0); + write_data(0x07); + write_data(0x07); /* VCI = VCI1 */ + write_data(0x14); /* VRH 0x1D */ + write_data(0xA2); /* BT 0x06 */ + + /* VCOM Setting */ + write_index(0xD1); + write_data(0x03); + write_data(0x5A); /* VCM 0x5A */ + write_data(0x10); /* VDV */ + + /* Power Setting for Normal Mode */ + write_index(0xD2); + write_data(0x03); + write_data(0x04); /* 0x24 */ + write_data(0x04); + + /* Exit Sleep Mode */ + write_index(0x11); + delay(150); + + /* Display ON */ + write_index(0x29); + delay(30); + + /* Release the bus */ + release_bus(); + + /* Turn on the back-light */ + set_backlight(GDISP_INITIAL_BACKLIGHT); + + /* Initialise the GDISP structure */ + GDISP.Width = GDISP_SCREEN_WIDTH; + GDISP.Height = GDISP_SCREEN_HEIGHT; + GDISP.Orientation = GDISP_ROTATE_0; + GDISP.Powermode = powerOn; + GDISP.Backlight = GDISP_INITIAL_BACKLIGHT; + GDISP.Contrast = GDISP_INITIAL_CONTRAST; + #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP + GDISP.clipx0 = 0; + GDISP.clipy0 = 0; + GDISP.clipx1 = GDISP.Width; + GDISP.clipy1 = GDISP.Height; + #endif + return TRUE; +} + +/** + * @brief Draws a pixel on the display. + * + * @param[in] x X location of the pixel + * @param[in] y Y location of the pixel + * @param[in] color The color of the pixel + * + * @notapi + */ +void gdisp_lld_draw_pixel(coord_t x, coord_t y, color_t color) { + #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP + if (x < GDISP.clipx0 || y < GDISP.clipy0 || x >= GDISP.clipx1 || y >= GDISP.clipy1) return; + #endif + + acquire_bus(); + + set_cursor(x, y); + write_reg(0x002c, color); + + release_bus(); +} + +/* ---- Optional Routines ---- */ +/* + All the below routines are optional. + Defining them will increase speed but everything + will work if they are not defined. + If you are not using a routine - turn it off using + the appropriate GDISP_HARDWARE_XXXX macro. + Don't bother coding for obvious similar routines if + there is no performance penalty as the emulation software + makes a good job of using similar routines. + eg. If gfillarea() is defined there is little + point in defining clear() unless the + performance bonus is significant. + For good performance it is suggested to implement + fillarea() and blitarea(). +*/ + +#if GDISP_HARDWARE_CLEARS || defined(__DOXYGEN__) + /** + * @brief Clear the display. + * @note Optional - The high level driver can emulate using software. + * + * @param[in] color The color of the pixel + * + * @notapi + */ + void gdisp_lld_clear(color_t color) { + unsigned i; + + acquire_bus(); + reset_viewport(); + stream_start(); + for(i = 0; i < GDISP_SCREEN_WIDTH * GDISP_SCREEN_HEIGHT; i++) + write_data(color); + stream_stop(); + release_bus(); + } +#endif + +#if GDISP_HARDWARE_FILLS || defined(__DOXYGEN__) + /** + * @brief Fill an area with a color. + * @note Optional - The high level driver can emulate using software. + * + * @param[in] x, y The start filled area + * @param[in] cx, cy The width and height to be filled + * @param[in] color The color of the fill + * + * @notapi + */ + void gdisp_lld_fill_area(coord_t x, coord_t y, coord_t cx, coord_t cy, color_t color) { + unsigned i, area; + + #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP + if (x < GDISP.clipx0) { cx -= GDISP.clipx0 - x; x = GDISP.clipx0; } + if (y < GDISP.clipy0) { cy -= GDISP.clipy0 - y; y = GDISP.clipy0; } + if (cx <= 0 || cy <= 0 || x >= GDISP.clipx1 || y >= GDISP.clipy1) return; + if (x+cx > GDISP.clipx1) cx = GDISP.clipx1 - x; + if (y+cy > GDISP.clipy1) cy = GDISP.clipy1 - y; + #endif + + area = cx*cy; + + acquire_bus(); + + set_viewport(x, y, cx, cy); + + stream_start(); + for(i = 0; i < area; i++) + write_data(color); + stream_stop(); + + release_bus(); + } +#endif + +#if GDISP_HARDWARE_BITFILLS || defined(__DOXYGEN__) + /** + * @brief Fill an area with a bitmap. + * @note Optional - The high level driver can emulate using software. + * + * @param[in] x, y The start filled area + * @param[in] cx, cy The width and height to be filled + * @param[in] srcx, srcy The bitmap position to start the fill from + * @param[in] srccx The width of a line in the bitmap. + * @param[in] buffer The pixels to use to fill the area. + * + * @notapi + */ + void gdisp_lld_blit_area_ex(coord_t x, coord_t y, coord_t cx, coord_t cy, coord_t srcx, coord_t srcy, coord_t srccx, const pixel_t *buffer) { + coord_t endx, endy; + unsigned lg; + + #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP + if (x < GDISP.clipx0) { cx -= GDISP.clipx0 - x; srcx += GDISP.clipx0 - x; x = GDISP.clipx0; } + if (y < GDISP.clipy0) { cy -= GDISP.clipy0 - y; srcy += GDISP.clipy0 - y; y = GDISP.clipy0; } + if (srcx+cx > srccx) cx = srccx - srcx; + if (cx <= 0 || cy <= 0 || x >= GDISP.clipx1 || y >= GDISP.clipy1) return; + if (x+cx > GDISP.clipx1) cx = GDISP.clipx1 - x; + if (y+cy > GDISP.clipy1) cy = GDISP.clipy1 - y; + #endif + + acquire_bus(); + set_viewport(x, y, cx, cy); + stream_start(); + + endx = srcx + cx; + endy = y + cy; + lg = srccx - cx; + buffer += srcx + srcy * srccx; + for(; y < endy; y++, buffer += lg) + for(x=srcx; x < endx; x++) + write_data(*buffer++); + stream_stop(); + release_bus(); + } +#endif + +#if (GDISP_NEED_PIXELREAD && GDISP_HARDWARE_PIXELREAD) || defined(__DOXYGEN__) + /** + * @brief Get the color of a particular pixel. + * @note Optional. + * @note If x,y is off the screen, the result is undefined. + * + * @param[in] x, y The pixel to be read + * + * @notapi + */ + color_t gdisp_lld_get_pixel_color(coord_t x, coord_t y) { + color_t color; + + #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP + if (x < 0 || x >= GDISP.Width || y < 0 || y >= GDISP.Height) return 0; + #endif + + acquire_bus(); + set_cursor(x, y); + stream_start(); + color = read_data(); // dummy read + color = read_data(); + stream_stop(); + release_bus(); + + return color; + } +#endif + +#if (GDISP_NEED_SCROLL && GDISP_HARDWARE_SCROLL) || defined(__DOXYGEN__) + /** + * @brief Scroll vertically a section of the screen. + * @note Optional. + * @note If x,y + cx,cy is off the screen, the result is undefined. + * @note If lines is >= cy, it is equivelent to a area fill with bgcolor. + * + * @param[in] x, y The start of the area to be scrolled + * @param[in] cx, cy The size of the area to be scrolled + * @param[in] lines The number of lines to scroll (Can be positive or negative) + * @param[in] bgcolor The color to fill the newly exposed area. + * + * @notapi + */ + void gdisp_lld_vertical_scroll(coord_t x, coord_t y, coord_t cx, coord_t cy, int lines, color_t bgcolor) { + static color_t buf[((GDISP_SCREEN_HEIGHT > GDISP_SCREEN_WIDTH ) ? GDISP_SCREEN_HEIGHT : GDISP_SCREEN_WIDTH)]; + coord_t row0, row1; + unsigned i, gap, abslines, j; + + #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP + if (x < GDISP.clipx0) { cx -= GDISP.clipx0 - x; x = GDISP.clipx0; } + if (y < GDISP.clipy0) { cy -= GDISP.clipy0 - y; y = GDISP.clipy0; } + if (!lines || cx <= 0 || cy <= 0 || x >= GDISP.clipx1 || y >= GDISP.clipy1) return; + if (x+cx > GDISP.clipx1) cx = GDISP.clipx1 - x; + if (y+cy > GDISP.clipy1) cy = GDISP.clipy1 - y; + #endif + + abslines = lines < 0 ? -lines : lines; + + acquire_bus(); + if ((coord_t)abslines >= cy) { + abslines = cy; + gap = 0; + } else { + gap = cy - abslines; + for(i = 0; i < gap; i++) { + if(lines > 0) { + row0 = y + i + lines; + row1 = y + i; + } else { + row0 = (y - i - 1) + lines; + row1 = (y - i - 1); + } + + /* read row0 into the buffer and then write at row1*/ + set_viewport(x, row0, cx, 1); + stream_start(); + j = read_data(); // dummy read + for (j = 0; (coord_t)j < cx; j++) + buf[j] = read_data(); + stream_stop(); + + set_viewport(x, row1, cx, 1); + stream_start(); + for (j = 0; (coord_t)j < cx; j++) + write_data(buf[j]); + stream_stop(); + } + } + + /* fill the remaining gap */ + set_viewport(x, lines > 0 ? (y+(coord_t)gap) : y, cx, abslines); + stream_start(); + gap = cx*abslines; + for(i = 0; i < gap; i++) write_data(bgcolor); + stream_stop(); + release_bus(); + } +#endif + +#if (GDISP_NEED_CONTROL && GDISP_HARDWARE_CONTROL) || defined(__DOXYGEN__) + /** + * @brief Driver Control + * @details Unsupported control codes are ignored. + * @note The value parameter should always be typecast to (void *). + * @note There are some predefined and some specific to the low level driver. + * @note GDISP_CONTROL_POWER - Takes a gdisp_powermode_t + * GDISP_CONTROL_ORIENTATION - Takes a gdisp_orientation_t + * GDISP_CONTROL_BACKLIGHT - Takes an int from 0 to 100. For a driver + * that only supports off/on anything other + * than zero is on. + * GDISP_CONTROL_CONTRAST - Takes an int from 0 to 100. + * GDISP_CONTROL_LLD - Low level driver control constants start at + * this value. + * + * @param[in] what What to do. + * @param[in] value The value to use (always cast to a void *). + * + * @notapi + */ + void gdisp_lld_control(unsigned what, void *value) { + switch(what) { + case GDISP_CONTROL_POWER: + if (GDISP.Powermode == (gdisp_powermode_t)value) + return; + switch((gdisp_powermode_t)value) { + case powerOff: + acquire_bus(); + write_reg(0x0010, 0x0001); /* enter sleep mode */ + release_bus(); + break; + case powerOn: + acquire_bus(); + write_reg(0x0010, 0x0000); /* leave sleep mode */ + release_bus(); + if (GDISP.Powermode != powerSleep) + gdisp_lld_init(); + break; + case powerSleep: + acquire_bus(); + write_reg(0x0010, 0x0001); /* enter sleep mode */ + release_bus(); + break; + default: + return; + } + GDISP.Powermode = (gdisp_powermode_t)value; + return; + case GDISP_CONTROL_ORIENTATION: + if (GDISP.Orientation == (gdisp_orientation_t)value) + return; + switch((gdisp_orientation_t)value) { + case GDISP_ROTATE_0: + acquire_bus(); + + write_reg(0xC0, 0x03); + write_reg(0x36, 0x00); /* X and Y axes non-inverted */ + + release_bus(); + GDISP.Height = GDISP_SCREEN_HEIGHT; + GDISP.Width = GDISP_SCREEN_WIDTH; + break; + case GDISP_ROTATE_90: + acquire_bus(); + + write_reg(0xC0, 0x02); + write_reg(0x36, 0x20); /* Invert X and Y axes */ + + release_bus(); + GDISP.Height = GDISP_SCREEN_WIDTH; + GDISP.Width = GDISP_SCREEN_HEIGHT; + break; + case GDISP_ROTATE_180: + acquire_bus(); + + write_reg(0xC0, 0x06); + write_reg(0x36, 0x00); /* X and Y axes non-inverted */ + + release_bus(); + GDISP.Height = GDISP_SCREEN_HEIGHT; + GDISP.Width = GDISP_SCREEN_WIDTH; + break; + case GDISP_ROTATE_270: + acquire_bus(); + + write_reg(0xC0, 0x07); + write_reg(0x36, 0x20); /* Invert X and Y axes */ + + release_bus(); + GDISP.Height = GDISP_SCREEN_WIDTH; + GDISP.Width = GDISP_SCREEN_HEIGHT; + break; + default: + return; + } + #if GDISP_NEED_CLIP || GDISP_NEED_VALIDATION + GDISP.clipx0 = 0; + GDISP.clipy0 = 0; + GDISP.clipx1 = GDISP.Width; + GDISP.clipy1 = GDISP.Height; + #endif + GDISP.Orientation = (gdisp_orientation_t)value; + return; +/* + case GDISP_CONTROL_BACKLIGHT: + case GDISP_CONTROL_CONTRAST: +*/ + } + } +#endif + +#endif /* GFX_USE_GDISP */ +/** @} */ diff --git a/drivers/gdisp/HVGA_X81/gdisp_lld.mk b/drivers/gdisp/HVGA_X81/gdisp_lld.mk new file mode 100644 index 00000000..a097e0c5 --- /dev/null +++ b/drivers/gdisp/HVGA_X81/gdisp_lld.mk @@ -0,0 +1,5 @@ +# List the required driver. +GFXSRC += $(GFXLIB)/drivers/gdisp/HVGA_X81/gdisp_lld.c + +# Required include directories +GFXINC += $(GFXLIB)/drivers/gdisp/HVGA_X81 diff --git a/drivers/gdisp/HVGA_X81/gdisp_lld_board_example.h b/drivers/gdisp/HVGA_X81/gdisp_lld_board_example.h new file mode 100644 index 00000000..2c81c906 --- /dev/null +++ b/drivers/gdisp/HVGA_X81/gdisp_lld_board_example.h @@ -0,0 +1,126 @@ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ + +/** + * @file drivers/gdisp/HVGA_X81/gdisp_lld_board_example.h + * @brief GDISP Graphics Driver subsystem low level driver source for + * the ILI9481 and compatible HVGA display + * + * @addtogroup GDISP + * @{ + */ + +#ifndef _GDISP_LLD_BOARD_H +#define _GDISP_LLD_BOARD_H + +/** + * @brief Initialise the board for the display. + * + * @notapi + */ +static inline void init_board(void) { + /* Code here */ +#error "HVGA_X81: You must supply a definition for init_board for your board" +} + +/** + * @brief Set or clear the lcd reset pin. + * + * @param[in] state TRUE = lcd in reset, FALSE = normal operation + * + * @notapi + */ +static inline void setpin_reset(bool_t state) { + /* Code here */ +#error "HVGA_X81: You must supply a definition for setpin_reset for your board" +} + +/** + * @brief Set the lcd back-light level. + * + * @param[in] percent 0 to 100% + * + * @notapi + */ +static inline void set_backlight(uint8_t percent) { + /* Code here */ +#error "HVGA_X81: You must supply a definition for set_backlight for your board" +} + +/** + * @brief Take exclusive control of the bus + * + * @notapi + */ +static inline void acquire_bus(void) { +#error "HVGA_X81: You must supply a definition for acquire_bus for your board" +} + +/** + * @brief Release exclusive control of the bus + * + * @notapi + */ +static inline void release_bus(void) { +#error "HVGA_X81: You must supply a definition for release_bus for your board" +} + +/** + * @brief Send data to the index register. + * + * @param[in] index The index register to set + * + * @notapi + */ +static inline void write_index(uint16_t index) { + /* Code here */ +#error "HVGA_X81: You must supply a definition for write_index for your board" +} + +/** + * @brief Send data to the lcd. + * + * @param[in] data The data to send + * + * @notapi + */ +static inline void write_data(uint16_t data) { + /* Code here */ +#error "HVGA_X81: You must supply a definition for write_data for your board" +} + +#if GDISP_HARDWARE_READPIXEL || GDISP_HARDWARE_SCROLL || defined(__DOXYGEN__) +/** + * @brief Read data from the lcd. + * + * @return The data from the lcd + * @note The chip select may need to be asserted/de-asserted + * around the actual spi read + * + * @notapi + */ +static inline uint16_t read_data(void) { + /* Code here */ +#error "HVGA_X81: You must supply a definition for read_data for your board" +} +#endif + +#endif /* _GDISP_LLD_BOARD_H */ +/** @} */ diff --git a/drivers/gdisp/HVGA_X81/gdisp_lld_board_example_fsmc.h b/drivers/gdisp/HVGA_X81/gdisp_lld_board_example_fsmc.h new file mode 100644 index 00000000..8367b53c --- /dev/null +++ b/drivers/gdisp/HVGA_X81/gdisp_lld_board_example_fsmc.h @@ -0,0 +1,165 @@ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ + +/** + * @file drivers/gdisp/HVGA_X81/gdisp_lld_board_example_fsmc.h + * @brief GDISP Graphics Driver subsystem low level driver source for + * the ILI9481 and compatible HVGA display + * + * @addtogroup GDISP + * @{ + */ + +#ifndef _GDISP_LLD_BOARD_H +#define _GDISP_LLD_BOARD_H + +#define GDISP_REG ((volatile uint16_t *) 0x60000000)[0] /* RS = 0 */ +#define GDISP_RAM ((volatile uint16_t *) 0x60020000)[0] /* RS = 1 */ + +/** + * @brief Initialise the board for the display. + * @notes Performs the following functions: + * 1. initialise the io port used by your display + * 2. initialise the reset pin (initial state not-in-reset) + * 3. initialise the chip select pin (initial state not-active) + * 4. initialise the backlight pin (initial state back-light off) + * + * @notapi + */ +static inline void init_board(void) { + const unsigned char FSMC_Bank; + + #if defined(STM32F1XX) || defined(STM32F3XX) + /* FSMC setup for F1/F3 */ + rccEnableAHB(RCC_AHBENR_FSMCEN, 0); + + #if defined(GDISP_USE_DMA) && defined(GDISP_DMA_STREAM) + #error "DMA not implemented for F1/F3 Devices" + #endif + #elif defined(STM32F4XX) || defined(STM32F2XX) + /* STM32F2-F4 FSMC init */ + rccEnableAHB3(RCC_AHB3ENR_FSMCEN, 0); + + #if defined(GDISP_USE_DMA) && defined(GDISP_DMA_STREAM) + if (dmaStreamAllocate(GDISP_DMA_STREAM, 0, NULL, NULL)) chSysHalt(); + dmaStreamSetMemory0(GDISP_DMA_STREAM, &GDISP_RAM); + dmaStreamSetMode(GDISP_DMA_STREAM, STM32_DMA_CR_PL(0) | STM32_DMA_CR_PSIZE_HWORD | STM32_DMA_CR_MSIZE_HWORD | STM32_DMA_CR_DIR_M2M); + #endif + #else + #error "FSMC not implemented for this device" + #endif + + /* set pins to FSMC mode */ + IOBus busD = {GPIOD, (1 << 0) | (1 << 1) | (1 << 4) | (1 << 5) | (1 << 7) | (1 << 8) | + (1 << 9) | (1 << 10) | (1 << 11) | (1 << 14) | (1 << 15), 0}; + + IOBus busE = {GPIOE, (1 << 7) | (1 << 8) | (1 << 9) | (1 << 10) | (1 << 11) | (1 << 12) | + (1 << 13) | (1 << 14) | (1 << 15), 0}; + + palSetBusMode(&busD, PAL_MODE_ALTERNATE(12)); + palSetBusMode(&busE, PAL_MODE_ALTERNATE(12)); + + FSMC_Bank = 0; + + /* FSMC timing */ + FSMC_Bank1->BTCR[FSMC_Bank+1] = (FSMC_BTR1_ADDSET_1 | FSMC_BTR1_ADDSET_3) \ + | (FSMC_BTR1_DATAST_1 | FSMC_BTR1_DATAST_3) \ + | (FSMC_BTR1_BUSTURN_1 | FSMC_BTR1_BUSTURN_3) ; + + /* Bank1 NOR/SRAM control register configuration + * This is actually not needed as already set by default after reset */ + FSMC_Bank1->BTCR[FSMC_Bank] = FSMC_BCR1_MWID_0 | FSMC_BCR1_WREN | FSMC_BCR1_MBKEN; +} + +/** + * @brief Set or clear the lcd reset pin. + * + * @param[in] state TRUE = lcd in reset, FALSE = normal operation + * + * @notapi + */ +static inline void setpin_reset(bool_t state) { + (void) state; + /* Nothing to do here */ +} + +/** + * @brief Set the lcd back-light level. + * + * @param[in] percent 0 to 100% + * + * @notapi + */ +static inline void set_backlight(uint8_t percent) { + (void) percent; + /* Nothing to do here */ +} + +/** + * @brief Take exclusive control of the bus + * + * @notapi + */ +static inline void acquire_bus(void) { + /* Nothing to do here */ +} + +/** + * @brief Release exclusive control of the bus + * + * @notapi + */ +static inline void release_bus(void) { + /* Nothing to do here */ +} + +/** + * @brief Send data to the index register. + * + * @param[in] index The index register to set + * + * @notapi + */ +static inline void write_index(uint16_t index) { GDISP_REG = index; } + +/** + * @brief Send data to the lcd. + * + * @param[in] data The data to send + * + * @notapi + */ +static inline void write_data(uint16_t data) { GDISP_RAM = data; } + +#if GDISP_HARDWARE_READPIXEL || GDISP_HARDWARE_SCROLL || defined(__DOXYGEN__) +/** + * @brief Read data from the lcd. + * + * @return The data from the lcd + * @note The chip select may need to be asserted/de-asserted + * around the actual spi read + * + * @notapi + */ +static inline uint16_t read_data(void) { return GDISP_RAM; } +#endif + +#endif /* _GDISP_LLD_BOARD_H */ +/** @} */ diff --git a/drivers/gdisp/HVGA_X81/gdisp_lld_board_firebullstm32f103.h b/drivers/gdisp/HVGA_X81/gdisp_lld_board_firebullstm32f103.h new file mode 100644 index 00000000..176e8452 --- /dev/null +++ b/drivers/gdisp/HVGA_X81/gdisp_lld_board_firebullstm32f103.h @@ -0,0 +1,158 @@ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ + +/** + * @file drivers/gdisp/HVGA_X81/gdisp_lld_board_firebullstm32f103.h + * @brief GDISP Graphics Driver subsystem low level driver source for + * the ILI9481 and compatible HVGA display + * + * @addtogroup GDISP + * @{ + */ + +#ifndef _GDISP_LLD_BOARD_H +#define _GDISP_LLD_BOARD_H + +#define SET_CS palSetPad(GPIOD, 12); +#define CLR_CS palClearPad(GPIOD, 12); +#define SET_RS palSetPad(GPIOD, 13); +#define CLR_RS palClearPad(GPIOD, 13); +#define SET_WR palSetPad(GPIOD, 14); +#define CLR_WR palClearPad(GPIOD, 14); +#define SET_RD palSetPad(GPIOD, 15); +#define CLR_RD palClearPad(GPIOD, 15); + +/** + * @brief Initialise the board for the display. + * @notes This board definition uses GPIO and assumes exclusive access to these GPIO pins + * + * @notapi + */ +static inline void init_board(void) { + palSetGroupMode(GPIOE, PAL_WHOLE_PORT, 0, PAL_MODE_OUTPUT_PUSHPULL); + palSetPadMode(GPIOD, 12, PAL_MODE_OUTPUT_PUSHPULL); + palSetPadMode(GPIOD, 13, PAL_MODE_OUTPUT_PUSHPULL); + palSetPadMode(GPIOD, 14, PAL_MODE_OUTPUT_PUSHPULL); + palSetPadMode(GPIOD, 15, PAL_MODE_OUTPUT_PUSHPULL); + + // Configure the pins to a well know state + SET_RS; + SET_RD; + SET_WR; + CLR_CS; +} + + +/** + * @brief Set or clear the lcd reset pin. + * + * @param[in] state TRUE = lcd in reset, FALSE = normal operation + * + * @notapi + */ +static inline void setpin_reset(bool_t state) { + (void) state; + /* Nothing to do here - reset pin tied to Vcc */ +} + +/** + * @brief Set the lcd back-light level. + * + * @param[in] percent 0 to 100% + * + * @notapi + */ +static inline void set_backlight(uint8_t percent) { + (void) percent; + /* Nothing to do here - Backlight always on */ +} + +/** + * @brief Take exclusive control of the bus + * + * @notapi + */ +static inline void acquire_bus(void) { + /* Nothing to do here since LCD is the only device on that bus */ +} + +/** + * @brief Release exclusive control of the bus + * + * @notapi + */ +static inline void release_bus(void) { + /* Nothing to do here since LCD is the only device on that bus */ +} + +/** + * @brief Send data to the index register. + * + * @param[in] index The index register to set + * + * @notapi + */ +static inline void write_index(uint16_t index) { + palWritePort(GPIOE, index); + CLR_RS; CLR_WR; SET_WR; SET_RS; +} + +/** + * @brief Send data to the lcd. + * + * @param[in] data The data to send + * + * @notapi + */ +static inline void write_data(uint16_t data) { + palWritePort(GPIOE, data); + CLR_WR; SET_WR; +} + +#if GDISP_HARDWARE_READPIXEL || GDISP_HARDWARE_SCROLL || defined(__DOXYGEN__) +/** + * @brief Read data from the lcd. + * + * @return The data from the lcd + * @note The chip select may need to be asserted/de-asserted + * around the actual spi read + * + * @notapi + */ +static inline uint16_t read_data(void) { + uint16_t value; + + // change pin mode to digital input + palSetGroupMode(GPIOE, PAL_WHOLE_PORT, 0, PAL_MODE_INPUT); + + CLR_RD; + value = palReadPort(GPIOE); + value = palReadPort(GPIOE); + SET_RD; + + // change pin mode back to digital output + palSetGroupMode(GPIOE, PAL_WHOLE_PORT, 0, PAL_MODE_OUTPUT_PUSHPULL); + + return value; +} +#endif + +#endif /* _GDISP_LLD_BOARD_H */ +/** @} */ diff --git a/drivers/gdisp/HVGA_X81/gdisp_lld_config.h b/drivers/gdisp/HVGA_X81/gdisp_lld_config.h new file mode 100644 index 00000000..a9dd8659 --- /dev/null +++ b/drivers/gdisp/HVGA_X81/gdisp_lld_config.h @@ -0,0 +1,53 @@ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ + +/** + * @file drivers/gdisp/SSD1289/gdisp_lld_config.h + * @brief GDISP Graphics Driver subsystem low level driver source for + * the ILI9481 and compatible HVGA display + * + * @addtogroup GDISP + * @{ + */ + +#ifndef _GDISP_LLD_CONFIG_H +#define _GDISP_LLD_CONFIG_H + +#if GFX_USE_GDISP + +/*===========================================================================*/ +/* Driver hardware support. */ +/*===========================================================================*/ + +#define GDISP_DRIVER_NAME "HVGA_X81" + +#define GDISP_HARDWARE_CLEARS TRUE +#define GDISP_HARDWARE_FILLS TRUE +#define GDISP_HARDWARE_BITFILLS TRUE +#define GDISP_HARDWARE_SCROLL TRUE +#define GDISP_HARDWARE_PIXELREAD TRUE +#define GDISP_HARDWARE_CONTROL TRUE + +#define GDISP_PIXELFORMAT GDISP_PIXELFORMAT_RGB565 + +#endif /* GFX_USE_GDISP */ + +#endif /* _GDISP_LLD_CONFIG_H */ +/** @} */ diff --git a/drivers/gdisp/HVGA_X81/readme.txt b/drivers/gdisp/HVGA_X81/readme.txt new file mode 100644 index 00000000..b4236b88 --- /dev/null +++ b/drivers/gdisp/HVGA_X81/readme.txt @@ -0,0 +1,15 @@ +To use this driver: + +1. Add in your halconf.h: + a) #define GFX_USE_GDISP TRUE + + b) Any optional high level driver defines (see gdisp.h) eg: GDISP_NEED_MULTITHREAD + + c) If you are not using a known board then create a gdisp_lld_board.h file + and ensure it is on your include path. + Use the gdisp_lld_board_example.h or gdisp_lld_board_fsmc.h file as a basis. + Currently known boards are: + BOARD_FIREBULL_STM32_F103 - GPIO interface: requires GDISP_CMD_PORT and GDISP_DATA_PORT to be defined + +2. To your makefile add the following lines: + include $(GFXLIB)/drivers/gdisp/HVGA_X81/gdisp_lld.mk -- cgit v1.2.3 From 048a05790235acb338a35ffc7663cbcddc26457a Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 30 Apr 2013 17:47:25 +0700 Subject: Renamed HVGA_X81 to ILI9481 --- drivers/gdisp/HVGA_X81/gdisp_lld.c | 621 --------------------- drivers/gdisp/HVGA_X81/gdisp_lld.mk | 5 - drivers/gdisp/HVGA_X81/gdisp_lld_board_example.h | 126 ----- .../gdisp/HVGA_X81/gdisp_lld_board_example_fsmc.h | 165 ------ .../HVGA_X81/gdisp_lld_board_firebullstm32f103.h | 158 ------ drivers/gdisp/HVGA_X81/gdisp_lld_config.h | 53 -- drivers/gdisp/HVGA_X81/readme.txt | 15 - drivers/gdisp/ILI9481/gdisp_lld.c | 621 +++++++++++++++++++++ drivers/gdisp/ILI9481/gdisp_lld.mk | 5 + drivers/gdisp/ILI9481/gdisp_lld_board_example.h | 126 +++++ .../gdisp/ILI9481/gdisp_lld_board_example_fsmc.h | 165 ++++++ .../ILI9481/gdisp_lld_board_firebullstm32f103.h | 158 ++++++ drivers/gdisp/ILI9481/gdisp_lld_config.h | 53 ++ drivers/gdisp/ILI9481/readme.txt | 15 + 14 files changed, 1143 insertions(+), 1143 deletions(-) delete mode 100644 drivers/gdisp/HVGA_X81/gdisp_lld.c delete mode 100644 drivers/gdisp/HVGA_X81/gdisp_lld.mk delete mode 100644 drivers/gdisp/HVGA_X81/gdisp_lld_board_example.h delete mode 100644 drivers/gdisp/HVGA_X81/gdisp_lld_board_example_fsmc.h delete mode 100644 drivers/gdisp/HVGA_X81/gdisp_lld_board_firebullstm32f103.h delete mode 100644 drivers/gdisp/HVGA_X81/gdisp_lld_config.h delete mode 100644 drivers/gdisp/HVGA_X81/readme.txt create mode 100644 drivers/gdisp/ILI9481/gdisp_lld.c create mode 100644 drivers/gdisp/ILI9481/gdisp_lld.mk create mode 100644 drivers/gdisp/ILI9481/gdisp_lld_board_example.h create mode 100644 drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h create mode 100644 drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h create mode 100644 drivers/gdisp/ILI9481/gdisp_lld_config.h create mode 100644 drivers/gdisp/ILI9481/readme.txt diff --git a/drivers/gdisp/HVGA_X81/gdisp_lld.c b/drivers/gdisp/HVGA_X81/gdisp_lld.c deleted file mode 100644 index e0cedad1..00000000 --- a/drivers/gdisp/HVGA_X81/gdisp_lld.c +++ /dev/null @@ -1,621 +0,0 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ - -/** - * @file drivers/gdisp/HVGA_X81/gdisp_lld.c - * @brief GDISP Graphics Driver subsystem low level driver source for - * the ILI9481 and compatible HVGA display - * - * @addtogroup GDISP - * @{ - */ - -#include "ch.h" -#include "hal.h" -#include "gfx.h" - -#if GFX_USE_GDISP /*|| defined(__DOXYGEN__)*/ - -/* Include the emulation code for things we don't support */ -#include "gdisp/lld/emulation.c" - -/*===========================================================================*/ -/* Driver local definitions. */ -/*===========================================================================*/ - -#if defined(GDISP_SCREEN_HEIGHT) - #warning "GDISP: This low level driver does not support setting a screen size. It is being ignored." - #undef GISP_SCREEN_HEIGHT -#endif -#if defined(GDISP_SCREEN_WIDTH) - #warning "GDISP: This low level driver does not support setting a screen size. It is being ignored." - #undef GDISP_SCREEN_WIDTH -#endif - -#define GDISP_SCREEN_HEIGHT 480 -#define GDISP_SCREEN_WIDTH 320 - -#define GDISP_INITIAL_CONTRAST 50 -#define GDISP_INITIAL_BACKLIGHT 100 - -/*===========================================================================*/ -/* Driver local functions. */ -/*===========================================================================*/ - -#if defined(GDISP_USE_CUSTOM_BOARD) && GDISP_USE_CUSTOM_BOARD - /* Include the user supplied board definitions */ - #include "gdisp_lld_board.h" -#elif defined(BOARD_FIREBULL_STM32_F103) - #include "gdisp_lld_board_firebullstm32f103.h" -#else - /* Include the user supplied board definitions */ - #include "gdisp_lld_board.h" -#endif - -// Some common routines and macros -#define write_reg(reg, data) { write_index(reg); write_data(data); } -#define stream_start() write_index(0x2C); -#define stream_stop() -#define delay(us) chThdSleepMicroseconds(us) -#define delayms(ms) chThdSleepMilliseconds(ms) - -static inline void set_cursor(coord_t x, coord_t y) { - write_index(0x2A); - write_data((x >> 8)); - write_data((uint8_t) x); - write_data((x) >> 8); - write_data((uint8_t) (x)); - - write_index(0x2B); - write_data((y >> 8)); - write_data((uint8_t) y); - write_data((y) >> 8); - write_data((uint8_t) (y)); -} - -static void set_viewport(coord_t x, coord_t y, coord_t cx, coord_t cy) { - write_index(0x2A); - write_data((x >> 8)); - write_data((uint8_t) x); - write_data((x + cx - 1) >> 8); - write_data((uint8_t) (x + cx - 1)); - - write_index(0x2B); - write_data((y >> 8)); - write_data((uint8_t) y); - write_data((y + cy - 1) >> 8); - write_data((uint8_t) (y + cy - 1)); -} - -static inline void reset_viewport(void) { - set_viewport(0, 0, GDISP.Width, GDISP.Height); -} - -/*===========================================================================*/ -/* Driver interrupt handlers. */ -/*===========================================================================*/ - -/*===========================================================================*/ -/* Driver exported functions. */ -/*===========================================================================*/ - -/* ---- Required Routines ---- */ -/* - The following 2 routines are required. - All other routines are optional. -*/ - -/** - * @brief Low level GDISP driver initialization. - * - * @notapi - */ -bool_t gdisp_lld_init(void) { - /* Initialise your display */ - init_board(); - - /* Hardware reset */ - setpin_reset(TRUE); - delayms(20); - setpin_reset(FALSE); - delayms(20); - - /* Get the bus for the following initialisation commands */ - acquire_bus(); - - /* Enable Access to all Manufacturer commands (0xB0 and higher opcodes) */ - write_index(0xB0); - write_data(0x00); - - /* Frame Memory Access and Interface Setting */ - write_index(0xB3); - write_data(0x02); - write_data(0x00); - write_data(0x00); - write_data(0x10); - - /* Display Mode and Frame Memory Write Mode Setting (B4h) */ - /* Use internal clock for synchronization */ - /* Use DBI interface (only DB0-17, no HSYNC, VSYNC or CLK) */ - write_index(0xB4); - write_data(0x00); - - /* Internal Backlight Control */ -/* write_index(0xB9); /*PWM Settings for Brightness Control */ -/* write_data(0x01); /* Disabled by default. */ -/* write_data(0xFF); /*0xFF = Max brightness */ -/* write_data(0xFF); -/* write_data(0x18); - - /* Panel Driving settings */ - write_index(0xC0); - write_data(0x03); - write_data(0x3B); - write_data(0x00); - write_data(0x00); - write_data(0x00); - write_data(0x01); - write_data(0x00); /* NW */ - write_data(0x43); - - /* Display timings in Operating Mode */ - write_index(0xC1); - write_data(0x08); - write_data(0x15); /* CLOCK */ - write_data(0x08); - write_data(0x08); - - /* S/VCOM/Gate Driving timing setting */ - write_index(0xC4); - write_data(0x15); - write_data(0x03); - write_data(0x03); - write_data(0x01); - - /* Interface Setting */ - write_index(0xC6); - write_data(0x02); - - /* Gamma Setting - should be changed if using a different panel */ - write_index(0xC8); - write_data(0x0C); - write_data(0x05); - write_data(0x0A); /*0X12 */ - write_data(0x6B); /*0x7D */ - write_data(0x04); - write_data(0x06); /*0x08 */ - write_data(0x15); /*0x0A */ - write_data(0x10); - write_data(0x00); - write_data(0x60); /*0x23 */ - - /* Address Mode setting */ - write_index(0x36); - write_data(0x00); - - /* Set Pixel Format = 16 bits per pixel */ - /* The driver supports upto 24 bits per pixel, with dither */ - write_index(0x3A); - write_data(0x55); - - /* Exit Idle Mode */ - write_index(0x38); - - /* Power Setting */ - write_index(0xD0); - write_data(0x07); - write_data(0x07); /* VCI = VCI1 */ - write_data(0x14); /* VRH 0x1D */ - write_data(0xA2); /* BT 0x06 */ - - /* VCOM Setting */ - write_index(0xD1); - write_data(0x03); - write_data(0x5A); /* VCM 0x5A */ - write_data(0x10); /* VDV */ - - /* Power Setting for Normal Mode */ - write_index(0xD2); - write_data(0x03); - write_data(0x04); /* 0x24 */ - write_data(0x04); - - /* Exit Sleep Mode */ - write_index(0x11); - delay(150); - - /* Display ON */ - write_index(0x29); - delay(30); - - /* Release the bus */ - release_bus(); - - /* Turn on the back-light */ - set_backlight(GDISP_INITIAL_BACKLIGHT); - - /* Initialise the GDISP structure */ - GDISP.Width = GDISP_SCREEN_WIDTH; - GDISP.Height = GDISP_SCREEN_HEIGHT; - GDISP.Orientation = GDISP_ROTATE_0; - GDISP.Powermode = powerOn; - GDISP.Backlight = GDISP_INITIAL_BACKLIGHT; - GDISP.Contrast = GDISP_INITIAL_CONTRAST; - #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP - GDISP.clipx0 = 0; - GDISP.clipy0 = 0; - GDISP.clipx1 = GDISP.Width; - GDISP.clipy1 = GDISP.Height; - #endif - return TRUE; -} - -/** - * @brief Draws a pixel on the display. - * - * @param[in] x X location of the pixel - * @param[in] y Y location of the pixel - * @param[in] color The color of the pixel - * - * @notapi - */ -void gdisp_lld_draw_pixel(coord_t x, coord_t y, color_t color) { - #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP - if (x < GDISP.clipx0 || y < GDISP.clipy0 || x >= GDISP.clipx1 || y >= GDISP.clipy1) return; - #endif - - acquire_bus(); - - set_cursor(x, y); - write_reg(0x002c, color); - - release_bus(); -} - -/* ---- Optional Routines ---- */ -/* - All the below routines are optional. - Defining them will increase speed but everything - will work if they are not defined. - If you are not using a routine - turn it off using - the appropriate GDISP_HARDWARE_XXXX macro. - Don't bother coding for obvious similar routines if - there is no performance penalty as the emulation software - makes a good job of using similar routines. - eg. If gfillarea() is defined there is little - point in defining clear() unless the - performance bonus is significant. - For good performance it is suggested to implement - fillarea() and blitarea(). -*/ - -#if GDISP_HARDWARE_CLEARS || defined(__DOXYGEN__) - /** - * @brief Clear the display. - * @note Optional - The high level driver can emulate using software. - * - * @param[in] color The color of the pixel - * - * @notapi - */ - void gdisp_lld_clear(color_t color) { - unsigned i; - - acquire_bus(); - reset_viewport(); - stream_start(); - for(i = 0; i < GDISP_SCREEN_WIDTH * GDISP_SCREEN_HEIGHT; i++) - write_data(color); - stream_stop(); - release_bus(); - } -#endif - -#if GDISP_HARDWARE_FILLS || defined(__DOXYGEN__) - /** - * @brief Fill an area with a color. - * @note Optional - The high level driver can emulate using software. - * - * @param[in] x, y The start filled area - * @param[in] cx, cy The width and height to be filled - * @param[in] color The color of the fill - * - * @notapi - */ - void gdisp_lld_fill_area(coord_t x, coord_t y, coord_t cx, coord_t cy, color_t color) { - unsigned i, area; - - #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP - if (x < GDISP.clipx0) { cx -= GDISP.clipx0 - x; x = GDISP.clipx0; } - if (y < GDISP.clipy0) { cy -= GDISP.clipy0 - y; y = GDISP.clipy0; } - if (cx <= 0 || cy <= 0 || x >= GDISP.clipx1 || y >= GDISP.clipy1) return; - if (x+cx > GDISP.clipx1) cx = GDISP.clipx1 - x; - if (y+cy > GDISP.clipy1) cy = GDISP.clipy1 - y; - #endif - - area = cx*cy; - - acquire_bus(); - - set_viewport(x, y, cx, cy); - - stream_start(); - for(i = 0; i < area; i++) - write_data(color); - stream_stop(); - - release_bus(); - } -#endif - -#if GDISP_HARDWARE_BITFILLS || defined(__DOXYGEN__) - /** - * @brief Fill an area with a bitmap. - * @note Optional - The high level driver can emulate using software. - * - * @param[in] x, y The start filled area - * @param[in] cx, cy The width and height to be filled - * @param[in] srcx, srcy The bitmap position to start the fill from - * @param[in] srccx The width of a line in the bitmap. - * @param[in] buffer The pixels to use to fill the area. - * - * @notapi - */ - void gdisp_lld_blit_area_ex(coord_t x, coord_t y, coord_t cx, coord_t cy, coord_t srcx, coord_t srcy, coord_t srccx, const pixel_t *buffer) { - coord_t endx, endy; - unsigned lg; - - #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP - if (x < GDISP.clipx0) { cx -= GDISP.clipx0 - x; srcx += GDISP.clipx0 - x; x = GDISP.clipx0; } - if (y < GDISP.clipy0) { cy -= GDISP.clipy0 - y; srcy += GDISP.clipy0 - y; y = GDISP.clipy0; } - if (srcx+cx > srccx) cx = srccx - srcx; - if (cx <= 0 || cy <= 0 || x >= GDISP.clipx1 || y >= GDISP.clipy1) return; - if (x+cx > GDISP.clipx1) cx = GDISP.clipx1 - x; - if (y+cy > GDISP.clipy1) cy = GDISP.clipy1 - y; - #endif - - acquire_bus(); - set_viewport(x, y, cx, cy); - stream_start(); - - endx = srcx + cx; - endy = y + cy; - lg = srccx - cx; - buffer += srcx + srcy * srccx; - for(; y < endy; y++, buffer += lg) - for(x=srcx; x < endx; x++) - write_data(*buffer++); - stream_stop(); - release_bus(); - } -#endif - -#if (GDISP_NEED_PIXELREAD && GDISP_HARDWARE_PIXELREAD) || defined(__DOXYGEN__) - /** - * @brief Get the color of a particular pixel. - * @note Optional. - * @note If x,y is off the screen, the result is undefined. - * - * @param[in] x, y The pixel to be read - * - * @notapi - */ - color_t gdisp_lld_get_pixel_color(coord_t x, coord_t y) { - color_t color; - - #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP - if (x < 0 || x >= GDISP.Width || y < 0 || y >= GDISP.Height) return 0; - #endif - - acquire_bus(); - set_cursor(x, y); - stream_start(); - color = read_data(); // dummy read - color = read_data(); - stream_stop(); - release_bus(); - - return color; - } -#endif - -#if (GDISP_NEED_SCROLL && GDISP_HARDWARE_SCROLL) || defined(__DOXYGEN__) - /** - * @brief Scroll vertically a section of the screen. - * @note Optional. - * @note If x,y + cx,cy is off the screen, the result is undefined. - * @note If lines is >= cy, it is equivelent to a area fill with bgcolor. - * - * @param[in] x, y The start of the area to be scrolled - * @param[in] cx, cy The size of the area to be scrolled - * @param[in] lines The number of lines to scroll (Can be positive or negative) - * @param[in] bgcolor The color to fill the newly exposed area. - * - * @notapi - */ - void gdisp_lld_vertical_scroll(coord_t x, coord_t y, coord_t cx, coord_t cy, int lines, color_t bgcolor) { - static color_t buf[((GDISP_SCREEN_HEIGHT > GDISP_SCREEN_WIDTH ) ? GDISP_SCREEN_HEIGHT : GDISP_SCREEN_WIDTH)]; - coord_t row0, row1; - unsigned i, gap, abslines, j; - - #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP - if (x < GDISP.clipx0) { cx -= GDISP.clipx0 - x; x = GDISP.clipx0; } - if (y < GDISP.clipy0) { cy -= GDISP.clipy0 - y; y = GDISP.clipy0; } - if (!lines || cx <= 0 || cy <= 0 || x >= GDISP.clipx1 || y >= GDISP.clipy1) return; - if (x+cx > GDISP.clipx1) cx = GDISP.clipx1 - x; - if (y+cy > GDISP.clipy1) cy = GDISP.clipy1 - y; - #endif - - abslines = lines < 0 ? -lines : lines; - - acquire_bus(); - if ((coord_t)abslines >= cy) { - abslines = cy; - gap = 0; - } else { - gap = cy - abslines; - for(i = 0; i < gap; i++) { - if(lines > 0) { - row0 = y + i + lines; - row1 = y + i; - } else { - row0 = (y - i - 1) + lines; - row1 = (y - i - 1); - } - - /* read row0 into the buffer and then write at row1*/ - set_viewport(x, row0, cx, 1); - stream_start(); - j = read_data(); // dummy read - for (j = 0; (coord_t)j < cx; j++) - buf[j] = read_data(); - stream_stop(); - - set_viewport(x, row1, cx, 1); - stream_start(); - for (j = 0; (coord_t)j < cx; j++) - write_data(buf[j]); - stream_stop(); - } - } - - /* fill the remaining gap */ - set_viewport(x, lines > 0 ? (y+(coord_t)gap) : y, cx, abslines); - stream_start(); - gap = cx*abslines; - for(i = 0; i < gap; i++) write_data(bgcolor); - stream_stop(); - release_bus(); - } -#endif - -#if (GDISP_NEED_CONTROL && GDISP_HARDWARE_CONTROL) || defined(__DOXYGEN__) - /** - * @brief Driver Control - * @details Unsupported control codes are ignored. - * @note The value parameter should always be typecast to (void *). - * @note There are some predefined and some specific to the low level driver. - * @note GDISP_CONTROL_POWER - Takes a gdisp_powermode_t - * GDISP_CONTROL_ORIENTATION - Takes a gdisp_orientation_t - * GDISP_CONTROL_BACKLIGHT - Takes an int from 0 to 100. For a driver - * that only supports off/on anything other - * than zero is on. - * GDISP_CONTROL_CONTRAST - Takes an int from 0 to 100. - * GDISP_CONTROL_LLD - Low level driver control constants start at - * this value. - * - * @param[in] what What to do. - * @param[in] value The value to use (always cast to a void *). - * - * @notapi - */ - void gdisp_lld_control(unsigned what, void *value) { - switch(what) { - case GDISP_CONTROL_POWER: - if (GDISP.Powermode == (gdisp_powermode_t)value) - return; - switch((gdisp_powermode_t)value) { - case powerOff: - acquire_bus(); - write_reg(0x0010, 0x0001); /* enter sleep mode */ - release_bus(); - break; - case powerOn: - acquire_bus(); - write_reg(0x0010, 0x0000); /* leave sleep mode */ - release_bus(); - if (GDISP.Powermode != powerSleep) - gdisp_lld_init(); - break; - case powerSleep: - acquire_bus(); - write_reg(0x0010, 0x0001); /* enter sleep mode */ - release_bus(); - break; - default: - return; - } - GDISP.Powermode = (gdisp_powermode_t)value; - return; - case GDISP_CONTROL_ORIENTATION: - if (GDISP.Orientation == (gdisp_orientation_t)value) - return; - switch((gdisp_orientation_t)value) { - case GDISP_ROTATE_0: - acquire_bus(); - - write_reg(0xC0, 0x03); - write_reg(0x36, 0x00); /* X and Y axes non-inverted */ - - release_bus(); - GDISP.Height = GDISP_SCREEN_HEIGHT; - GDISP.Width = GDISP_SCREEN_WIDTH; - break; - case GDISP_ROTATE_90: - acquire_bus(); - - write_reg(0xC0, 0x02); - write_reg(0x36, 0x20); /* Invert X and Y axes */ - - release_bus(); - GDISP.Height = GDISP_SCREEN_WIDTH; - GDISP.Width = GDISP_SCREEN_HEIGHT; - break; - case GDISP_ROTATE_180: - acquire_bus(); - - write_reg(0xC0, 0x06); - write_reg(0x36, 0x00); /* X and Y axes non-inverted */ - - release_bus(); - GDISP.Height = GDISP_SCREEN_HEIGHT; - GDISP.Width = GDISP_SCREEN_WIDTH; - break; - case GDISP_ROTATE_270: - acquire_bus(); - - write_reg(0xC0, 0x07); - write_reg(0x36, 0x20); /* Invert X and Y axes */ - - release_bus(); - GDISP.Height = GDISP_SCREEN_WIDTH; - GDISP.Width = GDISP_SCREEN_HEIGHT; - break; - default: - return; - } - #if GDISP_NEED_CLIP || GDISP_NEED_VALIDATION - GDISP.clipx0 = 0; - GDISP.clipy0 = 0; - GDISP.clipx1 = GDISP.Width; - GDISP.clipy1 = GDISP.Height; - #endif - GDISP.Orientation = (gdisp_orientation_t)value; - return; -/* - case GDISP_CONTROL_BACKLIGHT: - case GDISP_CONTROL_CONTRAST: -*/ - } - } -#endif - -#endif /* GFX_USE_GDISP */ -/** @} */ diff --git a/drivers/gdisp/HVGA_X81/gdisp_lld.mk b/drivers/gdisp/HVGA_X81/gdisp_lld.mk deleted file mode 100644 index a097e0c5..00000000 --- a/drivers/gdisp/HVGA_X81/gdisp_lld.mk +++ /dev/null @@ -1,5 +0,0 @@ -# List the required driver. -GFXSRC += $(GFXLIB)/drivers/gdisp/HVGA_X81/gdisp_lld.c - -# Required include directories -GFXINC += $(GFXLIB)/drivers/gdisp/HVGA_X81 diff --git a/drivers/gdisp/HVGA_X81/gdisp_lld_board_example.h b/drivers/gdisp/HVGA_X81/gdisp_lld_board_example.h deleted file mode 100644 index 2c81c906..00000000 --- a/drivers/gdisp/HVGA_X81/gdisp_lld_board_example.h +++ /dev/null @@ -1,126 +0,0 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ - -/** - * @file drivers/gdisp/HVGA_X81/gdisp_lld_board_example.h - * @brief GDISP Graphics Driver subsystem low level driver source for - * the ILI9481 and compatible HVGA display - * - * @addtogroup GDISP - * @{ - */ - -#ifndef _GDISP_LLD_BOARD_H -#define _GDISP_LLD_BOARD_H - -/** - * @brief Initialise the board for the display. - * - * @notapi - */ -static inline void init_board(void) { - /* Code here */ -#error "HVGA_X81: You must supply a definition for init_board for your board" -} - -/** - * @brief Set or clear the lcd reset pin. - * - * @param[in] state TRUE = lcd in reset, FALSE = normal operation - * - * @notapi - */ -static inline void setpin_reset(bool_t state) { - /* Code here */ -#error "HVGA_X81: You must supply a definition for setpin_reset for your board" -} - -/** - * @brief Set the lcd back-light level. - * - * @param[in] percent 0 to 100% - * - * @notapi - */ -static inline void set_backlight(uint8_t percent) { - /* Code here */ -#error "HVGA_X81: You must supply a definition for set_backlight for your board" -} - -/** - * @brief Take exclusive control of the bus - * - * @notapi - */ -static inline void acquire_bus(void) { -#error "HVGA_X81: You must supply a definition for acquire_bus for your board" -} - -/** - * @brief Release exclusive control of the bus - * - * @notapi - */ -static inline void release_bus(void) { -#error "HVGA_X81: You must supply a definition for release_bus for your board" -} - -/** - * @brief Send data to the index register. - * - * @param[in] index The index register to set - * - * @notapi - */ -static inline void write_index(uint16_t index) { - /* Code here */ -#error "HVGA_X81: You must supply a definition for write_index for your board" -} - -/** - * @brief Send data to the lcd. - * - * @param[in] data The data to send - * - * @notapi - */ -static inline void write_data(uint16_t data) { - /* Code here */ -#error "HVGA_X81: You must supply a definition for write_data for your board" -} - -#if GDISP_HARDWARE_READPIXEL || GDISP_HARDWARE_SCROLL || defined(__DOXYGEN__) -/** - * @brief Read data from the lcd. - * - * @return The data from the lcd - * @note The chip select may need to be asserted/de-asserted - * around the actual spi read - * - * @notapi - */ -static inline uint16_t read_data(void) { - /* Code here */ -#error "HVGA_X81: You must supply a definition for read_data for your board" -} -#endif - -#endif /* _GDISP_LLD_BOARD_H */ -/** @} */ diff --git a/drivers/gdisp/HVGA_X81/gdisp_lld_board_example_fsmc.h b/drivers/gdisp/HVGA_X81/gdisp_lld_board_example_fsmc.h deleted file mode 100644 index 8367b53c..00000000 --- a/drivers/gdisp/HVGA_X81/gdisp_lld_board_example_fsmc.h +++ /dev/null @@ -1,165 +0,0 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ - -/** - * @file drivers/gdisp/HVGA_X81/gdisp_lld_board_example_fsmc.h - * @brief GDISP Graphics Driver subsystem low level driver source for - * the ILI9481 and compatible HVGA display - * - * @addtogroup GDISP - * @{ - */ - -#ifndef _GDISP_LLD_BOARD_H -#define _GDISP_LLD_BOARD_H - -#define GDISP_REG ((volatile uint16_t *) 0x60000000)[0] /* RS = 0 */ -#define GDISP_RAM ((volatile uint16_t *) 0x60020000)[0] /* RS = 1 */ - -/** - * @brief Initialise the board for the display. - * @notes Performs the following functions: - * 1. initialise the io port used by your display - * 2. initialise the reset pin (initial state not-in-reset) - * 3. initialise the chip select pin (initial state not-active) - * 4. initialise the backlight pin (initial state back-light off) - * - * @notapi - */ -static inline void init_board(void) { - const unsigned char FSMC_Bank; - - #if defined(STM32F1XX) || defined(STM32F3XX) - /* FSMC setup for F1/F3 */ - rccEnableAHB(RCC_AHBENR_FSMCEN, 0); - - #if defined(GDISP_USE_DMA) && defined(GDISP_DMA_STREAM) - #error "DMA not implemented for F1/F3 Devices" - #endif - #elif defined(STM32F4XX) || defined(STM32F2XX) - /* STM32F2-F4 FSMC init */ - rccEnableAHB3(RCC_AHB3ENR_FSMCEN, 0); - - #if defined(GDISP_USE_DMA) && defined(GDISP_DMA_STREAM) - if (dmaStreamAllocate(GDISP_DMA_STREAM, 0, NULL, NULL)) chSysHalt(); - dmaStreamSetMemory0(GDISP_DMA_STREAM, &GDISP_RAM); - dmaStreamSetMode(GDISP_DMA_STREAM, STM32_DMA_CR_PL(0) | STM32_DMA_CR_PSIZE_HWORD | STM32_DMA_CR_MSIZE_HWORD | STM32_DMA_CR_DIR_M2M); - #endif - #else - #error "FSMC not implemented for this device" - #endif - - /* set pins to FSMC mode */ - IOBus busD = {GPIOD, (1 << 0) | (1 << 1) | (1 << 4) | (1 << 5) | (1 << 7) | (1 << 8) | - (1 << 9) | (1 << 10) | (1 << 11) | (1 << 14) | (1 << 15), 0}; - - IOBus busE = {GPIOE, (1 << 7) | (1 << 8) | (1 << 9) | (1 << 10) | (1 << 11) | (1 << 12) | - (1 << 13) | (1 << 14) | (1 << 15), 0}; - - palSetBusMode(&busD, PAL_MODE_ALTERNATE(12)); - palSetBusMode(&busE, PAL_MODE_ALTERNATE(12)); - - FSMC_Bank = 0; - - /* FSMC timing */ - FSMC_Bank1->BTCR[FSMC_Bank+1] = (FSMC_BTR1_ADDSET_1 | FSMC_BTR1_ADDSET_3) \ - | (FSMC_BTR1_DATAST_1 | FSMC_BTR1_DATAST_3) \ - | (FSMC_BTR1_BUSTURN_1 | FSMC_BTR1_BUSTURN_3) ; - - /* Bank1 NOR/SRAM control register configuration - * This is actually not needed as already set by default after reset */ - FSMC_Bank1->BTCR[FSMC_Bank] = FSMC_BCR1_MWID_0 | FSMC_BCR1_WREN | FSMC_BCR1_MBKEN; -} - -/** - * @brief Set or clear the lcd reset pin. - * - * @param[in] state TRUE = lcd in reset, FALSE = normal operation - * - * @notapi - */ -static inline void setpin_reset(bool_t state) { - (void) state; - /* Nothing to do here */ -} - -/** - * @brief Set the lcd back-light level. - * - * @param[in] percent 0 to 100% - * - * @notapi - */ -static inline void set_backlight(uint8_t percent) { - (void) percent; - /* Nothing to do here */ -} - -/** - * @brief Take exclusive control of the bus - * - * @notapi - */ -static inline void acquire_bus(void) { - /* Nothing to do here */ -} - -/** - * @brief Release exclusive control of the bus - * - * @notapi - */ -static inline void release_bus(void) { - /* Nothing to do here */ -} - -/** - * @brief Send data to the index register. - * - * @param[in] index The index register to set - * - * @notapi - */ -static inline void write_index(uint16_t index) { GDISP_REG = index; } - -/** - * @brief Send data to the lcd. - * - * @param[in] data The data to send - * - * @notapi - */ -static inline void write_data(uint16_t data) { GDISP_RAM = data; } - -#if GDISP_HARDWARE_READPIXEL || GDISP_HARDWARE_SCROLL || defined(__DOXYGEN__) -/** - * @brief Read data from the lcd. - * - * @return The data from the lcd - * @note The chip select may need to be asserted/de-asserted - * around the actual spi read - * - * @notapi - */ -static inline uint16_t read_data(void) { return GDISP_RAM; } -#endif - -#endif /* _GDISP_LLD_BOARD_H */ -/** @} */ diff --git a/drivers/gdisp/HVGA_X81/gdisp_lld_board_firebullstm32f103.h b/drivers/gdisp/HVGA_X81/gdisp_lld_board_firebullstm32f103.h deleted file mode 100644 index 176e8452..00000000 --- a/drivers/gdisp/HVGA_X81/gdisp_lld_board_firebullstm32f103.h +++ /dev/null @@ -1,158 +0,0 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ - -/** - * @file drivers/gdisp/HVGA_X81/gdisp_lld_board_firebullstm32f103.h - * @brief GDISP Graphics Driver subsystem low level driver source for - * the ILI9481 and compatible HVGA display - * - * @addtogroup GDISP - * @{ - */ - -#ifndef _GDISP_LLD_BOARD_H -#define _GDISP_LLD_BOARD_H - -#define SET_CS palSetPad(GPIOD, 12); -#define CLR_CS palClearPad(GPIOD, 12); -#define SET_RS palSetPad(GPIOD, 13); -#define CLR_RS palClearPad(GPIOD, 13); -#define SET_WR palSetPad(GPIOD, 14); -#define CLR_WR palClearPad(GPIOD, 14); -#define SET_RD palSetPad(GPIOD, 15); -#define CLR_RD palClearPad(GPIOD, 15); - -/** - * @brief Initialise the board for the display. - * @notes This board definition uses GPIO and assumes exclusive access to these GPIO pins - * - * @notapi - */ -static inline void init_board(void) { - palSetGroupMode(GPIOE, PAL_WHOLE_PORT, 0, PAL_MODE_OUTPUT_PUSHPULL); - palSetPadMode(GPIOD, 12, PAL_MODE_OUTPUT_PUSHPULL); - palSetPadMode(GPIOD, 13, PAL_MODE_OUTPUT_PUSHPULL); - palSetPadMode(GPIOD, 14, PAL_MODE_OUTPUT_PUSHPULL); - palSetPadMode(GPIOD, 15, PAL_MODE_OUTPUT_PUSHPULL); - - // Configure the pins to a well know state - SET_RS; - SET_RD; - SET_WR; - CLR_CS; -} - - -/** - * @brief Set or clear the lcd reset pin. - * - * @param[in] state TRUE = lcd in reset, FALSE = normal operation - * - * @notapi - */ -static inline void setpin_reset(bool_t state) { - (void) state; - /* Nothing to do here - reset pin tied to Vcc */ -} - -/** - * @brief Set the lcd back-light level. - * - * @param[in] percent 0 to 100% - * - * @notapi - */ -static inline void set_backlight(uint8_t percent) { - (void) percent; - /* Nothing to do here - Backlight always on */ -} - -/** - * @brief Take exclusive control of the bus - * - * @notapi - */ -static inline void acquire_bus(void) { - /* Nothing to do here since LCD is the only device on that bus */ -} - -/** - * @brief Release exclusive control of the bus - * - * @notapi - */ -static inline void release_bus(void) { - /* Nothing to do here since LCD is the only device on that bus */ -} - -/** - * @brief Send data to the index register. - * - * @param[in] index The index register to set - * - * @notapi - */ -static inline void write_index(uint16_t index) { - palWritePort(GPIOE, index); - CLR_RS; CLR_WR; SET_WR; SET_RS; -} - -/** - * @brief Send data to the lcd. - * - * @param[in] data The data to send - * - * @notapi - */ -static inline void write_data(uint16_t data) { - palWritePort(GPIOE, data); - CLR_WR; SET_WR; -} - -#if GDISP_HARDWARE_READPIXEL || GDISP_HARDWARE_SCROLL || defined(__DOXYGEN__) -/** - * @brief Read data from the lcd. - * - * @return The data from the lcd - * @note The chip select may need to be asserted/de-asserted - * around the actual spi read - * - * @notapi - */ -static inline uint16_t read_data(void) { - uint16_t value; - - // change pin mode to digital input - palSetGroupMode(GPIOE, PAL_WHOLE_PORT, 0, PAL_MODE_INPUT); - - CLR_RD; - value = palReadPort(GPIOE); - value = palReadPort(GPIOE); - SET_RD; - - // change pin mode back to digital output - palSetGroupMode(GPIOE, PAL_WHOLE_PORT, 0, PAL_MODE_OUTPUT_PUSHPULL); - - return value; -} -#endif - -#endif /* _GDISP_LLD_BOARD_H */ -/** @} */ diff --git a/drivers/gdisp/HVGA_X81/gdisp_lld_config.h b/drivers/gdisp/HVGA_X81/gdisp_lld_config.h deleted file mode 100644 index a9dd8659..00000000 --- a/drivers/gdisp/HVGA_X81/gdisp_lld_config.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ - -/** - * @file drivers/gdisp/SSD1289/gdisp_lld_config.h - * @brief GDISP Graphics Driver subsystem low level driver source for - * the ILI9481 and compatible HVGA display - * - * @addtogroup GDISP - * @{ - */ - -#ifndef _GDISP_LLD_CONFIG_H -#define _GDISP_LLD_CONFIG_H - -#if GFX_USE_GDISP - -/*===========================================================================*/ -/* Driver hardware support. */ -/*===========================================================================*/ - -#define GDISP_DRIVER_NAME "HVGA_X81" - -#define GDISP_HARDWARE_CLEARS TRUE -#define GDISP_HARDWARE_FILLS TRUE -#define GDISP_HARDWARE_BITFILLS TRUE -#define GDISP_HARDWARE_SCROLL TRUE -#define GDISP_HARDWARE_PIXELREAD TRUE -#define GDISP_HARDWARE_CONTROL TRUE - -#define GDISP_PIXELFORMAT GDISP_PIXELFORMAT_RGB565 - -#endif /* GFX_USE_GDISP */ - -#endif /* _GDISP_LLD_CONFIG_H */ -/** @} */ diff --git a/drivers/gdisp/HVGA_X81/readme.txt b/drivers/gdisp/HVGA_X81/readme.txt deleted file mode 100644 index b4236b88..00000000 --- a/drivers/gdisp/HVGA_X81/readme.txt +++ /dev/null @@ -1,15 +0,0 @@ -To use this driver: - -1. Add in your halconf.h: - a) #define GFX_USE_GDISP TRUE - - b) Any optional high level driver defines (see gdisp.h) eg: GDISP_NEED_MULTITHREAD - - c) If you are not using a known board then create a gdisp_lld_board.h file - and ensure it is on your include path. - Use the gdisp_lld_board_example.h or gdisp_lld_board_fsmc.h file as a basis. - Currently known boards are: - BOARD_FIREBULL_STM32_F103 - GPIO interface: requires GDISP_CMD_PORT and GDISP_DATA_PORT to be defined - -2. To your makefile add the following lines: - include $(GFXLIB)/drivers/gdisp/HVGA_X81/gdisp_lld.mk diff --git a/drivers/gdisp/ILI9481/gdisp_lld.c b/drivers/gdisp/ILI9481/gdisp_lld.c new file mode 100644 index 00000000..2ea8c6e7 --- /dev/null +++ b/drivers/gdisp/ILI9481/gdisp_lld.c @@ -0,0 +1,621 @@ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ + +/** + * @file drivers/gdisp/ILI9481/gdisp_lld.c + * @brief GDISP Graphics Driver subsystem low level driver source for + * the ILI9481 and compatible HVGA display + * + * @addtogroup GDISP + * @{ + */ + +#include "ch.h" +#include "hal.h" +#include "gfx.h" + +#if GFX_USE_GDISP /*|| defined(__DOXYGEN__)*/ + +/* Include the emulation code for things we don't support */ +#include "gdisp/lld/emulation.c" + +/*===========================================================================*/ +/* Driver local definitions. */ +/*===========================================================================*/ + +#if defined(GDISP_SCREEN_HEIGHT) + #warning "GDISP: This low level driver does not support setting a screen size. It is being ignored." + #undef GISP_SCREEN_HEIGHT +#endif +#if defined(GDISP_SCREEN_WIDTH) + #warning "GDISP: This low level driver does not support setting a screen size. It is being ignored." + #undef GDISP_SCREEN_WIDTH +#endif + +#define GDISP_SCREEN_HEIGHT 480 +#define GDISP_SCREEN_WIDTH 320 + +#define GDISP_INITIAL_CONTRAST 50 +#define GDISP_INITIAL_BACKLIGHT 100 + +/*===========================================================================*/ +/* Driver local functions. */ +/*===========================================================================*/ + +#if defined(GDISP_USE_CUSTOM_BOARD) && GDISP_USE_CUSTOM_BOARD + /* Include the user supplied board definitions */ + #include "gdisp_lld_board.h" +#elif defined(BOARD_FIREBULL_STM32_F103) + #include "gdisp_lld_board_firebullstm32f103.h" +#else + /* Include the user supplied board definitions */ + #include "gdisp_lld_board.h" +#endif + +// Some common routines and macros +#define write_reg(reg, data) { write_index(reg); write_data(data); } +#define stream_start() write_index(0x2C); +#define stream_stop() +#define delay(us) chThdSleepMicroseconds(us) +#define delayms(ms) chThdSleepMilliseconds(ms) + +static inline void set_cursor(coord_t x, coord_t y) { + write_index(0x2A); + write_data((x >> 8)); + write_data((uint8_t) x); + write_data((x) >> 8); + write_data((uint8_t) (x)); + + write_index(0x2B); + write_data((y >> 8)); + write_data((uint8_t) y); + write_data((y) >> 8); + write_data((uint8_t) (y)); +} + +static void set_viewport(coord_t x, coord_t y, coord_t cx, coord_t cy) { + write_index(0x2A); + write_data((x >> 8)); + write_data((uint8_t) x); + write_data((x + cx - 1) >> 8); + write_data((uint8_t) (x + cx - 1)); + + write_index(0x2B); + write_data((y >> 8)); + write_data((uint8_t) y); + write_data((y + cy - 1) >> 8); + write_data((uint8_t) (y + cy - 1)); +} + +static inline void reset_viewport(void) { + set_viewport(0, 0, GDISP.Width, GDISP.Height); +} + +/*===========================================================================*/ +/* Driver interrupt handlers. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Driver exported functions. */ +/*===========================================================================*/ + +/* ---- Required Routines ---- */ +/* + The following 2 routines are required. + All other routines are optional. +*/ + +/** + * @brief Low level GDISP driver initialization. + * + * @notapi + */ +bool_t gdisp_lld_init(void) { + /* Initialise your display */ + init_board(); + + /* Hardware reset */ + setpin_reset(TRUE); + delayms(20); + setpin_reset(FALSE); + delayms(20); + + /* Get the bus for the following initialisation commands */ + acquire_bus(); + + /* Enable Access to all Manufacturer commands (0xB0 and higher opcodes) */ + write_index(0xB0); + write_data(0x00); + + /* Frame Memory Access and Interface Setting */ + write_index(0xB3); + write_data(0x02); + write_data(0x00); + write_data(0x00); + write_data(0x10); + + /* Display Mode and Frame Memory Write Mode Setting (B4h) */ + /* Use internal clock for synchronization */ + /* Use DBI interface (only DB0-17, no HSYNC, VSYNC or CLK) */ + write_index(0xB4); + write_data(0x00); + + /* Internal Backlight Control */ +/* write_index(0xB9); /*PWM Settings for Brightness Control */ +/* write_data(0x01); /* Disabled by default. */ +/* write_data(0xFF); /*0xFF = Max brightness */ +/* write_data(0xFF); +/* write_data(0x18); + + /* Panel Driving settings */ + write_index(0xC0); + write_data(0x03); + write_data(0x3B); + write_data(0x00); + write_data(0x00); + write_data(0x00); + write_data(0x01); + write_data(0x00); /* NW */ + write_data(0x43); + + /* Display timings in Operating Mode */ + write_index(0xC1); + write_data(0x08); + write_data(0x15); /* CLOCK */ + write_data(0x08); + write_data(0x08); + + /* S/VCOM/Gate Driving timing setting */ + write_index(0xC4); + write_data(0x15); + write_data(0x03); + write_data(0x03); + write_data(0x01); + + /* Interface Setting */ + write_index(0xC6); + write_data(0x02); + + /* Gamma Setting - should be changed if using a different panel */ + write_index(0xC8); + write_data(0x0C); + write_data(0x05); + write_data(0x0A); /*0X12 */ + write_data(0x6B); /*0x7D */ + write_data(0x04); + write_data(0x06); /*0x08 */ + write_data(0x15); /*0x0A */ + write_data(0x10); + write_data(0x00); + write_data(0x60); /*0x23 */ + + /* Address Mode setting */ + write_index(0x36); + write_data(0x00); + + /* Set Pixel Format = 16 bits per pixel */ + /* The driver supports upto 24 bits per pixel, with dither */ + write_index(0x3A); + write_data(0x55); + + /* Exit Idle Mode */ + write_index(0x38); + + /* Power Setting */ + write_index(0xD0); + write_data(0x07); + write_data(0x07); /* VCI = VCI1 */ + write_data(0x14); /* VRH 0x1D */ + write_data(0xA2); /* BT 0x06 */ + + /* VCOM Setting */ + write_index(0xD1); + write_data(0x03); + write_data(0x5A); /* VCM 0x5A */ + write_data(0x10); /* VDV */ + + /* Power Setting for Normal Mode */ + write_index(0xD2); + write_data(0x03); + write_data(0x04); /* 0x24 */ + write_data(0x04); + + /* Exit Sleep Mode */ + write_index(0x11); + delay(150); + + /* Display ON */ + write_index(0x29); + delay(30); + + /* Release the bus */ + release_bus(); + + /* Turn on the back-light */ + set_backlight(GDISP_INITIAL_BACKLIGHT); + + /* Initialise the GDISP structure */ + GDISP.Width = GDISP_SCREEN_WIDTH; + GDISP.Height = GDISP_SCREEN_HEIGHT; + GDISP.Orientation = GDISP_ROTATE_0; + GDISP.Powermode = powerOn; + GDISP.Backlight = GDISP_INITIAL_BACKLIGHT; + GDISP.Contrast = GDISP_INITIAL_CONTRAST; + #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP + GDISP.clipx0 = 0; + GDISP.clipy0 = 0; + GDISP.clipx1 = GDISP.Width; + GDISP.clipy1 = GDISP.Height; + #endif + return TRUE; +} + +/** + * @brief Draws a pixel on the display. + * + * @param[in] x X location of the pixel + * @param[in] y Y location of the pixel + * @param[in] color The color of the pixel + * + * @notapi + */ +void gdisp_lld_draw_pixel(coord_t x, coord_t y, color_t color) { + #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP + if (x < GDISP.clipx0 || y < GDISP.clipy0 || x >= GDISP.clipx1 || y >= GDISP.clipy1) return; + #endif + + acquire_bus(); + + set_cursor(x, y); + write_reg(0x002c, color); + + release_bus(); +} + +/* ---- Optional Routines ---- */ +/* + All the below routines are optional. + Defining them will increase speed but everything + will work if they are not defined. + If you are not using a routine - turn it off using + the appropriate GDISP_HARDWARE_XXXX macro. + Don't bother coding for obvious similar routines if + there is no performance penalty as the emulation software + makes a good job of using similar routines. + eg. If gfillarea() is defined there is little + point in defining clear() unless the + performance bonus is significant. + For good performance it is suggested to implement + fillarea() and blitarea(). +*/ + +#if GDISP_HARDWARE_CLEARS || defined(__DOXYGEN__) + /** + * @brief Clear the display. + * @note Optional - The high level driver can emulate using software. + * + * @param[in] color The color of the pixel + * + * @notapi + */ + void gdisp_lld_clear(color_t color) { + unsigned i; + + acquire_bus(); + reset_viewport(); + stream_start(); + for(i = 0; i < GDISP_SCREEN_WIDTH * GDISP_SCREEN_HEIGHT; i++) + write_data(color); + stream_stop(); + release_bus(); + } +#endif + +#if GDISP_HARDWARE_FILLS || defined(__DOXYGEN__) + /** + * @brief Fill an area with a color. + * @note Optional - The high level driver can emulate using software. + * + * @param[in] x, y The start filled area + * @param[in] cx, cy The width and height to be filled + * @param[in] color The color of the fill + * + * @notapi + */ + void gdisp_lld_fill_area(coord_t x, coord_t y, coord_t cx, coord_t cy, color_t color) { + unsigned i, area; + + #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP + if (x < GDISP.clipx0) { cx -= GDISP.clipx0 - x; x = GDISP.clipx0; } + if (y < GDISP.clipy0) { cy -= GDISP.clipy0 - y; y = GDISP.clipy0; } + if (cx <= 0 || cy <= 0 || x >= GDISP.clipx1 || y >= GDISP.clipy1) return; + if (x+cx > GDISP.clipx1) cx = GDISP.clipx1 - x; + if (y+cy > GDISP.clipy1) cy = GDISP.clipy1 - y; + #endif + + area = cx*cy; + + acquire_bus(); + + set_viewport(x, y, cx, cy); + + stream_start(); + for(i = 0; i < area; i++) + write_data(color); + stream_stop(); + + release_bus(); + } +#endif + +#if GDISP_HARDWARE_BITFILLS || defined(__DOXYGEN__) + /** + * @brief Fill an area with a bitmap. + * @note Optional - The high level driver can emulate using software. + * + * @param[in] x, y The start filled area + * @param[in] cx, cy The width and height to be filled + * @param[in] srcx, srcy The bitmap position to start the fill from + * @param[in] srccx The width of a line in the bitmap. + * @param[in] buffer The pixels to use to fill the area. + * + * @notapi + */ + void gdisp_lld_blit_area_ex(coord_t x, coord_t y, coord_t cx, coord_t cy, coord_t srcx, coord_t srcy, coord_t srccx, const pixel_t *buffer) { + coord_t endx, endy; + unsigned lg; + + #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP + if (x < GDISP.clipx0) { cx -= GDISP.clipx0 - x; srcx += GDISP.clipx0 - x; x = GDISP.clipx0; } + if (y < GDISP.clipy0) { cy -= GDISP.clipy0 - y; srcy += GDISP.clipy0 - y; y = GDISP.clipy0; } + if (srcx+cx > srccx) cx = srccx - srcx; + if (cx <= 0 || cy <= 0 || x >= GDISP.clipx1 || y >= GDISP.clipy1) return; + if (x+cx > GDISP.clipx1) cx = GDISP.clipx1 - x; + if (y+cy > GDISP.clipy1) cy = GDISP.clipy1 - y; + #endif + + acquire_bus(); + set_viewport(x, y, cx, cy); + stream_start(); + + endx = srcx + cx; + endy = y + cy; + lg = srccx - cx; + buffer += srcx + srcy * srccx; + for(; y < endy; y++, buffer += lg) + for(x=srcx; x < endx; x++) + write_data(*buffer++); + stream_stop(); + release_bus(); + } +#endif + +#if (GDISP_NEED_PIXELREAD && GDISP_HARDWARE_PIXELREAD) || defined(__DOXYGEN__) + /** + * @brief Get the color of a particular pixel. + * @note Optional. + * @note If x,y is off the screen, the result is undefined. + * + * @param[in] x, y The pixel to be read + * + * @notapi + */ + color_t gdisp_lld_get_pixel_color(coord_t x, coord_t y) { + color_t color; + + #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP + if (x < 0 || x >= GDISP.Width || y < 0 || y >= GDISP.Height) return 0; + #endif + + acquire_bus(); + set_cursor(x, y); + stream_start(); + color = read_data(); // dummy read + color = read_data(); + stream_stop(); + release_bus(); + + return color; + } +#endif + +#if (GDISP_NEED_SCROLL && GDISP_HARDWARE_SCROLL) || defined(__DOXYGEN__) + /** + * @brief Scroll vertically a section of the screen. + * @note Optional. + * @note If x,y + cx,cy is off the screen, the result is undefined. + * @note If lines is >= cy, it is equivelent to a area fill with bgcolor. + * + * @param[in] x, y The start of the area to be scrolled + * @param[in] cx, cy The size of the area to be scrolled + * @param[in] lines The number of lines to scroll (Can be positive or negative) + * @param[in] bgcolor The color to fill the newly exposed area. + * + * @notapi + */ + void gdisp_lld_vertical_scroll(coord_t x, coord_t y, coord_t cx, coord_t cy, int lines, color_t bgcolor) { + static color_t buf[((GDISP_SCREEN_HEIGHT > GDISP_SCREEN_WIDTH ) ? GDISP_SCREEN_HEIGHT : GDISP_SCREEN_WIDTH)]; + coord_t row0, row1; + unsigned i, gap, abslines, j; + + #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP + if (x < GDISP.clipx0) { cx -= GDISP.clipx0 - x; x = GDISP.clipx0; } + if (y < GDISP.clipy0) { cy -= GDISP.clipy0 - y; y = GDISP.clipy0; } + if (!lines || cx <= 0 || cy <= 0 || x >= GDISP.clipx1 || y >= GDISP.clipy1) return; + if (x+cx > GDISP.clipx1) cx = GDISP.clipx1 - x; + if (y+cy > GDISP.clipy1) cy = GDISP.clipy1 - y; + #endif + + abslines = lines < 0 ? -lines : lines; + + acquire_bus(); + if ((coord_t)abslines >= cy) { + abslines = cy; + gap = 0; + } else { + gap = cy - abslines; + for(i = 0; i < gap; i++) { + if(lines > 0) { + row0 = y + i + lines; + row1 = y + i; + } else { + row0 = (y - i - 1) + lines; + row1 = (y - i - 1); + } + + /* read row0 into the buffer and then write at row1*/ + set_viewport(x, row0, cx, 1); + stream_start(); + j = read_data(); // dummy read + for (j = 0; (coord_t)j < cx; j++) + buf[j] = read_data(); + stream_stop(); + + set_viewport(x, row1, cx, 1); + stream_start(); + for (j = 0; (coord_t)j < cx; j++) + write_data(buf[j]); + stream_stop(); + } + } + + /* fill the remaining gap */ + set_viewport(x, lines > 0 ? (y+(coord_t)gap) : y, cx, abslines); + stream_start(); + gap = cx*abslines; + for(i = 0; i < gap; i++) write_data(bgcolor); + stream_stop(); + release_bus(); + } +#endif + +#if (GDISP_NEED_CONTROL && GDISP_HARDWARE_CONTROL) || defined(__DOXYGEN__) + /** + * @brief Driver Control + * @details Unsupported control codes are ignored. + * @note The value parameter should always be typecast to (void *). + * @note There are some predefined and some specific to the low level driver. + * @note GDISP_CONTROL_POWER - Takes a gdisp_powermode_t + * GDISP_CONTROL_ORIENTATION - Takes a gdisp_orientation_t + * GDISP_CONTROL_BACKLIGHT - Takes an int from 0 to 100. For a driver + * that only supports off/on anything other + * than zero is on. + * GDISP_CONTROL_CONTRAST - Takes an int from 0 to 100. + * GDISP_CONTROL_LLD - Low level driver control constants start at + * this value. + * + * @param[in] what What to do. + * @param[in] value The value to use (always cast to a void *). + * + * @notapi + */ + void gdisp_lld_control(unsigned what, void *value) { + switch(what) { + case GDISP_CONTROL_POWER: + if (GDISP.Powermode == (gdisp_powermode_t)value) + return; + switch((gdisp_powermode_t)value) { + case powerOff: + acquire_bus(); + write_reg(0x0010, 0x0001); /* enter sleep mode */ + release_bus(); + break; + case powerOn: + acquire_bus(); + write_reg(0x0010, 0x0000); /* leave sleep mode */ + release_bus(); + if (GDISP.Powermode != powerSleep) + gdisp_lld_init(); + break; + case powerSleep: + acquire_bus(); + write_reg(0x0010, 0x0001); /* enter sleep mode */ + release_bus(); + break; + default: + return; + } + GDISP.Powermode = (gdisp_powermode_t)value; + return; + case GDISP_CONTROL_ORIENTATION: + if (GDISP.Orientation == (gdisp_orientation_t)value) + return; + switch((gdisp_orientation_t)value) { + case GDISP_ROTATE_0: + acquire_bus(); + + write_reg(0xC0, 0x03); + write_reg(0x36, 0x00); /* X and Y axes non-inverted */ + + release_bus(); + GDISP.Height = GDISP_SCREEN_HEIGHT; + GDISP.Width = GDISP_SCREEN_WIDTH; + break; + case GDISP_ROTATE_90: + acquire_bus(); + + write_reg(0xC0, 0x02); + write_reg(0x36, 0x20); /* Invert X and Y axes */ + + release_bus(); + GDISP.Height = GDISP_SCREEN_WIDTH; + GDISP.Width = GDISP_SCREEN_HEIGHT; + break; + case GDISP_ROTATE_180: + acquire_bus(); + + write_reg(0xC0, 0x06); + write_reg(0x36, 0x00); /* X and Y axes non-inverted */ + + release_bus(); + GDISP.Height = GDISP_SCREEN_HEIGHT; + GDISP.Width = GDISP_SCREEN_WIDTH; + break; + case GDISP_ROTATE_270: + acquire_bus(); + + write_reg(0xC0, 0x07); + write_reg(0x36, 0x20); /* Invert X and Y axes */ + + release_bus(); + GDISP.Height = GDISP_SCREEN_WIDTH; + GDISP.Width = GDISP_SCREEN_HEIGHT; + break; + default: + return; + } + #if GDISP_NEED_CLIP || GDISP_NEED_VALIDATION + GDISP.clipx0 = 0; + GDISP.clipy0 = 0; + GDISP.clipx1 = GDISP.Width; + GDISP.clipy1 = GDISP.Height; + #endif + GDISP.Orientation = (gdisp_orientation_t)value; + return; +/* + case GDISP_CONTROL_BACKLIGHT: + case GDISP_CONTROL_CONTRAST: +*/ + } + } +#endif + +#endif /* GFX_USE_GDISP */ +/** @} */ diff --git a/drivers/gdisp/ILI9481/gdisp_lld.mk b/drivers/gdisp/ILI9481/gdisp_lld.mk new file mode 100644 index 00000000..b0b3f533 --- /dev/null +++ b/drivers/gdisp/ILI9481/gdisp_lld.mk @@ -0,0 +1,5 @@ +# List the required driver. +GFXSRC += $(GFXLIB)/drivers/gdisp/ILI9481/gdisp_lld.c + +# Required include directories +GFXINC += $(GFXLIB)/drivers/gdisp/ILI9481 diff --git a/drivers/gdisp/ILI9481/gdisp_lld_board_example.h b/drivers/gdisp/ILI9481/gdisp_lld_board_example.h new file mode 100644 index 00000000..de459641 --- /dev/null +++ b/drivers/gdisp/ILI9481/gdisp_lld_board_example.h @@ -0,0 +1,126 @@ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ + +/** + * @file drivers/gdisp/ILI9481/gdisp_lld_board_example.h + * @brief GDISP Graphics Driver subsystem low level driver source for + * the ILI9481 and compatible HVGA display + * + * @addtogroup GDISP + * @{ + */ + +#ifndef _GDISP_LLD_BOARD_H +#define _GDISP_LLD_BOARD_H + +/** + * @brief Initialise the board for the display. + * + * @notapi + */ +static inline void init_board(void) { + /* Code here */ +#error "ILI9481: You must supply a definition for init_board for your board" +} + +/** + * @brief Set or clear the lcd reset pin. + * + * @param[in] state TRUE = lcd in reset, FALSE = normal operation + * + * @notapi + */ +static inline void setpin_reset(bool_t state) { + /* Code here */ +#error "ILI9481: You must supply a definition for setpin_reset for your board" +} + +/** + * @brief Set the lcd back-light level. + * + * @param[in] percent 0 to 100% + * + * @notapi + */ +static inline void set_backlight(uint8_t percent) { + /* Code here */ +#error "ILI9481: You must supply a definition for set_backlight for your board" +} + +/** + * @brief Take exclusive control of the bus + * + * @notapi + */ +static inline void acquire_bus(void) { +#error "ILI9481: You must supply a definition for acquire_bus for your board" +} + +/** + * @brief Release exclusive control of the bus + * + * @notapi + */ +static inline void release_bus(void) { +#error "ILI9481: You must supply a definition for release_bus for your board" +} + +/** + * @brief Send data to the index register. + * + * @param[in] index The index register to set + * + * @notapi + */ +static inline void write_index(uint16_t index) { + /* Code here */ +#error "ILI9481: You must supply a definition for write_index for your board" +} + +/** + * @brief Send data to the lcd. + * + * @param[in] data The data to send + * + * @notapi + */ +static inline void write_data(uint16_t data) { + /* Code here */ +#error "ILI9481: You must supply a definition for write_data for your board" +} + +#if GDISP_HARDWARE_READPIXEL || GDISP_HARDWARE_SCROLL || defined(__DOXYGEN__) +/** + * @brief Read data from the lcd. + * + * @return The data from the lcd + * @note The chip select may need to be asserted/de-asserted + * around the actual spi read + * + * @notapi + */ +static inline uint16_t read_data(void) { + /* Code here */ +#error "ILI9481: You must supply a definition for read_data for your board" +} +#endif + +#endif /* _GDISP_LLD_BOARD_H */ +/** @} */ diff --git a/drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h b/drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h new file mode 100644 index 00000000..3fc3f632 --- /dev/null +++ b/drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h @@ -0,0 +1,165 @@ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ + +/** + * @file drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h + * @brief GDISP Graphics Driver subsystem low level driver source for + * the ILI9481 and compatible HVGA display + * + * @addtogroup GDISP + * @{ + */ + +#ifndef _GDISP_LLD_BOARD_H +#define _GDISP_LLD_BOARD_H + +#define GDISP_REG ((volatile uint16_t *) 0x60000000)[0] /* RS = 0 */ +#define GDISP_RAM ((volatile uint16_t *) 0x60020000)[0] /* RS = 1 */ + +/** + * @brief Initialise the board for the display. + * @notes Performs the following functions: + * 1. initialise the io port used by your display + * 2. initialise the reset pin (initial state not-in-reset) + * 3. initialise the chip select pin (initial state not-active) + * 4. initialise the backlight pin (initial state back-light off) + * + * @notapi + */ +static inline void init_board(void) { + const unsigned char FSMC_Bank; + + #if defined(STM32F1XX) || defined(STM32F3XX) + /* FSMC setup for F1/F3 */ + rccEnableAHB(RCC_AHBENR_FSMCEN, 0); + + #if defined(GDISP_USE_DMA) && defined(GDISP_DMA_STREAM) + #error "DMA not implemented for F1/F3 Devices" + #endif + #elif defined(STM32F4XX) || defined(STM32F2XX) + /* STM32F2-F4 FSMC init */ + rccEnableAHB3(RCC_AHB3ENR_FSMCEN, 0); + + #if defined(GDISP_USE_DMA) && defined(GDISP_DMA_STREAM) + if (dmaStreamAllocate(GDISP_DMA_STREAM, 0, NULL, NULL)) chSysHalt(); + dmaStreamSetMemory0(GDISP_DMA_STREAM, &GDISP_RAM); + dmaStreamSetMode(GDISP_DMA_STREAM, STM32_DMA_CR_PL(0) | STM32_DMA_CR_PSIZE_HWORD | STM32_DMA_CR_MSIZE_HWORD | STM32_DMA_CR_DIR_M2M); + #endif + #else + #error "FSMC not implemented for this device" + #endif + + /* set pins to FSMC mode */ + IOBus busD = {GPIOD, (1 << 0) | (1 << 1) | (1 << 4) | (1 << 5) | (1 << 7) | (1 << 8) | + (1 << 9) | (1 << 10) | (1 << 11) | (1 << 14) | (1 << 15), 0}; + + IOBus busE = {GPIOE, (1 << 7) | (1 << 8) | (1 << 9) | (1 << 10) | (1 << 11) | (1 << 12) | + (1 << 13) | (1 << 14) | (1 << 15), 0}; + + palSetBusMode(&busD, PAL_MODE_ALTERNATE(12)); + palSetBusMode(&busE, PAL_MODE_ALTERNATE(12)); + + FSMC_Bank = 0; + + /* FSMC timing */ + FSMC_Bank1->BTCR[FSMC_Bank+1] = (FSMC_BTR1_ADDSET_1 | FSMC_BTR1_ADDSET_3) \ + | (FSMC_BTR1_DATAST_1 | FSMC_BTR1_DATAST_3) \ + | (FSMC_BTR1_BUSTURN_1 | FSMC_BTR1_BUSTURN_3) ; + + /* Bank1 NOR/SRAM control register configuration + * This is actually not needed as already set by default after reset */ + FSMC_Bank1->BTCR[FSMC_Bank] = FSMC_BCR1_MWID_0 | FSMC_BCR1_WREN | FSMC_BCR1_MBKEN; +} + +/** + * @brief Set or clear the lcd reset pin. + * + * @param[in] state TRUE = lcd in reset, FALSE = normal operation + * + * @notapi + */ +static inline void setpin_reset(bool_t state) { + (void) state; + /* Nothing to do here */ +} + +/** + * @brief Set the lcd back-light level. + * + * @param[in] percent 0 to 100% + * + * @notapi + */ +static inline void set_backlight(uint8_t percent) { + (void) percent; + /* Nothing to do here */ +} + +/** + * @brief Take exclusive control of the bus + * + * @notapi + */ +static inline void acquire_bus(void) { + /* Nothing to do here */ +} + +/** + * @brief Release exclusive control of the bus + * + * @notapi + */ +static inline void release_bus(void) { + /* Nothing to do here */ +} + +/** + * @brief Send data to the index register. + * + * @param[in] index The index register to set + * + * @notapi + */ +static inline void write_index(uint16_t index) { GDISP_REG = index; } + +/** + * @brief Send data to the lcd. + * + * @param[in] data The data to send + * + * @notapi + */ +static inline void write_data(uint16_t data) { GDISP_RAM = data; } + +#if GDISP_HARDWARE_READPIXEL || GDISP_HARDWARE_SCROLL || defined(__DOXYGEN__) +/** + * @brief Read data from the lcd. + * + * @return The data from the lcd + * @note The chip select may need to be asserted/de-asserted + * around the actual spi read + * + * @notapi + */ +static inline uint16_t read_data(void) { return GDISP_RAM; } +#endif + +#endif /* _GDISP_LLD_BOARD_H */ +/** @} */ diff --git a/drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h b/drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h new file mode 100644 index 00000000..ce7af96f --- /dev/null +++ b/drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h @@ -0,0 +1,158 @@ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ + +/** + * @file drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h + * @brief GDISP Graphics Driver subsystem low level driver source for + * the ILI9481 and compatible HVGA display + * + * @addtogroup GDISP + * @{ + */ + +#ifndef _GDISP_LLD_BOARD_H +#define _GDISP_LLD_BOARD_H + +#define SET_CS palSetPad(GPIOD, 12); +#define CLR_CS palClearPad(GPIOD, 12); +#define SET_RS palSetPad(GPIOD, 13); +#define CLR_RS palClearPad(GPIOD, 13); +#define SET_WR palSetPad(GPIOD, 14); +#define CLR_WR palClearPad(GPIOD, 14); +#define SET_RD palSetPad(GPIOD, 15); +#define CLR_RD palClearPad(GPIOD, 15); + +/** + * @brief Initialise the board for the display. + * @notes This board definition uses GPIO and assumes exclusive access to these GPIO pins + * + * @notapi + */ +static inline void init_board(void) { + palSetGroupMode(GPIOE, PAL_WHOLE_PORT, 0, PAL_MODE_OUTPUT_PUSHPULL); + palSetPadMode(GPIOD, 12, PAL_MODE_OUTPUT_PUSHPULL); + palSetPadMode(GPIOD, 13, PAL_MODE_OUTPUT_PUSHPULL); + palSetPadMode(GPIOD, 14, PAL_MODE_OUTPUT_PUSHPULL); + palSetPadMode(GPIOD, 15, PAL_MODE_OUTPUT_PUSHPULL); + + // Configure the pins to a well know state + SET_RS; + SET_RD; + SET_WR; + CLR_CS; +} + + +/** + * @brief Set or clear the lcd reset pin. + * + * @param[in] state TRUE = lcd in reset, FALSE = normal operation + * + * @notapi + */ +static inline void setpin_reset(bool_t state) { + (void) state; + /* Nothing to do here - reset pin tied to Vcc */ +} + +/** + * @brief Set the lcd back-light level. + * + * @param[in] percent 0 to 100% + * + * @notapi + */ +static inline void set_backlight(uint8_t percent) { + (void) percent; + /* Nothing to do here - Backlight always on */ +} + +/** + * @brief Take exclusive control of the bus + * + * @notapi + */ +static inline void acquire_bus(void) { + /* Nothing to do here since LCD is the only device on that bus */ +} + +/** + * @brief Release exclusive control of the bus + * + * @notapi + */ +static inline void release_bus(void) { + /* Nothing to do here since LCD is the only device on that bus */ +} + +/** + * @brief Send data to the index register. + * + * @param[in] index The index register to set + * + * @notapi + */ +static inline void write_index(uint16_t index) { + palWritePort(GPIOE, index); + CLR_RS; CLR_WR; SET_WR; SET_RS; +} + +/** + * @brief Send data to the lcd. + * + * @param[in] data The data to send + * + * @notapi + */ +static inline void write_data(uint16_t data) { + palWritePort(GPIOE, data); + CLR_WR; SET_WR; +} + +#if GDISP_HARDWARE_READPIXEL || GDISP_HARDWARE_SCROLL || defined(__DOXYGEN__) +/** + * @brief Read data from the lcd. + * + * @return The data from the lcd + * @note The chip select may need to be asserted/de-asserted + * around the actual spi read + * + * @notapi + */ +static inline uint16_t read_data(void) { + uint16_t value; + + // change pin mode to digital input + palSetGroupMode(GPIOE, PAL_WHOLE_PORT, 0, PAL_MODE_INPUT); + + CLR_RD; + value = palReadPort(GPIOE); + value = palReadPort(GPIOE); + SET_RD; + + // change pin mode back to digital output + palSetGroupMode(GPIOE, PAL_WHOLE_PORT, 0, PAL_MODE_OUTPUT_PUSHPULL); + + return value; +} +#endif + +#endif /* _GDISP_LLD_BOARD_H */ +/** @} */ diff --git a/drivers/gdisp/ILI9481/gdisp_lld_config.h b/drivers/gdisp/ILI9481/gdisp_lld_config.h new file mode 100644 index 00000000..c1fc7a2d --- /dev/null +++ b/drivers/gdisp/ILI9481/gdisp_lld_config.h @@ -0,0 +1,53 @@ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ + +/** + * @file drivers/gdisp/ILI9481/gdisp_lld_config.h + * @brief GDISP Graphics Driver subsystem low level driver source for + * the ILI9481 and compatible HVGA display + * + * @addtogroup GDISP + * @{ + */ + +#ifndef _GDISP_LLD_CONFIG_H +#define _GDISP_LLD_CONFIG_H + +#if GFX_USE_GDISP + +/*===========================================================================*/ +/* Driver hardware support. */ +/*===========================================================================*/ + +#define GDISP_DRIVER_NAME "ILI9481" + +#define GDISP_HARDWARE_CLEARS TRUE +#define GDISP_HARDWARE_FILLS TRUE +#define GDISP_HARDWARE_BITFILLS TRUE +#define GDISP_HARDWARE_SCROLL TRUE +#define GDISP_HARDWARE_PIXELREAD TRUE +#define GDISP_HARDWARE_CONTROL TRUE + +#define GDISP_PIXELFORMAT GDISP_PIXELFORMAT_RGB565 + +#endif /* GFX_USE_GDISP */ + +#endif /* _GDISP_LLD_CONFIG_H */ +/** @} */ diff --git a/drivers/gdisp/ILI9481/readme.txt b/drivers/gdisp/ILI9481/readme.txt new file mode 100644 index 00000000..dc66e27b --- /dev/null +++ b/drivers/gdisp/ILI9481/readme.txt @@ -0,0 +1,15 @@ +To use this driver: + +1. Add in your halconf.h: + a) #define GFX_USE_GDISP TRUE + + b) Any optional high level driver defines (see gdisp.h) eg: GDISP_NEED_MULTITHREAD + + c) If you are not using a known board then create a gdisp_lld_board.h file + and ensure it is on your include path. + Use the gdisp_lld_board_example.h or gdisp_lld_board_fsmc.h file as a basis. + Currently known boards are: + BOARD_FIREBULL_STM32_F103 - GPIO interface: requires GDISP_CMD_PORT and GDISP_DATA_PORT to be defined + +2. To your makefile add the following lines: + include $(GFXLIB)/drivers/gdisp/ILI9481/gdisp_lld.mk -- cgit v1.2.3 From 0a26d9983b6d1deab272ff6dde98f7c77ff2a56c Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Thu, 2 May 2013 01:50:09 +0200 Subject: updated license headers --- 3rdparty/boing/gfxconf.h | 40 +++++ 3rdparty/boing/main.c | 111 ++++++++++++ 3rdparty/bubbles/gfxconf.h | 40 +++++ 3rdparty/bubbles/main.c | 194 +++++++++++++++++++++ 3rdparty/readme.txt | 10 ++ demos/3rdparty/boing/gfxconf.h | 40 ----- demos/3rdparty/boing/main.c | 111 ------------ demos/3rdparty/bubbles/gfxconf.h | 40 ----- demos/3rdparty/bubbles/main.c | 194 --------------------- demos/3rdparty/readme.txt | 10 -- demos/applications/mandelbrot/gfxconf.h | 9 + demos/applications/mandelbrot/main.c | 9 + demos/applications/notepad/gfxconf.h | 9 + demos/applications/notepad/main.c | 9 + demos/benchmarks/gfxconf.h | 9 + demos/benchmarks/main.c | 9 + demos/modules/gadc/gfxconf.h | 9 + demos/modules/gadc/gwinosc.c | 9 + demos/modules/gadc/gwinosc.h | 9 + demos/modules/gadc/main.c | 9 + demos/modules/gaudin/gfxconf.h | 9 + demos/modules/gaudin/gwinosc.c | 9 + demos/modules/gaudin/gwinosc.h | 9 + demos/modules/gaudin/main.c | 9 + demos/modules/gdisp/gdisp_basics/gfxconf.h | 9 + demos/modules/gdisp/gdisp_basics/main.c | 9 + demos/modules/gdisp/gdisp_circles/gfxconf.h | 9 + demos/modules/gdisp/gdisp_circles/main.c | 9 + demos/modules/gdisp/gdisp_images/gfxconf.h | 9 + demos/modules/gdisp/gdisp_images/main.c | 9 + .../modules/gdisp/gdisp_images_animated/gfxconf.h | 9 + demos/modules/gdisp/gdisp_images_animated/main.c | 27 +-- .../modules/gdisp/gdisp_images_animated/testanim.h | 9 + demos/modules/gdisp/gdisp_text/gfxconf.h | 9 + demos/modules/gdisp/gdisp_text/main.c | 9 + demos/modules/ginput/touch_driver_test/gfxconf.h | 9 + demos/modules/ginput/touch_driver_test/main.c | 9 + demos/modules/graph/gfxconf.h | 9 + demos/modules/graph/main.c | 9 + demos/modules/gtimer/gfxconf.h | 9 + demos/modules/gtimer/main.c | 9 + demos/modules/gwin/basic/gfxconf.h | 9 + demos/modules/gwin/basic/main.c | 27 +-- demos/modules/gwin/console/gfxconf.h | 9 + demos/modules/gwin/console/main.c | 27 +-- demos/modules/gwin/slider/gfxconf.h | 9 + demos/modules/gwin/slider/main.c | 27 +-- demos/modules/tdisp/gfxconf.h | 9 + demos/modules/tdisp/main.c | 9 + drivers/gadc/AT91SAM7/gadc_lld.c | 9 + .../gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h | 27 +-- drivers/gadc/AT91SAM7/gadc_lld_config.h | 27 +-- drivers/gaudin/gadc/gaudin_lld.c | 9 + .../gaudin/gadc/gaudin_lld_board_olimexsam7ex256.h | 27 +-- drivers/gaudin/gadc/gaudin_lld_config.h | 27 +-- drivers/gdisp/ILI9320/gdisp_lld.c | 27 +-- drivers/gdisp/ILI9320/gdisp_lld_board_example.h | 27 +-- .../ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h | 9 + .../ILI9320/gdisp_lld_board_olimex_stm32_lcd.h | 27 +-- drivers/gdisp/ILI9320/gdisp_lld_config.h | 9 + drivers/gdisp/ILI9325/gdisp_lld.c | 27 +-- drivers/gdisp/ILI9325/gdisp_lld_board_example.h | 27 +-- .../gdisp/ILI9325/gdisp_lld_board_hy_stm32_100p.h | 27 +-- drivers/gdisp/ILI9325/gdisp_lld_config.h | 9 + drivers/gdisp/ILI9481/gdisp_lld.c | 27 +-- drivers/gdisp/ILI9481/gdisp_lld_board_example.h | 27 +-- .../gdisp/ILI9481/gdisp_lld_board_example_fsmc.h | 27 +-- .../ILI9481/gdisp_lld_board_firebullstm32f103.h | 27 +-- drivers/gdisp/ILI9481/gdisp_lld_config.h | 27 +-- drivers/gdisp/Nokia6610GE12/GE12.h | 9 + drivers/gdisp/Nokia6610GE12/gdisp_lld.c | 27 +-- .../gdisp/Nokia6610GE12/gdisp_lld_board_example.h | 9 + .../gdisp_lld_board_olimexsam7ex256.h | 9 + drivers/gdisp/Nokia6610GE12/gdisp_lld_config.h | 9 + drivers/gdisp/Nokia6610GE8/GE8.h | 9 + drivers/gdisp/Nokia6610GE8/gdisp_lld.c | 27 +-- .../gdisp/Nokia6610GE8/gdisp_lld_board_example.h | 9 + .../Nokia6610GE8/gdisp_lld_board_olimexsam7ex256.h | 27 +-- drivers/gdisp/Nokia6610GE8/gdisp_lld_config.h | 9 + drivers/gdisp/S6D1121/gdisp_lld.c | 27 +-- drivers/gdisp/S6D1121/gdisp_lld_board_example.h | 9 + .../gdisp/S6D1121/gdisp_lld_board_olimex_e407.h | 9 + drivers/gdisp/S6D1121/gdisp_lld_config.h | 9 + drivers/gdisp/SSD1289/gdisp_lld.c | 27 +-- drivers/gdisp/SSD1289/gdisp_lld_board_example.h | 9 + .../gdisp/SSD1289/gdisp_lld_board_example_fsmc.h | 9 + .../SSD1289/gdisp_lld_board_firebullstm32f103.h | 9 + drivers/gdisp/SSD1289/gdisp_lld_config.h | 9 + drivers/gdisp/SSD1963/gdisp_lld.c | 27 +-- .../gdisp/SSD1963/gdisp_lld_board_example_fsmc.h | 9 + .../gdisp/SSD1963/gdisp_lld_board_example_gpio.h | 9 + drivers/gdisp/SSD1963/gdisp_lld_config.h | 9 + drivers/gdisp/SSD1963/gdisp_lld_panel_example.h | 9 + drivers/gdisp/SSD1963/ssd1963.h | 9 + drivers/gdisp/SSD2119/gdisp_lld.c | 27 +-- .../SSD2119/gdisp_lld_board_embest_dmstf4bb.h | 27 +-- drivers/gdisp/SSD2119/gdisp_lld_config.h | 27 +-- drivers/gdisp/SSD2119/ssd2119.h | 27 +-- drivers/gdisp/TestStub/gdisp_lld.c | 27 +-- drivers/gdisp/TestStub/gdisp_lld_config.h | 9 + drivers/ginput/dial/GADC/ginput_lld_dial.c | 27 +-- .../GADC/ginput_lld_dial_board_olimexsam7ex256.h | 27 +-- drivers/ginput/dial/GADC/ginput_lld_dial_config.h | 27 +-- drivers/ginput/toggle/Pal/ginput_lld_toggle.c | 9 + .../toggle/Pal/ginput_lld_toggle_board_example.h | 9 + .../Pal/ginput_lld_toggle_board_olimexsam7ex256.h | 27 +-- .../ginput/toggle/Pal/ginput_lld_toggle_config.h | 9 + drivers/ginput/touch/ADS7843/ginput_lld_mouse.c | 9 + .../touch/ADS7843/ginput_lld_mouse_board_example.h | 9 + .../ginput_lld_mouse_board_firebull_stm32f103.h | 9 + .../ginput_lld_mouse_board_olimex_stm32_e407.h | 9 + .../ginput/touch/ADS7843/ginput_lld_mouse_config.h | 9 + drivers/ginput/touch/MCU/ginput_lld_mouse.c | 9 + .../touch/MCU/ginput_lld_mouse_board_example.h | 9 + .../ginput_lld_mouse_board_olimex_pic32mx_lcd.h | 9 + .../MCU/ginput_lld_mouse_board_olimex_stm32_lcd.h | 9 + drivers/ginput/touch/MCU/ginput_lld_mouse_config.h | 9 + drivers/ginput/touch/STMPE811/ginput_lld_mouse.c | 27 +-- .../ginput_lld_mouse_board_embest_dmstf4bb.h | 9 + .../STMPE811/ginput_lld_mouse_board_example.h | 9 + .../touch/STMPE811/ginput_lld_mouse_config.h | 9 + drivers/ginput/touch/STMPE811/stmpe811.h | 9 + drivers/multiple/Win32/gdisp_lld.c | 27 +-- drivers/multiple/Win32/gdisp_lld_config.h | 9 + drivers/multiple/Win32/ginput_lld_mouse_config.h | 9 + drivers/multiple/Win32/ginput_lld_toggle_config.h | 9 + drivers/tdisp/HD44780/tdisp_lld.c | 27 +-- drivers/tdisp/HD44780/tdisp_lld_board_example.h | 27 +-- .../tdisp/HD44780/tdisp_lld_board_olimex_e407.h | 9 + .../HD44780/tdisp_lld_board_st_stm32f4_discovery.h | 9 + gfxconf.example.h | 9 + include/gadc/gadc.h | 9 + include/gadc/lld/gadc_lld.h | 9 + include/gadc/options.h | 27 +-- include/gaudin/gaudin.h | 9 + include/gaudin/lld/gaudin_lld.h | 9 + include/gaudin/options.h | 9 + include/gaudout/gaudout.h | 9 + include/gaudout/options.h | 9 + include/gdisp/fonts.h | 9 + include/gdisp/gdisp.h | 27 +-- include/gdisp/image.h | 27 +-- include/gdisp/lld/emulation.c | 27 +-- include/gdisp/lld/gdisp_lld.h | 27 +-- include/gdisp/lld/gdisp_lld_msgs.h | 27 +-- include/gdisp/options.h | 27 +-- include/gevent/gevent.h | 9 + include/gevent/options.h | 9 + include/gfx.h | 27 +-- include/gfx_rules.h | 27 +-- include/ginput/dial.h | 9 + include/ginput/ginput.h | 9 + include/ginput/keyboard.h | 9 + include/ginput/lld/dial.h | 9 + include/ginput/lld/mouse.h | 9 + include/ginput/lld/toggle.h | 9 + include/ginput/mouse.h | 9 + include/ginput/options.h | 9 + include/ginput/toggle.h | 9 + include/gmisc/gmisc.h | 9 + include/gmisc/options.h | 9 + include/gtimer/gtimer.h | 9 + include/gtimer/options.h | 9 + include/gwin/button.h | 9 + include/gwin/console.h | 9 + include/gwin/graph.h | 27 +-- include/gwin/gwin.h | 9 + include/gwin/internal.h | 9 + include/gwin/options.h | 27 +-- include/gwin/slider.h | 9 + include/tdisp/lld/tdisp_lld.h | 9 + include/tdisp/options.h | 9 + include/tdisp/tdisp.h | 9 + src/gadc/gadc.c | 27 +-- src/gaudin/gaudin.c | 27 +-- src/gaudout/gaudout.c | 9 + src/gdisp/fonts.c | 27 +-- src/gdisp/gdisp.c | 27 +-- src/gdisp/image.c | 27 +-- src/gdisp/image_bmp.c | 27 +-- src/gdisp/image_gif.c | 27 +-- src/gdisp/image_jpg.c | 27 +-- src/gdisp/image_native.c | 27 +-- src/gdisp/image_png.c | 27 +-- src/gevent/gevent.c | 27 +-- src/ginput/dial.c | 27 +-- src/ginput/keyboard.c | 9 + src/ginput/mouse.c | 9 + src/ginput/toggle.c | 9 + src/gmisc/arrayops.c | 9 + src/gtimer/gtimer.c | 9 + src/gwin/button.c | 9 + src/gwin/console.c | 9 + src/gwin/graph.c | 9 + src/gwin/gwin.c | 9 + src/gwin/slider.c | 9 + src/tdisp/tdisp.c | 9 + tools/file2c/src/file2c.c | 27 +-- 198 files changed, 2025 insertions(+), 1573 deletions(-) create mode 100644 3rdparty/boing/gfxconf.h create mode 100644 3rdparty/boing/main.c create mode 100644 3rdparty/bubbles/gfxconf.h create mode 100644 3rdparty/bubbles/main.c create mode 100644 3rdparty/readme.txt delete mode 100644 demos/3rdparty/boing/gfxconf.h delete mode 100644 demos/3rdparty/boing/main.c delete mode 100644 demos/3rdparty/bubbles/gfxconf.h delete mode 100644 demos/3rdparty/bubbles/main.c delete mode 100644 demos/3rdparty/readme.txt diff --git a/3rdparty/boing/gfxconf.h b/3rdparty/boing/gfxconf.h new file mode 100644 index 00000000..45b6d7ab --- /dev/null +++ b/3rdparty/boing/gfxconf.h @@ -0,0 +1,40 @@ +/** + * This file has a different license to the rest of the GFX system. + * You can copy, modify and distribute this file as you see fit. + * You do not need to publish your source modifications to this file. + * The only thing you are not permitted to do is to relicense it + * under a different license. + */ + +#ifndef _GFXCONF_H +#define _GFXCONF_H + +/* GFX sub-systems to turn on */ +#define GFX_USE_GDISP TRUE +#define GFX_USE_GWIN FALSE +#define GFX_USE_GEVENT FALSE +#define GFX_USE_GTIMER FALSE +#define GFX_USE_GINPUT FALSE + +/* Features for the GDISP sub-system. */ +#define GDISP_NEED_VALIDATION FALSE +#define GDISP_NEED_CLIP FALSE +#define GDISP_NEED_TEXT FALSE +#define GDISP_NEED_CIRCLE FALSE +#define GDISP_NEED_ELLIPSE FALSE +#define GDISP_NEED_ARC FALSE +#define GDISP_NEED_SCROLL FALSE +#define GDISP_NEED_PIXELREAD FALSE +#define GDISP_NEED_CONTROL FALSE +#define GDISP_NEED_MULTITHREAD FALSE +#define GDISP_NEED_ASYNC FALSE +#define GDISP_NEED_MSGAPI FALSE + +/* Builtin Fonts */ +#define GDISP_INCLUDE_FONT_SMALL FALSE +#define GDISP_INCLUDE_FONT_LARGER FALSE +#define GDISP_INCLUDE_FONT_UI1 FALSE +#define GDISP_INCLUDE_FONT_UI2 FALSE +#define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE + +#endif /* _GFXCONF_H */ diff --git a/3rdparty/boing/main.c b/3rdparty/boing/main.c new file mode 100644 index 00000000..a34cd2a9 --- /dev/null +++ b/3rdparty/boing/main.c @@ -0,0 +1,111 @@ +/* Derived from the 2011 IOCCC submission by peter.eastman@gmail.com + * http://www.ioccc.org/2011/eastman/eastman.c + * -- + * Public Domain -- but you're looking at this for ideas of techniques + * and methods, not trying to cut&paste an entire application, anyway. + * -- + * When you need to blit an entire screenfull of data to an LCD + * display, the basic idea is to exploit the auto-increment feature of + * the display controller when it writes to screen memory. You start + * by resetting the 'cursor' to the 0,0 position, and then stream + * width*height pixels out. + * -- + * Chris Baird,, April 2013 + */ + +#include +#include "ch.h" +#include "hal.h" +#include "gfx.h" +#include "ssd2119.h" + +#define Lightgrey (HTML2COLOR(0xC0C0C0)) +#define Midgrey (HTML2COLOR(0x606060)) +#define Darkgrey (HTML2COLOR(0x303030)) + + +/* ---------------------------------------------------------------------- */ +/* As of early April 2013, the /gfx extension tries to keep the low-level + * stuff away from our filthy paws. So Code Duplication. + * (Possibly to be replaced with gdispStartStream(), gdispWriteStream() + * and gdispStopStream() in the future.) + */ + +#define GDISP_REG (*((volatile uint16_t *) 0x60000000)) /* DC = 0 */ +#define GDISP_RAM (*((volatile uint16_t *) 0x60100000)) /* DC = 1 */ + +inline void write_index (uint16_t index) { GDISP_REG = index; } +inline void write_data (uint16_t data) { GDISP_RAM = data; } + +#define write_reg(reg, data) { write_index(reg); write_data(data); } + +void reset_cursor (void) +{ + write_reg (SSD2119_REG_X_RAM_ADDR, 0); + write_reg (SSD2119_REG_Y_RAM_ADDR, 0); +} + +#define StartStream() { write_index (SSD2119_REG_RAM_DATA); } +#define WriteStream(x) { write_data (x); } +#define StopStream() /* NOP */ + + +/* ---------------------------------------------------------------------- */ + +void main (void) +{ + uint16_t xx, yy, colour; + + halInit(); + chSysInit(); + gdispInit(); + + uint16_t width = (uint16_t)gdispGetWidth(); + uint16_t height = (uint16_t)gdispGetHeight(); + + float i=height/5+height%2+1, floorstart=height/5-1, spherespin=0.0, + l=width/2, m=height/4, n=.01*width, o=0.0, rotspeed=0.1, h, f, g; + + while (TRUE) + { + reset_cursor (); + StartStream (); + + for (xx=yy=0; + h = (m-yy)/i, f=-.3*(g=(l-xx)/i)+.954*h, yywidth-floorstart) + colour = Darkgrey; /* side wall */ + else + colour = Lightgrey; /* back wall */ + + if (yy > height-floorstart) + if (xx < height-yy || height-yy > width-xx) /* floor */ + colour = Darkgrey; + else + colour = Midgrey; + + if (g*(g+.6)+.09+h*h < 1) + colour >>= 1; /* ball shadow; make it darker */ + } + + WriteStream (colour); /* pixel to the LCD */ + } + + StopStream(); + spherespin += rotspeed; + m += o; + o = m > height-1.75*floorstart ? -.04*height : o+.002*height; + n = (l+=n)width-i ? rotspeed=-rotspeed,-n : n; + } +} + +/* ---------------------------------------------------------------------- */ diff --git a/3rdparty/bubbles/gfxconf.h b/3rdparty/bubbles/gfxconf.h new file mode 100644 index 00000000..9b1f76a6 --- /dev/null +++ b/3rdparty/bubbles/gfxconf.h @@ -0,0 +1,40 @@ +/** + * This file has a different license to the rest of the GFX system. + * You can copy, modify and distribute this file as you see fit. + * You do not need to publish your source modifications to this file. + * The only thing you are not permitted to do is to relicense it + * under a different license. + */ + +#ifndef _GFXCONF_H +#define _GFXCONF_H + +/* GFX sub-systems to turn on */ +#define GFX_USE_GDISP TRUE +#define GFX_USE_GWIN FALSE +#define GFX_USE_GEVENT FALSE +#define GFX_USE_GTIMER FALSE +#define GFX_USE_GINPUT FALSE + +/* Features for the GDISP sub-system. */ +#define GDISP_NEED_VALIDATION FALSE +#define GDISP_NEED_CLIP FALSE +#define GDISP_NEED_TEXT FALSE +#define GDISP_NEED_CIRCLE TRUE +#define GDISP_NEED_ELLIPSE FALSE +#define GDISP_NEED_ARC FALSE +#define GDISP_NEED_SCROLL FALSE +#define GDISP_NEED_PIXELREAD FALSE +#define GDISP_NEED_CONTROL FALSE +#define GDISP_NEED_MULTITHREAD FALSE +#define GDISP_NEED_ASYNC FALSE +#define GDISP_NEED_MSGAPI FALSE + +/* Builtin Fonts */ +#define GDISP_INCLUDE_FONT_SMALL FALSE +#define GDISP_INCLUDE_FONT_LARGER FALSE +#define GDISP_INCLUDE_FONT_UI1 FALSE +#define GDISP_INCLUDE_FONT_UI2 FALSE +#define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE + +#endif /* _GFXCONF_H */ diff --git a/3rdparty/bubbles/main.c b/3rdparty/bubbles/main.c new file mode 100644 index 00000000..81c5dbe3 --- /dev/null +++ b/3rdparty/bubbles/main.c @@ -0,0 +1,194 @@ +/* Microcontroller graphic demo by Pascal Piazzalunga + * admin@serveurperso.com http://www.serveurperso.com + * https://www.youtube.com/watch?v=wyuJ-dqS2to + * Ported to stm32/ChibiOS/glx by Chris Baird. + * It's spinnin' bubbles, man. + * -- + * Licencing? Ask Pascal. Let's assume it is freely-distributable and + * modifiable, provided his name is kept in the source. + * -- + * Chris Baird,, April 2013 + */ + +#include +#include "ch.h" +#include "hal.h" +#include "gfx.h" + + +/* ---------------------------------------------------------------------- */ + +#define N 1024 /* Number of dots */ +#define SCALE 8192 +#define INCREMENT 512 /* INCREMENT = SCALE / sqrt(N) * 2 */ +#define PI2 6.283185307179586476925286766559 + +#define background RGB2COLOR(0,0,0) + +uint16_t width, height; +int16_t sine[SCALE+(SCALE/4)]; +int16_t *cosi = &sine[SCALE/4]; /* cos(x) = sin(x+90d)... */ + + +void initialize (void) +{ + uint16_t i; + + /* if you change the SCALE*1.25 back to SCALE, the program will + * occassionally overrun the cosi array -- however this actually + * produces some interesting effects as the BUBBLES LOSE CONTROL!!!! + */ + for (i = 0; i < SCALE+(SCALE/4); i++) + //sine[i] = (-SCALE/2) + (int)(sinf(PI2 * i / SCALE) * sinf(PI2 * i / SCALE) * SCALE); + sine[i] = (int)(sinf(PI2 * i / SCALE) * SCALE); +} + + +void matrix (int16_t xyz[3][N], color_t col[N]) +{ + static uint32_t t = 0; + int16_t x = -SCALE, y = -SCALE; + uint16_t i, s, d; + uint8_t red,grn,blu; + +#define RED_COLORS (32) +#define GREEN_COLORS (64) +#define BLUE_COLORS (32) + + for (i = 0; i < N; i++) + { + xyz[0][i] = x; + xyz[1][i] = y; + + d = sqrtf(x * x + y * y); /* originally a fastsqrt() call */ + s = sine[(t * 30) % SCALE] + SCALE; + + xyz[2][i] = sine[(d + s) % SCALE] * sine[(t * 10) % SCALE] / SCALE / 2; + + red = (cosi[xyz[2][i] + SCALE / 2] + SCALE) * + (RED_COLORS - 1) / SCALE / 2; + grn = (cosi[(xyz[2][i] + SCALE / 2 + 2 * SCALE / 3) % SCALE] + SCALE) * + (GREEN_COLORS - 1) / SCALE / 2; + blu = (cosi[(xyz[2][i] + SCALE / 2 + SCALE / 3) % SCALE] + SCALE) * + (BLUE_COLORS - 1) / SCALE / 2; + col[i] = ((red << 11) + (grn << 5) + blu); + + x += INCREMENT; + + if (x >= SCALE) x = -SCALE, y += INCREMENT; + } + t++; +} + + +void rotate (int16_t xyz[3][N], uint16_t angleX, uint16_t angleY, uint16_t angleZ) +{ + uint16_t i; + int16_t tmpX, tmpY; + int16_t sinx = sine[angleX], cosx = cosi[angleX]; + int16_t siny = sine[angleY], cosy = cosi[angleY]; + int16_t sinz = sine[angleZ], cosz = cosi[angleZ]; + + for (i = 0; i < N; i++) + { + tmpX = (xyz[0][i] * cosx - xyz[2][i] * sinx) / SCALE; + xyz[2][i] = (xyz[0][i] * sinx + xyz[2][i] * cosx) / SCALE; + xyz[0][i] = tmpX; + + tmpY = (xyz[1][i] * cosy - xyz[2][i] * siny) / SCALE; + xyz[2][i] = (xyz[1][i] * siny + xyz[2][i] * cosy) / SCALE; + xyz[1][i] = tmpY; + + tmpX = (xyz[0][i] * cosz - xyz[1][i] * sinz) / SCALE; + xyz[1][i] = (xyz[0][i] * sinz + xyz[1][i] * cosz) / SCALE; + xyz[0][i] = tmpX; + } +} + + +void draw(int16_t xyz[3][N], color_t col[N]) +{ + static uint16_t oldProjX[N] = {0}; + static uint16_t oldProjY[N] = {0}; + static uint8_t oldDotSize[N] = {0}; + uint16_t i, projX, projY, projZ, dotSize; + + for (i = 0; i < N; i++) + { + projZ = SCALE - (xyz[2][i] + SCALE) / 4; + projX = width / 2 + (xyz[0][i] * projZ / SCALE) / 25; + projY = height / 2 + (xyz[1][i] * projZ / SCALE) / 25; + dotSize = 3 - (xyz[2][i] + SCALE) * 2 / SCALE; + + gdispDrawCircle (oldProjX[i], oldProjY[i], oldDotSize[i], background); + + if (projX > dotSize && + projY > dotSize && + projX < width - dotSize && + projY < height - dotSize) + { + gdispDrawCircle (projX, projY, dotSize, col[i]); + oldProjX[i] = projX; + oldProjY[i] = projY; + oldDotSize[i] = dotSize; + } + } +} + + +/* ---------------------------------------------------------------------- */ + +int16_t angleX = 0, angleY = 0, angleZ = 0; +int16_t speedX = 0, speedY = 0, speedZ = 0; + +int16_t xyz[3][N]; +color_t col[N]; + + +int main (void) +{ + int pass = 0; + + halInit(); + chSysInit(); + gdispInit(); + + chThdSleepMilliseconds (10); + gdispClear (background); /* glitches.. */ + chThdSleepMilliseconds (10); + gdispClear (background); /* glitches.. */ + chThdSleepMilliseconds (10); + gdispClear (background); /* glitches.. */ + + width = (uint16_t)gdispGetWidth(); + height = (uint16_t)gdispGetHeight(); + + initialize(); + + for (;;) + { + matrix(xyz, col); + rotate(xyz, angleX, angleY, angleZ); + draw(xyz, col); + + angleX += speedX; + angleY += speedY; + angleZ += speedZ; + + if (pass > 400) speedY = 1; + if (pass > 800) speedX = 1; + if (pass > 1200) speedZ = 1; + pass++; + + if (angleX >= SCALE) angleX -= SCALE; + else if (angleX < 0) angleX += SCALE; + + if (angleY >= SCALE) angleY -= SCALE; + else if (angleY < 0) angleY += SCALE; + + if (angleZ >= SCALE) angleZ -= SCALE; + else if (angleZ < 0) angleZ += SCALE; + } +} + +/* ---------------------------------------------------------------------- */ diff --git a/3rdparty/readme.txt b/3rdparty/readme.txt new file mode 100644 index 00000000..3f97204a --- /dev/null +++ b/3rdparty/readme.txt @@ -0,0 +1,10 @@ +In this directory, you can find different demos showing how to use ChibiOS/GFX. +The demos in these directories are contributions from users of the ChibiOS/GFX +project and come from different sources. Therefore, the source files of these +demos come with different licenses which can be found on top of the cor- +responding files. +Since these files are not part of the ChibiOS/GFX project, no support for these +demos is provided. And as with all software which can be found in the /demos +directory, use on your own risk. There's no warranty of the correctness +and function of the demos provided. + diff --git a/demos/3rdparty/boing/gfxconf.h b/demos/3rdparty/boing/gfxconf.h deleted file mode 100644 index 45b6d7ab..00000000 --- a/demos/3rdparty/boing/gfxconf.h +++ /dev/null @@ -1,40 +0,0 @@ -/** - * This file has a different license to the rest of the GFX system. - * You can copy, modify and distribute this file as you see fit. - * You do not need to publish your source modifications to this file. - * The only thing you are not permitted to do is to relicense it - * under a different license. - */ - -#ifndef _GFXCONF_H -#define _GFXCONF_H - -/* GFX sub-systems to turn on */ -#define GFX_USE_GDISP TRUE -#define GFX_USE_GWIN FALSE -#define GFX_USE_GEVENT FALSE -#define GFX_USE_GTIMER FALSE -#define GFX_USE_GINPUT FALSE - -/* Features for the GDISP sub-system. */ -#define GDISP_NEED_VALIDATION FALSE -#define GDISP_NEED_CLIP FALSE -#define GDISP_NEED_TEXT FALSE -#define GDISP_NEED_CIRCLE FALSE -#define GDISP_NEED_ELLIPSE FALSE -#define GDISP_NEED_ARC FALSE -#define GDISP_NEED_SCROLL FALSE -#define GDISP_NEED_PIXELREAD FALSE -#define GDISP_NEED_CONTROL FALSE -#define GDISP_NEED_MULTITHREAD FALSE -#define GDISP_NEED_ASYNC FALSE -#define GDISP_NEED_MSGAPI FALSE - -/* Builtin Fonts */ -#define GDISP_INCLUDE_FONT_SMALL FALSE -#define GDISP_INCLUDE_FONT_LARGER FALSE -#define GDISP_INCLUDE_FONT_UI1 FALSE -#define GDISP_INCLUDE_FONT_UI2 FALSE -#define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE - -#endif /* _GFXCONF_H */ diff --git a/demos/3rdparty/boing/main.c b/demos/3rdparty/boing/main.c deleted file mode 100644 index a34cd2a9..00000000 --- a/demos/3rdparty/boing/main.c +++ /dev/null @@ -1,111 +0,0 @@ -/* Derived from the 2011 IOCCC submission by peter.eastman@gmail.com - * http://www.ioccc.org/2011/eastman/eastman.c - * -- - * Public Domain -- but you're looking at this for ideas of techniques - * and methods, not trying to cut&paste an entire application, anyway. - * -- - * When you need to blit an entire screenfull of data to an LCD - * display, the basic idea is to exploit the auto-increment feature of - * the display controller when it writes to screen memory. You start - * by resetting the 'cursor' to the 0,0 position, and then stream - * width*height pixels out. - * -- - * Chris Baird,, April 2013 - */ - -#include -#include "ch.h" -#include "hal.h" -#include "gfx.h" -#include "ssd2119.h" - -#define Lightgrey (HTML2COLOR(0xC0C0C0)) -#define Midgrey (HTML2COLOR(0x606060)) -#define Darkgrey (HTML2COLOR(0x303030)) - - -/* ---------------------------------------------------------------------- */ -/* As of early April 2013, the /gfx extension tries to keep the low-level - * stuff away from our filthy paws. So Code Duplication. - * (Possibly to be replaced with gdispStartStream(), gdispWriteStream() - * and gdispStopStream() in the future.) - */ - -#define GDISP_REG (*((volatile uint16_t *) 0x60000000)) /* DC = 0 */ -#define GDISP_RAM (*((volatile uint16_t *) 0x60100000)) /* DC = 1 */ - -inline void write_index (uint16_t index) { GDISP_REG = index; } -inline void write_data (uint16_t data) { GDISP_RAM = data; } - -#define write_reg(reg, data) { write_index(reg); write_data(data); } - -void reset_cursor (void) -{ - write_reg (SSD2119_REG_X_RAM_ADDR, 0); - write_reg (SSD2119_REG_Y_RAM_ADDR, 0); -} - -#define StartStream() { write_index (SSD2119_REG_RAM_DATA); } -#define WriteStream(x) { write_data (x); } -#define StopStream() /* NOP */ - - -/* ---------------------------------------------------------------------- */ - -void main (void) -{ - uint16_t xx, yy, colour; - - halInit(); - chSysInit(); - gdispInit(); - - uint16_t width = (uint16_t)gdispGetWidth(); - uint16_t height = (uint16_t)gdispGetHeight(); - - float i=height/5+height%2+1, floorstart=height/5-1, spherespin=0.0, - l=width/2, m=height/4, n=.01*width, o=0.0, rotspeed=0.1, h, f, g; - - while (TRUE) - { - reset_cursor (); - StartStream (); - - for (xx=yy=0; - h = (m-yy)/i, f=-.3*(g=(l-xx)/i)+.954*h, yywidth-floorstart) - colour = Darkgrey; /* side wall */ - else - colour = Lightgrey; /* back wall */ - - if (yy > height-floorstart) - if (xx < height-yy || height-yy > width-xx) /* floor */ - colour = Darkgrey; - else - colour = Midgrey; - - if (g*(g+.6)+.09+h*h < 1) - colour >>= 1; /* ball shadow; make it darker */ - } - - WriteStream (colour); /* pixel to the LCD */ - } - - StopStream(); - spherespin += rotspeed; - m += o; - o = m > height-1.75*floorstart ? -.04*height : o+.002*height; - n = (l+=n)width-i ? rotspeed=-rotspeed,-n : n; - } -} - -/* ---------------------------------------------------------------------- */ diff --git a/demos/3rdparty/bubbles/gfxconf.h b/demos/3rdparty/bubbles/gfxconf.h deleted file mode 100644 index 9b1f76a6..00000000 --- a/demos/3rdparty/bubbles/gfxconf.h +++ /dev/null @@ -1,40 +0,0 @@ -/** - * This file has a different license to the rest of the GFX system. - * You can copy, modify and distribute this file as you see fit. - * You do not need to publish your source modifications to this file. - * The only thing you are not permitted to do is to relicense it - * under a different license. - */ - -#ifndef _GFXCONF_H -#define _GFXCONF_H - -/* GFX sub-systems to turn on */ -#define GFX_USE_GDISP TRUE -#define GFX_USE_GWIN FALSE -#define GFX_USE_GEVENT FALSE -#define GFX_USE_GTIMER FALSE -#define GFX_USE_GINPUT FALSE - -/* Features for the GDISP sub-system. */ -#define GDISP_NEED_VALIDATION FALSE -#define GDISP_NEED_CLIP FALSE -#define GDISP_NEED_TEXT FALSE -#define GDISP_NEED_CIRCLE TRUE -#define GDISP_NEED_ELLIPSE FALSE -#define GDISP_NEED_ARC FALSE -#define GDISP_NEED_SCROLL FALSE -#define GDISP_NEED_PIXELREAD FALSE -#define GDISP_NEED_CONTROL FALSE -#define GDISP_NEED_MULTITHREAD FALSE -#define GDISP_NEED_ASYNC FALSE -#define GDISP_NEED_MSGAPI FALSE - -/* Builtin Fonts */ -#define GDISP_INCLUDE_FONT_SMALL FALSE -#define GDISP_INCLUDE_FONT_LARGER FALSE -#define GDISP_INCLUDE_FONT_UI1 FALSE -#define GDISP_INCLUDE_FONT_UI2 FALSE -#define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE - -#endif /* _GFXCONF_H */ diff --git a/demos/3rdparty/bubbles/main.c b/demos/3rdparty/bubbles/main.c deleted file mode 100644 index 81c5dbe3..00000000 --- a/demos/3rdparty/bubbles/main.c +++ /dev/null @@ -1,194 +0,0 @@ -/* Microcontroller graphic demo by Pascal Piazzalunga - * admin@serveurperso.com http://www.serveurperso.com - * https://www.youtube.com/watch?v=wyuJ-dqS2to - * Ported to stm32/ChibiOS/glx by Chris Baird. - * It's spinnin' bubbles, man. - * -- - * Licencing? Ask Pascal. Let's assume it is freely-distributable and - * modifiable, provided his name is kept in the source. - * -- - * Chris Baird,, April 2013 - */ - -#include -#include "ch.h" -#include "hal.h" -#include "gfx.h" - - -/* ---------------------------------------------------------------------- */ - -#define N 1024 /* Number of dots */ -#define SCALE 8192 -#define INCREMENT 512 /* INCREMENT = SCALE / sqrt(N) * 2 */ -#define PI2 6.283185307179586476925286766559 - -#define background RGB2COLOR(0,0,0) - -uint16_t width, height; -int16_t sine[SCALE+(SCALE/4)]; -int16_t *cosi = &sine[SCALE/4]; /* cos(x) = sin(x+90d)... */ - - -void initialize (void) -{ - uint16_t i; - - /* if you change the SCALE*1.25 back to SCALE, the program will - * occassionally overrun the cosi array -- however this actually - * produces some interesting effects as the BUBBLES LOSE CONTROL!!!! - */ - for (i = 0; i < SCALE+(SCALE/4); i++) - //sine[i] = (-SCALE/2) + (int)(sinf(PI2 * i / SCALE) * sinf(PI2 * i / SCALE) * SCALE); - sine[i] = (int)(sinf(PI2 * i / SCALE) * SCALE); -} - - -void matrix (int16_t xyz[3][N], color_t col[N]) -{ - static uint32_t t = 0; - int16_t x = -SCALE, y = -SCALE; - uint16_t i, s, d; - uint8_t red,grn,blu; - -#define RED_COLORS (32) -#define GREEN_COLORS (64) -#define BLUE_COLORS (32) - - for (i = 0; i < N; i++) - { - xyz[0][i] = x; - xyz[1][i] = y; - - d = sqrtf(x * x + y * y); /* originally a fastsqrt() call */ - s = sine[(t * 30) % SCALE] + SCALE; - - xyz[2][i] = sine[(d + s) % SCALE] * sine[(t * 10) % SCALE] / SCALE / 2; - - red = (cosi[xyz[2][i] + SCALE / 2] + SCALE) * - (RED_COLORS - 1) / SCALE / 2; - grn = (cosi[(xyz[2][i] + SCALE / 2 + 2 * SCALE / 3) % SCALE] + SCALE) * - (GREEN_COLORS - 1) / SCALE / 2; - blu = (cosi[(xyz[2][i] + SCALE / 2 + SCALE / 3) % SCALE] + SCALE) * - (BLUE_COLORS - 1) / SCALE / 2; - col[i] = ((red << 11) + (grn << 5) + blu); - - x += INCREMENT; - - if (x >= SCALE) x = -SCALE, y += INCREMENT; - } - t++; -} - - -void rotate (int16_t xyz[3][N], uint16_t angleX, uint16_t angleY, uint16_t angleZ) -{ - uint16_t i; - int16_t tmpX, tmpY; - int16_t sinx = sine[angleX], cosx = cosi[angleX]; - int16_t siny = sine[angleY], cosy = cosi[angleY]; - int16_t sinz = sine[angleZ], cosz = cosi[angleZ]; - - for (i = 0; i < N; i++) - { - tmpX = (xyz[0][i] * cosx - xyz[2][i] * sinx) / SCALE; - xyz[2][i] = (xyz[0][i] * sinx + xyz[2][i] * cosx) / SCALE; - xyz[0][i] = tmpX; - - tmpY = (xyz[1][i] * cosy - xyz[2][i] * siny) / SCALE; - xyz[2][i] = (xyz[1][i] * siny + xyz[2][i] * cosy) / SCALE; - xyz[1][i] = tmpY; - - tmpX = (xyz[0][i] * cosz - xyz[1][i] * sinz) / SCALE; - xyz[1][i] = (xyz[0][i] * sinz + xyz[1][i] * cosz) / SCALE; - xyz[0][i] = tmpX; - } -} - - -void draw(int16_t xyz[3][N], color_t col[N]) -{ - static uint16_t oldProjX[N] = {0}; - static uint16_t oldProjY[N] = {0}; - static uint8_t oldDotSize[N] = {0}; - uint16_t i, projX, projY, projZ, dotSize; - - for (i = 0; i < N; i++) - { - projZ = SCALE - (xyz[2][i] + SCALE) / 4; - projX = width / 2 + (xyz[0][i] * projZ / SCALE) / 25; - projY = height / 2 + (xyz[1][i] * projZ / SCALE) / 25; - dotSize = 3 - (xyz[2][i] + SCALE) * 2 / SCALE; - - gdispDrawCircle (oldProjX[i], oldProjY[i], oldDotSize[i], background); - - if (projX > dotSize && - projY > dotSize && - projX < width - dotSize && - projY < height - dotSize) - { - gdispDrawCircle (projX, projY, dotSize, col[i]); - oldProjX[i] = projX; - oldProjY[i] = projY; - oldDotSize[i] = dotSize; - } - } -} - - -/* ---------------------------------------------------------------------- */ - -int16_t angleX = 0, angleY = 0, angleZ = 0; -int16_t speedX = 0, speedY = 0, speedZ = 0; - -int16_t xyz[3][N]; -color_t col[N]; - - -int main (void) -{ - int pass = 0; - - halInit(); - chSysInit(); - gdispInit(); - - chThdSleepMilliseconds (10); - gdispClear (background); /* glitches.. */ - chThdSleepMilliseconds (10); - gdispClear (background); /* glitches.. */ - chThdSleepMilliseconds (10); - gdispClear (background); /* glitches.. */ - - width = (uint16_t)gdispGetWidth(); - height = (uint16_t)gdispGetHeight(); - - initialize(); - - for (;;) - { - matrix(xyz, col); - rotate(xyz, angleX, angleY, angleZ); - draw(xyz, col); - - angleX += speedX; - angleY += speedY; - angleZ += speedZ; - - if (pass > 400) speedY = 1; - if (pass > 800) speedX = 1; - if (pass > 1200) speedZ = 1; - pass++; - - if (angleX >= SCALE) angleX -= SCALE; - else if (angleX < 0) angleX += SCALE; - - if (angleY >= SCALE) angleY -= SCALE; - else if (angleY < 0) angleY += SCALE; - - if (angleZ >= SCALE) angleZ -= SCALE; - else if (angleZ < 0) angleZ += SCALE; - } -} - -/* ---------------------------------------------------------------------- */ diff --git a/demos/3rdparty/readme.txt b/demos/3rdparty/readme.txt deleted file mode 100644 index 3f97204a..00000000 --- a/demos/3rdparty/readme.txt +++ /dev/null @@ -1,10 +0,0 @@ -In this directory, you can find different demos showing how to use ChibiOS/GFX. -The demos in these directories are contributions from users of the ChibiOS/GFX -project and come from different sources. Therefore, the source files of these -demos come with different licenses which can be found on top of the cor- -responding files. -Since these files are not part of the ChibiOS/GFX project, no support for these -demos is provided. And as with all software which can be found in the /demos -directory, use on your own risk. There's no warranty of the correctness -and function of the demos provided. - diff --git a/demos/applications/mandelbrot/gfxconf.h b/demos/applications/mandelbrot/gfxconf.h index 7093884f..aeb1f714 100644 --- a/demos/applications/mandelbrot/gfxconf.h +++ b/demos/applications/mandelbrot/gfxconf.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/applications/mandelbrot/main.c b/demos/applications/mandelbrot/main.c index 969a9c92..cdcfb8f2 100644 --- a/demos/applications/mandelbrot/main.c +++ b/demos/applications/mandelbrot/main.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/applications/notepad/gfxconf.h b/demos/applications/notepad/gfxconf.h index 7ba6483b..d44b0830 100644 --- a/demos/applications/notepad/gfxconf.h +++ b/demos/applications/notepad/gfxconf.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/applications/notepad/main.c b/demos/applications/notepad/main.c index 1dcfd154..982b796a 100644 --- a/demos/applications/notepad/main.c +++ b/demos/applications/notepad/main.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/benchmarks/gfxconf.h b/demos/benchmarks/gfxconf.h index d12025e5..c4bacefd 100644 --- a/demos/benchmarks/gfxconf.h +++ b/demos/benchmarks/gfxconf.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/benchmarks/main.c b/demos/benchmarks/main.c index c3cef762..2740cd9f 100644 --- a/demos/benchmarks/main.c +++ b/demos/benchmarks/main.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gadc/gfxconf.h b/demos/modules/gadc/gfxconf.h index 557184cc..e4da593f 100644 --- a/demos/modules/gadc/gfxconf.h +++ b/demos/modules/gadc/gfxconf.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gadc/gwinosc.c b/demos/modules/gadc/gwinosc.c index 49d9fe22..4ef1f5f5 100644 --- a/demos/modules/gadc/gwinosc.c +++ b/demos/modules/gadc/gwinosc.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gadc/gwinosc.h b/demos/modules/gadc/gwinosc.h index 11644be4..6f025669 100644 --- a/demos/modules/gadc/gwinosc.h +++ b/demos/modules/gadc/gwinosc.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gadc/main.c b/demos/modules/gadc/main.c index f506a473..8b649d30 100644 --- a/demos/modules/gadc/main.c +++ b/demos/modules/gadc/main.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gaudin/gfxconf.h b/demos/modules/gaudin/gfxconf.h index d9db73a5..ec79e1f5 100644 --- a/demos/modules/gaudin/gfxconf.h +++ b/demos/modules/gaudin/gfxconf.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gaudin/gwinosc.c b/demos/modules/gaudin/gwinosc.c index 5a2867c1..8422fb22 100644 --- a/demos/modules/gaudin/gwinosc.c +++ b/demos/modules/gaudin/gwinosc.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gaudin/gwinosc.h b/demos/modules/gaudin/gwinosc.h index 9c51e548..63cfc05b 100644 --- a/demos/modules/gaudin/gwinosc.h +++ b/demos/modules/gaudin/gwinosc.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gaudin/main.c b/demos/modules/gaudin/main.c index f532b324..7a69989d 100644 --- a/demos/modules/gaudin/main.c +++ b/demos/modules/gaudin/main.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gdisp/gdisp_basics/gfxconf.h b/demos/modules/gdisp/gdisp_basics/gfxconf.h index f64884a0..ebebd1b3 100644 --- a/demos/modules/gdisp/gdisp_basics/gfxconf.h +++ b/demos/modules/gdisp/gdisp_basics/gfxconf.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gdisp/gdisp_basics/main.c b/demos/modules/gdisp/gdisp_basics/main.c index 134f2473..bbc3e399 100644 --- a/demos/modules/gdisp/gdisp_basics/main.c +++ b/demos/modules/gdisp/gdisp_basics/main.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gdisp/gdisp_circles/gfxconf.h b/demos/modules/gdisp/gdisp_circles/gfxconf.h index cc60c46b..b0a7b5c9 100644 --- a/demos/modules/gdisp/gdisp_circles/gfxconf.h +++ b/demos/modules/gdisp/gdisp_circles/gfxconf.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gdisp/gdisp_circles/main.c b/demos/modules/gdisp/gdisp_circles/main.c index 395af009..e6b985dc 100644 --- a/demos/modules/gdisp/gdisp_circles/main.c +++ b/demos/modules/gdisp/gdisp_circles/main.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gdisp/gdisp_images/gfxconf.h b/demos/modules/gdisp/gdisp_images/gfxconf.h index e76ddd72..d4a18671 100644 --- a/demos/modules/gdisp/gdisp_images/gfxconf.h +++ b/demos/modules/gdisp/gdisp_images/gfxconf.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gdisp/gdisp_images/main.c b/demos/modules/gdisp/gdisp_images/main.c index a6fa58d8..23170f5e 100644 --- a/demos/modules/gdisp/gdisp_images/main.c +++ b/demos/modules/gdisp/gdisp_images/main.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gdisp/gdisp_images_animated/gfxconf.h b/demos/modules/gdisp/gdisp_images_animated/gfxconf.h index cd368e95..461c965f 100644 --- a/demos/modules/gdisp/gdisp_images_animated/gfxconf.h +++ b/demos/modules/gdisp/gdisp_images_animated/gfxconf.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /** * This file has a different license to the rest of the GFX system. * You can copy, modify and distribute this file as you see fit. diff --git a/demos/modules/gdisp/gdisp_images_animated/main.c b/demos/modules/gdisp/gdisp_images_animated/main.c index d5c3d712..cb0d5580 100644 --- a/demos/modules/gdisp/gdisp_images_animated/main.c +++ b/demos/modules/gdisp/gdisp_images_animated/main.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ #include "ch.h" #include "hal.h" diff --git a/demos/modules/gdisp/gdisp_images_animated/testanim.h b/demos/modules/gdisp/gdisp_images_animated/testanim.h index ce2ba8c7..a646a8d4 100644 --- a/demos/modules/gdisp/gdisp_images_animated/testanim.h +++ b/demos/modules/gdisp/gdisp_images_animated/testanim.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /** * This file was generated from "testanim.gif" using... * diff --git a/demos/modules/gdisp/gdisp_text/gfxconf.h b/demos/modules/gdisp/gdisp_text/gfxconf.h index 007de8e4..22f27b18 100644 --- a/demos/modules/gdisp/gdisp_text/gfxconf.h +++ b/demos/modules/gdisp/gdisp_text/gfxconf.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gdisp/gdisp_text/main.c b/demos/modules/gdisp/gdisp_text/main.c index 4062e07c..049334c0 100644 --- a/demos/modules/gdisp/gdisp_text/main.c +++ b/demos/modules/gdisp/gdisp_text/main.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/ginput/touch_driver_test/gfxconf.h b/demos/modules/ginput/touch_driver_test/gfxconf.h index 87787527..2bac9c37 100644 --- a/demos/modules/ginput/touch_driver_test/gfxconf.h +++ b/demos/modules/ginput/touch_driver_test/gfxconf.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/ginput/touch_driver_test/main.c b/demos/modules/ginput/touch_driver_test/main.c index 80c85273..77b3daa6 100644 --- a/demos/modules/ginput/touch_driver_test/main.c +++ b/demos/modules/ginput/touch_driver_test/main.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/graph/gfxconf.h b/demos/modules/graph/gfxconf.h index ee36fb93..2632edc5 100644 --- a/demos/modules/graph/gfxconf.h +++ b/demos/modules/graph/gfxconf.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/graph/main.c b/demos/modules/graph/main.c index 79935083..47d30608 100644 --- a/demos/modules/graph/main.c +++ b/demos/modules/graph/main.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gtimer/gfxconf.h b/demos/modules/gtimer/gfxconf.h index 931357a5..cef9232e 100644 --- a/demos/modules/gtimer/gfxconf.h +++ b/demos/modules/gtimer/gfxconf.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gtimer/main.c b/demos/modules/gtimer/main.c index 403491ea..a0e6de4c 100644 --- a/demos/modules/gtimer/main.c +++ b/demos/modules/gtimer/main.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gwin/basic/gfxconf.h b/demos/modules/gwin/basic/gfxconf.h index e567e5a0..5f3b6fe1 100644 --- a/demos/modules/gwin/basic/gfxconf.h +++ b/demos/modules/gwin/basic/gfxconf.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /** * This file has a different license to the rest of the GFX system. * You can copy, modify and distribute this file as you see fit. diff --git a/demos/modules/gwin/basic/main.c b/demos/modules/gwin/basic/main.c index a0326fac..bf5f613a 100644 --- a/demos/modules/gwin/basic/main.c +++ b/demos/modules/gwin/basic/main.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ #include "ch.h" #include "hal.h" diff --git a/demos/modules/gwin/console/gfxconf.h b/demos/modules/gwin/console/gfxconf.h index 178beb86..bccd4b77 100644 --- a/demos/modules/gwin/console/gfxconf.h +++ b/demos/modules/gwin/console/gfxconf.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /** * This file has a different license to the rest of the GFX system. * You can copy, modify and distribute this file as you see fit. diff --git a/demos/modules/gwin/console/main.c b/demos/modules/gwin/console/main.c index 90ebf86f..ee6ef099 100644 --- a/demos/modules/gwin/console/main.c +++ b/demos/modules/gwin/console/main.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ #include "ch.h" #include "hal.h" diff --git a/demos/modules/gwin/slider/gfxconf.h b/demos/modules/gwin/slider/gfxconf.h index 947fc4c8..7e763b41 100644 --- a/demos/modules/gwin/slider/gfxconf.h +++ b/demos/modules/gwin/slider/gfxconf.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /** * This file has a different license to the rest of the GFX system. * You can copy, modify and distribute this file as you see fit. diff --git a/demos/modules/gwin/slider/main.c b/demos/modules/gwin/slider/main.c index 19a56f6a..b87d6bb8 100644 --- a/demos/modules/gwin/slider/main.c +++ b/demos/modules/gwin/slider/main.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ #include "ch.h" #include "hal.h" diff --git a/demos/modules/tdisp/gfxconf.h b/demos/modules/tdisp/gfxconf.h index cdc0dfdd..6eadfd9d 100644 --- a/demos/modules/tdisp/gfxconf.h +++ b/demos/modules/tdisp/gfxconf.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/tdisp/main.c b/demos/modules/tdisp/main.c index 41a6aa34..35ed506f 100644 --- a/demos/modules/tdisp/main.c +++ b/demos/modules/tdisp/main.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/drivers/gadc/AT91SAM7/gadc_lld.c b/drivers/gadc/AT91SAM7/gadc_lld.c index 68866132..fc13661f 100644 --- a/drivers/gadc/AT91SAM7/gadc_lld.c +++ b/drivers/gadc/AT91SAM7/gadc_lld.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h b/drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h index 6f23db17..58ef2e15 100644 --- a/drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h +++ b/drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h diff --git a/drivers/gadc/AT91SAM7/gadc_lld_config.h b/drivers/gadc/AT91SAM7/gadc_lld_config.h index 8ba71f20..6f98d921 100644 --- a/drivers/gadc/AT91SAM7/gadc_lld_config.h +++ b/drivers/gadc/AT91SAM7/gadc_lld_config.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gadc/AT91SAM7/gadc_lld_config.h diff --git a/drivers/gaudin/gadc/gaudin_lld.c b/drivers/gaudin/gadc/gaudin_lld.c index 39673ab3..ba290742 100644 --- a/drivers/gaudin/gadc/gaudin_lld.c +++ b/drivers/gaudin/gadc/gaudin_lld.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gaudin/gadc/gaudin_lld_board_olimexsam7ex256.h b/drivers/gaudin/gadc/gaudin_lld_board_olimexsam7ex256.h index 283a2914..9ad4a0ad 100644 --- a/drivers/gaudin/gadc/gaudin_lld_board_olimexsam7ex256.h +++ b/drivers/gaudin/gadc/gaudin_lld_board_olimexsam7ex256.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gaudin/gadc/gaudin_lld_board_olimexsam7ex256.h diff --git a/drivers/gaudin/gadc/gaudin_lld_config.h b/drivers/gaudin/gadc/gaudin_lld_config.h index 402e4180..7412e8a0 100644 --- a/drivers/gaudin/gadc/gaudin_lld_config.h +++ b/drivers/gaudin/gadc/gaudin_lld_config.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gaudin/gadc/gaudin_lld_config.h diff --git a/drivers/gdisp/ILI9320/gdisp_lld.c b/drivers/gdisp/ILI9320/gdisp_lld.c index 857d64e2..07e8e57d 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld.c +++ b/drivers/gdisp/ILI9320/gdisp_lld.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/ILI9320/gdisp_lld.c diff --git a/drivers/gdisp/ILI9320/gdisp_lld_board_example.h b/drivers/gdisp/ILI9320/gdisp_lld_board_example.h index 2f762c42..ecabcdea 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld_board_example.h +++ b/drivers/gdisp/ILI9320/gdisp_lld_board_example.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/ILI9320/gdisp_lld_board_example.h diff --git a/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h b/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h index f208f917..cdc68da3 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h +++ b/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2013 Dmytro Milinevskyy diff --git a/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h b/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h index 7e15a2e0..86bca28f 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h +++ b/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h diff --git a/drivers/gdisp/ILI9320/gdisp_lld_config.h b/drivers/gdisp/ILI9320/gdisp_lld_config.h index a2a0a66b..091b8a6a 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld_config.h +++ b/drivers/gdisp/ILI9320/gdisp_lld_config.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/ILI9325/gdisp_lld.c b/drivers/gdisp/ILI9325/gdisp_lld.c index d101d1dd..95817223 100644 --- a/drivers/gdisp/ILI9325/gdisp_lld.c +++ b/drivers/gdisp/ILI9325/gdisp_lld.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/ILI9325/gdisp_lld.c diff --git a/drivers/gdisp/ILI9325/gdisp_lld_board_example.h b/drivers/gdisp/ILI9325/gdisp_lld_board_example.h index 16de9924..7fc43d82 100644 --- a/drivers/gdisp/ILI9325/gdisp_lld_board_example.h +++ b/drivers/gdisp/ILI9325/gdisp_lld_board_example.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/ILI9325/gdisp_lld_board_example.h diff --git a/drivers/gdisp/ILI9325/gdisp_lld_board_hy_stm32_100p.h b/drivers/gdisp/ILI9325/gdisp_lld_board_hy_stm32_100p.h index 1915f1cc..19410751 100644 --- a/drivers/gdisp/ILI9325/gdisp_lld_board_hy_stm32_100p.h +++ b/drivers/gdisp/ILI9325/gdisp_lld_board_hy_stm32_100p.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /* driver quickly hacked together from a chinese sourcecode that came diff --git a/drivers/gdisp/ILI9325/gdisp_lld_config.h b/drivers/gdisp/ILI9325/gdisp_lld_config.h index 03ef5f05..0c6af677 100644 --- a/drivers/gdisp/ILI9325/gdisp_lld_config.h +++ b/drivers/gdisp/ILI9325/gdisp_lld_config.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/ILI9481/gdisp_lld.c b/drivers/gdisp/ILI9481/gdisp_lld.c index 2ea8c6e7..edc13722 100644 --- a/drivers/gdisp/ILI9481/gdisp_lld.c +++ b/drivers/gdisp/ILI9481/gdisp_lld.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/ILI9481/gdisp_lld.c diff --git a/drivers/gdisp/ILI9481/gdisp_lld_board_example.h b/drivers/gdisp/ILI9481/gdisp_lld_board_example.h index de459641..3b39bc0b 100644 --- a/drivers/gdisp/ILI9481/gdisp_lld_board_example.h +++ b/drivers/gdisp/ILI9481/gdisp_lld_board_example.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/ILI9481/gdisp_lld_board_example.h diff --git a/drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h b/drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h index 3fc3f632..cea70f72 100644 --- a/drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h +++ b/drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h diff --git a/drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h b/drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h index ce7af96f..0d380a06 100644 --- a/drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h +++ b/drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h diff --git a/drivers/gdisp/ILI9481/gdisp_lld_config.h b/drivers/gdisp/ILI9481/gdisp_lld_config.h index c1fc7a2d..cc6312ba 100644 --- a/drivers/gdisp/ILI9481/gdisp_lld_config.h +++ b/drivers/gdisp/ILI9481/gdisp_lld_config.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/ILI9481/gdisp_lld_config.h diff --git a/drivers/gdisp/Nokia6610GE12/GE12.h b/drivers/gdisp/Nokia6610GE12/GE12.h index 388e1147..5c1e7e82 100644 --- a/drivers/gdisp/Nokia6610GE12/GE12.h +++ b/drivers/gdisp/Nokia6610GE12/GE12.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/Nokia6610GE12/gdisp_lld.c b/drivers/gdisp/Nokia6610GE12/gdisp_lld.c index 0f46e267..258504f6 100644 --- a/drivers/gdisp/Nokia6610GE12/gdisp_lld.c +++ b/drivers/gdisp/Nokia6610GE12/gdisp_lld.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/Nokia6610GE12/gdisp_lld.c diff --git a/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_example.h b/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_example.h index 53a7fad7..e4a1fa80 100644 --- a/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_example.h +++ b/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_example.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_olimexsam7ex256.h b/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_olimexsam7ex256.h index 3fede6d7..38a98a01 100644 --- a/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_olimexsam7ex256.h +++ b/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_olimexsam7ex256.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/Nokia6610GE12/gdisp_lld_config.h b/drivers/gdisp/Nokia6610GE12/gdisp_lld_config.h index cca96c0e..dc68affb 100644 --- a/drivers/gdisp/Nokia6610GE12/gdisp_lld_config.h +++ b/drivers/gdisp/Nokia6610GE12/gdisp_lld_config.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/Nokia6610GE8/GE8.h b/drivers/gdisp/Nokia6610GE8/GE8.h index 18c2ffcb..b5ef7df4 100644 --- a/drivers/gdisp/Nokia6610GE8/GE8.h +++ b/drivers/gdisp/Nokia6610GE8/GE8.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/Nokia6610GE8/gdisp_lld.c b/drivers/gdisp/Nokia6610GE8/gdisp_lld.c index 65431c9b..d803b4da 100644 --- a/drivers/gdisp/Nokia6610GE8/gdisp_lld.c +++ b/drivers/gdisp/Nokia6610GE8/gdisp_lld.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/Nokia6610GE8/gdisp_lld.c diff --git a/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_example.h b/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_example.h index 2dc589b7..fa3475f7 100644 --- a/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_example.h +++ b/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_example.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_olimexsam7ex256.h b/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_olimexsam7ex256.h index b3b88b7c..217ad62d 100644 --- a/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_olimexsam7ex256.h +++ b/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_olimexsam7ex256.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/Nokia6610GE8/gdisp_lld_board_olimexsam7ex256.h diff --git a/drivers/gdisp/Nokia6610GE8/gdisp_lld_config.h b/drivers/gdisp/Nokia6610GE8/gdisp_lld_config.h index 9893b8a4..4cb7b19e 100644 --- a/drivers/gdisp/Nokia6610GE8/gdisp_lld_config.h +++ b/drivers/gdisp/Nokia6610GE8/gdisp_lld_config.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/S6D1121/gdisp_lld.c b/drivers/gdisp/S6D1121/gdisp_lld.c index 671b8f86..c7bdced6 100644 --- a/drivers/gdisp/S6D1121/gdisp_lld.c +++ b/drivers/gdisp/S6D1121/gdisp_lld.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/S6D1121/gdisp_lld.c diff --git a/drivers/gdisp/S6D1121/gdisp_lld_board_example.h b/drivers/gdisp/S6D1121/gdisp_lld_board_example.h index 782c5918..e6d55f34 100644 --- a/drivers/gdisp/S6D1121/gdisp_lld_board_example.h +++ b/drivers/gdisp/S6D1121/gdisp_lld_board_example.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/S6D1121/gdisp_lld_board_olimex_e407.h b/drivers/gdisp/S6D1121/gdisp_lld_board_olimex_e407.h index ee4759b2..79cf8ea7 100644 --- a/drivers/gdisp/S6D1121/gdisp_lld_board_olimex_e407.h +++ b/drivers/gdisp/S6D1121/gdisp_lld_board_olimex_e407.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/S6D1121/gdisp_lld_config.h b/drivers/gdisp/S6D1121/gdisp_lld_config.h index 0ae68848..4eca9ad2 100644 --- a/drivers/gdisp/S6D1121/gdisp_lld_config.h +++ b/drivers/gdisp/S6D1121/gdisp_lld_config.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD1289/gdisp_lld.c b/drivers/gdisp/SSD1289/gdisp_lld.c index f6531f2c..a3aa8b3d 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld.c +++ b/drivers/gdisp/SSD1289/gdisp_lld.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/SSD1289/gdisp_lld.c diff --git a/drivers/gdisp/SSD1289/gdisp_lld_board_example.h b/drivers/gdisp/SSD1289/gdisp_lld_board_example.h index 7e8389d7..d1e92406 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld_board_example.h +++ b/drivers/gdisp/SSD1289/gdisp_lld_board_example.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD1289/gdisp_lld_board_example_fsmc.h b/drivers/gdisp/SSD1289/gdisp_lld_board_example_fsmc.h index b0451747..d041cf39 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld_board_example_fsmc.h +++ b/drivers/gdisp/SSD1289/gdisp_lld_board_example_fsmc.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h b/drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h index 19f1108c..bc87721d 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h +++ b/drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD1289/gdisp_lld_config.h b/drivers/gdisp/SSD1289/gdisp_lld_config.h index 8b26e489..de22de71 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld_config.h +++ b/drivers/gdisp/SSD1289/gdisp_lld_config.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD1963/gdisp_lld.c b/drivers/gdisp/SSD1963/gdisp_lld.c index c407a27e..02c73db9 100644 --- a/drivers/gdisp/SSD1963/gdisp_lld.c +++ b/drivers/gdisp/SSD1963/gdisp_lld.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/SSD1963/gdisp_lld.c diff --git a/drivers/gdisp/SSD1963/gdisp_lld_board_example_fsmc.h b/drivers/gdisp/SSD1963/gdisp_lld_board_example_fsmc.h index 8de399d9..059c5332 100644 --- a/drivers/gdisp/SSD1963/gdisp_lld_board_example_fsmc.h +++ b/drivers/gdisp/SSD1963/gdisp_lld_board_example_fsmc.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD1963/gdisp_lld_board_example_gpio.h b/drivers/gdisp/SSD1963/gdisp_lld_board_example_gpio.h index ad9fa8e4..c6080933 100644 --- a/drivers/gdisp/SSD1963/gdisp_lld_board_example_gpio.h +++ b/drivers/gdisp/SSD1963/gdisp_lld_board_example_gpio.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD1963/gdisp_lld_config.h b/drivers/gdisp/SSD1963/gdisp_lld_config.h index 7fa6a97c..bcc6c4ef 100644 --- a/drivers/gdisp/SSD1963/gdisp_lld_config.h +++ b/drivers/gdisp/SSD1963/gdisp_lld_config.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD1963/gdisp_lld_panel_example.h b/drivers/gdisp/SSD1963/gdisp_lld_panel_example.h index 109d7332..9d2a058c 100644 --- a/drivers/gdisp/SSD1963/gdisp_lld_panel_example.h +++ b/drivers/gdisp/SSD1963/gdisp_lld_panel_example.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD1963/ssd1963.h b/drivers/gdisp/SSD1963/ssd1963.h index a56c142b..8c30f964 100644 --- a/drivers/gdisp/SSD1963/ssd1963.h +++ b/drivers/gdisp/SSD1963/ssd1963.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD2119/gdisp_lld.c b/drivers/gdisp/SSD2119/gdisp_lld.c index a7ad7b1a..b4b41998 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld.c +++ b/drivers/gdisp/SSD2119/gdisp_lld.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/SSD2119/gdisp_lld.c diff --git a/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h b/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h index bf7b3890..fdc49ccd 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h +++ b/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h diff --git a/drivers/gdisp/SSD2119/gdisp_lld_config.h b/drivers/gdisp/SSD2119/gdisp_lld_config.h index b5af495c..d4f8cbd8 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld_config.h +++ b/drivers/gdisp/SSD2119/gdisp_lld_config.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/SSD2119/gdisp_lld_config.h diff --git a/drivers/gdisp/SSD2119/ssd2119.h b/drivers/gdisp/SSD2119/ssd2119.h index c3ffa00f..f892a6cc 100644 --- a/drivers/gdisp/SSD2119/ssd2119.h +++ b/drivers/gdisp/SSD2119/ssd2119.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/SSD2119/ssd2119.h diff --git a/drivers/gdisp/TestStub/gdisp_lld.c b/drivers/gdisp/TestStub/gdisp_lld.c index 19ce5b3c..f87b6617 100644 --- a/drivers/gdisp/TestStub/gdisp_lld.c +++ b/drivers/gdisp/TestStub/gdisp_lld.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/gdisp/TestStub/gdisp_lld.c diff --git a/drivers/gdisp/TestStub/gdisp_lld_config.h b/drivers/gdisp/TestStub/gdisp_lld_config.h index c0fa6a65..a4f6ecac 100644 --- a/drivers/gdisp/TestStub/gdisp_lld_config.h +++ b/drivers/gdisp/TestStub/gdisp_lld_config.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/dial/GADC/ginput_lld_dial.c b/drivers/ginput/dial/GADC/ginput_lld_dial.c index ced71a27..6bf3607b 100644 --- a/drivers/ginput/dial/GADC/ginput_lld_dial.c +++ b/drivers/ginput/dial/GADC/ginput_lld_dial.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/ginput/dial/GADC/ginput_lld_dial.c diff --git a/drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h b/drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h index 13788188..99eaaf23 100644 --- a/drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h +++ b/drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h diff --git a/drivers/ginput/dial/GADC/ginput_lld_dial_config.h b/drivers/ginput/dial/GADC/ginput_lld_dial_config.h index 535b09a6..e8d07406 100644 --- a/drivers/ginput/dial/GADC/ginput_lld_dial_config.h +++ b/drivers/ginput/dial/GADC/ginput_lld_dial_config.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/ginput/dial/GADC/ginput_lld_dial_config.h diff --git a/drivers/ginput/toggle/Pal/ginput_lld_toggle.c b/drivers/ginput/toggle/Pal/ginput_lld_toggle.c index 04805d04..2eca8ae8 100644 --- a/drivers/ginput/toggle/Pal/ginput_lld_toggle.c +++ b/drivers/ginput/toggle/Pal/ginput_lld_toggle.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_example.h b/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_example.h index 34d9cdaa..803a9738 100644 --- a/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_example.h +++ b/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_example.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_olimexsam7ex256.h b/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_olimexsam7ex256.h index 0189e3f8..2fcc1d19 100644 --- a/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_olimexsam7ex256.h +++ b/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_olimexsam7ex256.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/ginput/toggle/Pal/ginput_lld_toggle_board_olimexsam7ex256.h diff --git a/drivers/ginput/toggle/Pal/ginput_lld_toggle_config.h b/drivers/ginput/toggle/Pal/ginput_lld_toggle_config.h index a0402777..b03d705c 100644 --- a/drivers/ginput/toggle/Pal/ginput_lld_toggle_config.h +++ b/drivers/ginput/toggle/Pal/ginput_lld_toggle_config.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c b/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c index 9371760a..99374503 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_example.h b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_example.h index 2e3f3245..503ba112 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_example.h +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_example.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_firebull_stm32f103.h b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_firebull_stm32f103.h index 7758166b..93f94c2b 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_firebull_stm32f103.h +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_firebull_stm32f103.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_olimex_stm32_e407.h b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_olimex_stm32_e407.h index 21ba5294..530c21bd 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_olimex_stm32_e407.h +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_olimex_stm32_e407.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_config.h b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_config.h index 6b8579e3..6701d512 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_config.h +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_config.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/MCU/ginput_lld_mouse.c b/drivers/ginput/touch/MCU/ginput_lld_mouse.c index 1b7e1988..22ac682e 100644 --- a/drivers/ginput/touch/MCU/ginput_lld_mouse.c +++ b/drivers/ginput/touch/MCU/ginput_lld_mouse.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/MCU/ginput_lld_mouse_board_example.h b/drivers/ginput/touch/MCU/ginput_lld_mouse_board_example.h index 1c6aa970..bfcc03a5 100644 --- a/drivers/ginput/touch/MCU/ginput_lld_mouse_board_example.h +++ b/drivers/ginput/touch/MCU/ginput_lld_mouse_board_example.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_pic32mx_lcd.h b/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_pic32mx_lcd.h index 4f55124d..e63db6fb 100644 --- a/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_pic32mx_lcd.h +++ b/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_pic32mx_lcd.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_stm32_lcd.h b/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_stm32_lcd.h index 0309b655..7f192103 100644 --- a/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_stm32_lcd.h +++ b/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_stm32_lcd.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/MCU/ginput_lld_mouse_config.h b/drivers/ginput/touch/MCU/ginput_lld_mouse_config.h index 4515517f..b8d1e619 100644 --- a/drivers/ginput/touch/MCU/ginput_lld_mouse_config.h +++ b/drivers/ginput/touch/MCU/ginput_lld_mouse_config.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c b/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c index 696795cc..650dd417 100644 --- a/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c +++ b/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/ginput/touch/STMPE811/ginput_lld_mouse.c diff --git a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_embest_dmstf4bb.h b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_embest_dmstf4bb.h index a0d5a0de..5fbf965d 100644 --- a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_embest_dmstf4bb.h +++ b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_embest_dmstf4bb.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_example.h b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_example.h index 453924b0..dc323038 100644 --- a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_example.h +++ b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_example.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_config.h b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_config.h index 871a6c2e..2ffce3b0 100644 --- a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_config.h +++ b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_config.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/STMPE811/stmpe811.h b/drivers/ginput/touch/STMPE811/stmpe811.h index 36101cd4..e1adc999 100644 --- a/drivers/ginput/touch/STMPE811/stmpe811.h +++ b/drivers/ginput/touch/STMPE811/stmpe811.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012 Joel Bodenmann aka Tectu diff --git a/drivers/multiple/Win32/gdisp_lld.c b/drivers/multiple/Win32/gdisp_lld.c index 7311a5af..a6a3620f 100644 --- a/drivers/multiple/Win32/gdisp_lld.c +++ b/drivers/multiple/Win32/gdisp_lld.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/multiple/Win32/gdisp_lld.c diff --git a/drivers/multiple/Win32/gdisp_lld_config.h b/drivers/multiple/Win32/gdisp_lld_config.h index cef06744..4e10cb8f 100644 --- a/drivers/multiple/Win32/gdisp_lld_config.h +++ b/drivers/multiple/Win32/gdisp_lld_config.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/multiple/Win32/ginput_lld_mouse_config.h b/drivers/multiple/Win32/ginput_lld_mouse_config.h index caef69fe..dbb734ed 100644 --- a/drivers/multiple/Win32/ginput_lld_mouse_config.h +++ b/drivers/multiple/Win32/ginput_lld_mouse_config.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/multiple/Win32/ginput_lld_toggle_config.h b/drivers/multiple/Win32/ginput_lld_toggle_config.h index ac348c73..0b179288 100644 --- a/drivers/multiple/Win32/ginput_lld_toggle_config.h +++ b/drivers/multiple/Win32/ginput_lld_toggle_config.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/tdisp/HD44780/tdisp_lld.c b/drivers/tdisp/HD44780/tdisp_lld.c index b68d1f55..5e18f34c 100644 --- a/drivers/tdisp/HD44780/tdisp_lld.c +++ b/drivers/tdisp/HD44780/tdisp_lld.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/tdisp/HD44780/tdisp_lld.c diff --git a/drivers/tdisp/HD44780/tdisp_lld_board_example.h b/drivers/tdisp/HD44780/tdisp_lld_board_example.h index fbf3f172..82d66d7a 100644 --- a/drivers/tdisp/HD44780/tdisp_lld_board_example.h +++ b/drivers/tdisp/HD44780/tdisp_lld_board_example.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file drivers/tdisp/HD44780/tdisp_lld_board_example.h diff --git a/drivers/tdisp/HD44780/tdisp_lld_board_olimex_e407.h b/drivers/tdisp/HD44780/tdisp_lld_board_olimex_e407.h index e8b1752d..d43512cb 100644 --- a/drivers/tdisp/HD44780/tdisp_lld_board_olimex_e407.h +++ b/drivers/tdisp/HD44780/tdisp_lld_board_olimex_e407.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/tdisp/HD44780/tdisp_lld_board_st_stm32f4_discovery.h b/drivers/tdisp/HD44780/tdisp_lld_board_st_stm32f4_discovery.h index 1fe222dc..1ba28f02 100644 --- a/drivers/tdisp/HD44780/tdisp_lld_board_st_stm32f4_discovery.h +++ b/drivers/tdisp/HD44780/tdisp_lld_board_st_stm32f4_discovery.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/gfxconf.example.h b/gfxconf.example.h index ce4d4ca6..6440c187 100644 --- a/gfxconf.example.h +++ b/gfxconf.example.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /** * This file has a different license to the rest of the GFX system. * You can copy, modify and distribute this file as you see fit. diff --git a/include/gadc/gadc.h b/include/gadc/gadc.h index 56be7cf5..4ee0eed2 100644 --- a/include/gadc/gadc.h +++ b/include/gadc/gadc.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gadc/lld/gadc_lld.h b/include/gadc/lld/gadc_lld.h index dc111990..befb5af6 100644 --- a/include/gadc/lld/gadc_lld.h +++ b/include/gadc/lld/gadc_lld.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gadc/options.h b/include/gadc/options.h index 87708efe..61e87b82 100644 --- a/include/gadc/options.h +++ b/include/gadc/options.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file include/gadc/options.h diff --git a/include/gaudin/gaudin.h b/include/gaudin/gaudin.h index 3cf29d09..9161a997 100644 --- a/include/gaudin/gaudin.h +++ b/include/gaudin/gaudin.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gaudin/lld/gaudin_lld.h b/include/gaudin/lld/gaudin_lld.h index 6512c61c..f03a5506 100644 --- a/include/gaudin/lld/gaudin_lld.h +++ b/include/gaudin/lld/gaudin_lld.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gaudin/options.h b/include/gaudin/options.h index eff022a3..381d154b 100644 --- a/include/gaudin/options.h +++ b/include/gaudin/options.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gaudout/gaudout.h b/include/gaudout/gaudout.h index 35bdebeb..86210712 100644 --- a/include/gaudout/gaudout.h +++ b/include/gaudout/gaudout.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gaudout/options.h b/include/gaudout/options.h index 12ee975f..e8ac72a7 100644 --- a/include/gaudout/options.h +++ b/include/gaudout/options.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gdisp/fonts.h b/include/gdisp/fonts.h index 888f4489..fa4ee178 100644 --- a/include/gdisp/fonts.h +++ b/include/gdisp/fonts.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gdisp/gdisp.h b/include/gdisp/gdisp.h index 85f9b4ea..7a1522e9 100644 --- a/include/gdisp/gdisp.h +++ b/include/gdisp/gdisp.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file include/gdisp/gdisp.h diff --git a/include/gdisp/image.h b/include/gdisp/image.h index 99e51118..c4b29946 100644 --- a/include/gdisp/image.h +++ b/include/gdisp/image.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file include/gdisp/image.h diff --git a/include/gdisp/lld/emulation.c b/include/gdisp/lld/emulation.c index 572b2dcb..03e00ccb 100644 --- a/include/gdisp/lld/emulation.c +++ b/include/gdisp/lld/emulation.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file include/gdisp/lld/emulation.c diff --git a/include/gdisp/lld/gdisp_lld.h b/include/gdisp/lld/gdisp_lld.h index f42ad2af..7b766db6 100644 --- a/include/gdisp/lld/gdisp_lld.h +++ b/include/gdisp/lld/gdisp_lld.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file include/gdisp/lld/gdisp_lld.h diff --git a/include/gdisp/lld/gdisp_lld_msgs.h b/include/gdisp/lld/gdisp_lld_msgs.h index 5783613d..a318cba3 100644 --- a/include/gdisp/lld/gdisp_lld_msgs.h +++ b/include/gdisp/lld/gdisp_lld_msgs.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file include/gdisp/lld/gdisp_lld_msgs.h diff --git a/include/gdisp/options.h b/include/gdisp/options.h index 5cdfbf59..cc11cefa 100644 --- a/include/gdisp/options.h +++ b/include/gdisp/options.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file include/gdisp/options.h diff --git a/include/gevent/gevent.h b/include/gevent/gevent.h index 57fb60b2..c53dfd0d 100644 --- a/include/gevent/gevent.h +++ b/include/gevent/gevent.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gevent/options.h b/include/gevent/options.h index 78ec7610..89c62194 100644 --- a/include/gevent/options.h +++ b/include/gevent/options.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gfx.h b/include/gfx.h index 4d212b2d..dc5f4268 100644 --- a/include/gfx.h +++ b/include/gfx.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file include/gfx.h diff --git a/include/gfx_rules.h b/include/gfx_rules.h index 1c32146c..c337f472 100644 --- a/include/gfx_rules.h +++ b/include/gfx_rules.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file include/gfx_rules.h diff --git a/include/ginput/dial.h b/include/ginput/dial.h index 358e36cf..4d61d3d1 100644 --- a/include/ginput/dial.h +++ b/include/ginput/dial.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/ginput/ginput.h b/include/ginput/ginput.h index 0fabd437..5ba5e580 100644 --- a/include/ginput/ginput.h +++ b/include/ginput/ginput.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/ginput/keyboard.h b/include/ginput/keyboard.h index 1529d05d..fe58bf61 100644 --- a/include/ginput/keyboard.h +++ b/include/ginput/keyboard.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/ginput/lld/dial.h b/include/ginput/lld/dial.h index 3efae04f..66012068 100644 --- a/include/ginput/lld/dial.h +++ b/include/ginput/lld/dial.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/ginput/lld/mouse.h b/include/ginput/lld/mouse.h index 046a06b1..9bfb8116 100644 --- a/include/ginput/lld/mouse.h +++ b/include/ginput/lld/mouse.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/ginput/lld/toggle.h b/include/ginput/lld/toggle.h index 1ccab366..05ad1e2d 100644 --- a/include/ginput/lld/toggle.h +++ b/include/ginput/lld/toggle.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/ginput/mouse.h b/include/ginput/mouse.h index 7b798454..3b7ed988 100644 --- a/include/ginput/mouse.h +++ b/include/ginput/mouse.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/ginput/options.h b/include/ginput/options.h index 35797098..0d480aa3 100644 --- a/include/ginput/options.h +++ b/include/ginput/options.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/ginput/toggle.h b/include/ginput/toggle.h index 888e397a..7019ad16 100644 --- a/include/ginput/toggle.h +++ b/include/ginput/toggle.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gmisc/gmisc.h b/include/gmisc/gmisc.h index 5dab5e85..d775241e 100644 --- a/include/gmisc/gmisc.h +++ b/include/gmisc/gmisc.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gmisc/options.h b/include/gmisc/options.h index 996f12af..0cc11677 100644 --- a/include/gmisc/options.h +++ b/include/gmisc/options.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gtimer/gtimer.h b/include/gtimer/gtimer.h index e938c33a..6e6461e1 100644 --- a/include/gtimer/gtimer.h +++ b/include/gtimer/gtimer.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gtimer/options.h b/include/gtimer/options.h index 7d7d55dc..0f142289 100644 --- a/include/gtimer/options.h +++ b/include/gtimer/options.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gwin/button.h b/include/gwin/button.h index 3d54afbb..0eef496a 100644 --- a/include/gwin/button.h +++ b/include/gwin/button.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gwin/console.h b/include/gwin/console.h index c6d89db6..8be29acf 100644 --- a/include/gwin/console.h +++ b/include/gwin/console.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gwin/graph.h b/include/gwin/graph.h index 223ba27f..4fe28223 100644 --- a/include/gwin/graph.h +++ b/include/gwin/graph.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file include/gwin/graph.h diff --git a/include/gwin/gwin.h b/include/gwin/gwin.h index 3d994d0a..cccf0cff 100644 --- a/include/gwin/gwin.h +++ b/include/gwin/gwin.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gwin/internal.h b/include/gwin/internal.h index ada8f611..8ed461bb 100644 --- a/include/gwin/internal.h +++ b/include/gwin/internal.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gwin/options.h b/include/gwin/options.h index e8d527e0..35daa424 100644 --- a/include/gwin/options.h +++ b/include/gwin/options.h @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file include/gwin/options.h diff --git a/include/gwin/slider.h b/include/gwin/slider.h index 1943729f..9be075c5 100644 --- a/include/gwin/slider.h +++ b/include/gwin/slider.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/tdisp/lld/tdisp_lld.h b/include/tdisp/lld/tdisp_lld.h index dbc57b11..7fbf92d8 100644 --- a/include/tdisp/lld/tdisp_lld.h +++ b/include/tdisp/lld/tdisp_lld.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/tdisp/options.h b/include/tdisp/options.h index 41292037..657ed9db 100644 --- a/include/tdisp/options.h +++ b/include/tdisp/options.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/tdisp/tdisp.h b/include/tdisp/tdisp.h index efcd285c..215eb45f 100644 --- a/include/tdisp/tdisp.h +++ b/include/tdisp/tdisp.h @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/gadc/gadc.c b/src/gadc/gadc.c index 40b901ae..7d53d0f6 100644 --- a/src/gadc/gadc.c +++ b/src/gadc/gadc.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file src/gadc/gadc.c diff --git a/src/gaudin/gaudin.c b/src/gaudin/gaudin.c index 2fbe7a47..1a3a3434 100644 --- a/src/gaudin/gaudin.c +++ b/src/gaudin/gaudin.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file src/gaudin/gaudin.c diff --git a/src/gaudout/gaudout.c b/src/gaudout/gaudout.c index 5c2e0657..ea3857ff 100644 --- a/src/gaudout/gaudout.c +++ b/src/gaudout/gaudout.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/gdisp/fonts.c b/src/gdisp/fonts.c index a7c6d39a..c450774e 100644 --- a/src/gdisp/fonts.c +++ b/src/gdisp/fonts.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file src/gdisp/fonts.c diff --git a/src/gdisp/gdisp.c b/src/gdisp/gdisp.c index d548eae5..2abd3e2e 100644 --- a/src/gdisp/gdisp.c +++ b/src/gdisp/gdisp.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file src/gdisp/gdisp.c diff --git a/src/gdisp/image.c b/src/gdisp/image.c index 061db5fe..c5977861 100644 --- a/src/gdisp/image.c +++ b/src/gdisp/image.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file src/gdisp/image.c diff --git a/src/gdisp/image_bmp.c b/src/gdisp/image_bmp.c index bab9b4e9..5f31103c 100644 --- a/src/gdisp/image_bmp.c +++ b/src/gdisp/image_bmp.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file src/gdisp/image_bmp.c diff --git a/src/gdisp/image_gif.c b/src/gdisp/image_gif.c index 2672333f..8e359681 100644 --- a/src/gdisp/image_gif.c +++ b/src/gdisp/image_gif.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file src/gdisp/image_gif.c diff --git a/src/gdisp/image_jpg.c b/src/gdisp/image_jpg.c index e8b5eeeb..a2fdc259 100644 --- a/src/gdisp/image_jpg.c +++ b/src/gdisp/image_jpg.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file src/gdisp/image_jpg.c diff --git a/src/gdisp/image_native.c b/src/gdisp/image_native.c index 4a41e9c8..c4ed4eae 100644 --- a/src/gdisp/image_native.c +++ b/src/gdisp/image_native.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file src/gdisp/image_native.c diff --git a/src/gdisp/image_png.c b/src/gdisp/image_png.c index 3dca3645..d4a8f3b6 100644 --- a/src/gdisp/image_png.c +++ b/src/gdisp/image_png.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file src/gdisp/image_png.c diff --git a/src/gevent/gevent.c b/src/gevent/gevent.c index b93f1ea8..9fb17e73 100644 --- a/src/gevent/gevent.c +++ b/src/gevent/gevent.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file src/gevent/gevent.c diff --git a/src/ginput/dial.c b/src/ginput/dial.c index 2f572cf8..835f705b 100644 --- a/src/ginput/dial.c +++ b/src/ginput/dial.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ /** * @file src/ginput/dial.c diff --git a/src/ginput/keyboard.c b/src/ginput/keyboard.c index 145b66f1..76eaf17c 100644 --- a/src/ginput/keyboard.c +++ b/src/ginput/keyboard.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/ginput/mouse.c b/src/ginput/mouse.c index 4ad32359..7757638e 100644 --- a/src/ginput/mouse.c +++ b/src/ginput/mouse.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/ginput/toggle.c b/src/ginput/toggle.c index 5761279b..ce4197bd 100644 --- a/src/ginput/toggle.c +++ b/src/ginput/toggle.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/gmisc/arrayops.c b/src/gmisc/arrayops.c index 8b2135a0..80301f1e 100644 --- a/src/gmisc/arrayops.c +++ b/src/gmisc/arrayops.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/gtimer/gtimer.c b/src/gtimer/gtimer.c index e1f6bb8f..01f8e6b1 100644 --- a/src/gtimer/gtimer.c +++ b/src/gtimer/gtimer.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/gwin/button.c b/src/gwin/button.c index 74fe3080..b61c7d5d 100644 --- a/src/gwin/button.c +++ b/src/gwin/button.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/gwin/console.c b/src/gwin/console.c index 6720e6b3..c26e878d 100644 --- a/src/gwin/console.c +++ b/src/gwin/console.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/gwin/graph.c b/src/gwin/graph.c index eff42eb1..c8747a5f 100644 --- a/src/gwin/graph.c +++ b/src/gwin/graph.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c index 9f009fa1..bd685935 100644 --- a/src/gwin/gwin.c +++ b/src/gwin/gwin.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/gwin/slider.c b/src/gwin/slider.c index f535b35c..08a28ccd 100644 --- a/src/gwin/slider.c +++ b/src/gwin/slider.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/tdisp/tdisp.c b/src/tdisp/tdisp.c index dab05cda..9037ec66 100644 --- a/src/tdisp/tdisp.c +++ b/src/tdisp/tdisp.c @@ -1,3 +1,12 @@ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ + /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/tools/file2c/src/file2c.c b/tools/file2c/src/file2c.c index 29b9da2f..c3e57e1c 100644 --- a/tools/file2c/src/file2c.c +++ b/tools/file2c/src/file2c.c @@ -1,22 +1,11 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This source code form is a part of the ChibiOS/GFX project and stands + * under the terms of the GFX License v1.0. If a copy of the license + * was not distributed with this file, You can obtain one at: + * + * http://chibios-gfx.com/license.html + * + */ #include #include -- cgit v1.2.3 From dca2721b9de72b4435dfb80b8c7c9c2ac89ed370 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Thu, 2 May 2013 01:51:36 +0200 Subject: fixed 3rdparty demos path --- 3rdparty/boing/gfxconf.h | 40 -------- 3rdparty/boing/main.c | 111 ---------------------- 3rdparty/bubbles/gfxconf.h | 40 -------- 3rdparty/bubbles/main.c | 194 --------------------------------------- 3rdparty/readme.txt | 10 -- demos/3rdparty/boing/gfxconf.h | 40 ++++++++ demos/3rdparty/boing/main.c | 111 ++++++++++++++++++++++ demos/3rdparty/bubbles/gfxconf.h | 40 ++++++++ demos/3rdparty/bubbles/main.c | 194 +++++++++++++++++++++++++++++++++++++++ demos/3rdparty/readme.txt | 10 ++ 10 files changed, 395 insertions(+), 395 deletions(-) delete mode 100644 3rdparty/boing/gfxconf.h delete mode 100644 3rdparty/boing/main.c delete mode 100644 3rdparty/bubbles/gfxconf.h delete mode 100644 3rdparty/bubbles/main.c delete mode 100644 3rdparty/readme.txt create mode 100644 demos/3rdparty/boing/gfxconf.h create mode 100644 demos/3rdparty/boing/main.c create mode 100644 demos/3rdparty/bubbles/gfxconf.h create mode 100644 demos/3rdparty/bubbles/main.c create mode 100644 demos/3rdparty/readme.txt diff --git a/3rdparty/boing/gfxconf.h b/3rdparty/boing/gfxconf.h deleted file mode 100644 index 45b6d7ab..00000000 --- a/3rdparty/boing/gfxconf.h +++ /dev/null @@ -1,40 +0,0 @@ -/** - * This file has a different license to the rest of the GFX system. - * You can copy, modify and distribute this file as you see fit. - * You do not need to publish your source modifications to this file. - * The only thing you are not permitted to do is to relicense it - * under a different license. - */ - -#ifndef _GFXCONF_H -#define _GFXCONF_H - -/* GFX sub-systems to turn on */ -#define GFX_USE_GDISP TRUE -#define GFX_USE_GWIN FALSE -#define GFX_USE_GEVENT FALSE -#define GFX_USE_GTIMER FALSE -#define GFX_USE_GINPUT FALSE - -/* Features for the GDISP sub-system. */ -#define GDISP_NEED_VALIDATION FALSE -#define GDISP_NEED_CLIP FALSE -#define GDISP_NEED_TEXT FALSE -#define GDISP_NEED_CIRCLE FALSE -#define GDISP_NEED_ELLIPSE FALSE -#define GDISP_NEED_ARC FALSE -#define GDISP_NEED_SCROLL FALSE -#define GDISP_NEED_PIXELREAD FALSE -#define GDISP_NEED_CONTROL FALSE -#define GDISP_NEED_MULTITHREAD FALSE -#define GDISP_NEED_ASYNC FALSE -#define GDISP_NEED_MSGAPI FALSE - -/* Builtin Fonts */ -#define GDISP_INCLUDE_FONT_SMALL FALSE -#define GDISP_INCLUDE_FONT_LARGER FALSE -#define GDISP_INCLUDE_FONT_UI1 FALSE -#define GDISP_INCLUDE_FONT_UI2 FALSE -#define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE - -#endif /* _GFXCONF_H */ diff --git a/3rdparty/boing/main.c b/3rdparty/boing/main.c deleted file mode 100644 index a34cd2a9..00000000 --- a/3rdparty/boing/main.c +++ /dev/null @@ -1,111 +0,0 @@ -/* Derived from the 2011 IOCCC submission by peter.eastman@gmail.com - * http://www.ioccc.org/2011/eastman/eastman.c - * -- - * Public Domain -- but you're looking at this for ideas of techniques - * and methods, not trying to cut&paste an entire application, anyway. - * -- - * When you need to blit an entire screenfull of data to an LCD - * display, the basic idea is to exploit the auto-increment feature of - * the display controller when it writes to screen memory. You start - * by resetting the 'cursor' to the 0,0 position, and then stream - * width*height pixels out. - * -- - * Chris Baird,, April 2013 - */ - -#include -#include "ch.h" -#include "hal.h" -#include "gfx.h" -#include "ssd2119.h" - -#define Lightgrey (HTML2COLOR(0xC0C0C0)) -#define Midgrey (HTML2COLOR(0x606060)) -#define Darkgrey (HTML2COLOR(0x303030)) - - -/* ---------------------------------------------------------------------- */ -/* As of early April 2013, the /gfx extension tries to keep the low-level - * stuff away from our filthy paws. So Code Duplication. - * (Possibly to be replaced with gdispStartStream(), gdispWriteStream() - * and gdispStopStream() in the future.) - */ - -#define GDISP_REG (*((volatile uint16_t *) 0x60000000)) /* DC = 0 */ -#define GDISP_RAM (*((volatile uint16_t *) 0x60100000)) /* DC = 1 */ - -inline void write_index (uint16_t index) { GDISP_REG = index; } -inline void write_data (uint16_t data) { GDISP_RAM = data; } - -#define write_reg(reg, data) { write_index(reg); write_data(data); } - -void reset_cursor (void) -{ - write_reg (SSD2119_REG_X_RAM_ADDR, 0); - write_reg (SSD2119_REG_Y_RAM_ADDR, 0); -} - -#define StartStream() { write_index (SSD2119_REG_RAM_DATA); } -#define WriteStream(x) { write_data (x); } -#define StopStream() /* NOP */ - - -/* ---------------------------------------------------------------------- */ - -void main (void) -{ - uint16_t xx, yy, colour; - - halInit(); - chSysInit(); - gdispInit(); - - uint16_t width = (uint16_t)gdispGetWidth(); - uint16_t height = (uint16_t)gdispGetHeight(); - - float i=height/5+height%2+1, floorstart=height/5-1, spherespin=0.0, - l=width/2, m=height/4, n=.01*width, o=0.0, rotspeed=0.1, h, f, g; - - while (TRUE) - { - reset_cursor (); - StartStream (); - - for (xx=yy=0; - h = (m-yy)/i, f=-.3*(g=(l-xx)/i)+.954*h, yywidth-floorstart) - colour = Darkgrey; /* side wall */ - else - colour = Lightgrey; /* back wall */ - - if (yy > height-floorstart) - if (xx < height-yy || height-yy > width-xx) /* floor */ - colour = Darkgrey; - else - colour = Midgrey; - - if (g*(g+.6)+.09+h*h < 1) - colour >>= 1; /* ball shadow; make it darker */ - } - - WriteStream (colour); /* pixel to the LCD */ - } - - StopStream(); - spherespin += rotspeed; - m += o; - o = m > height-1.75*floorstart ? -.04*height : o+.002*height; - n = (l+=n)width-i ? rotspeed=-rotspeed,-n : n; - } -} - -/* ---------------------------------------------------------------------- */ diff --git a/3rdparty/bubbles/gfxconf.h b/3rdparty/bubbles/gfxconf.h deleted file mode 100644 index 9b1f76a6..00000000 --- a/3rdparty/bubbles/gfxconf.h +++ /dev/null @@ -1,40 +0,0 @@ -/** - * This file has a different license to the rest of the GFX system. - * You can copy, modify and distribute this file as you see fit. - * You do not need to publish your source modifications to this file. - * The only thing you are not permitted to do is to relicense it - * under a different license. - */ - -#ifndef _GFXCONF_H -#define _GFXCONF_H - -/* GFX sub-systems to turn on */ -#define GFX_USE_GDISP TRUE -#define GFX_USE_GWIN FALSE -#define GFX_USE_GEVENT FALSE -#define GFX_USE_GTIMER FALSE -#define GFX_USE_GINPUT FALSE - -/* Features for the GDISP sub-system. */ -#define GDISP_NEED_VALIDATION FALSE -#define GDISP_NEED_CLIP FALSE -#define GDISP_NEED_TEXT FALSE -#define GDISP_NEED_CIRCLE TRUE -#define GDISP_NEED_ELLIPSE FALSE -#define GDISP_NEED_ARC FALSE -#define GDISP_NEED_SCROLL FALSE -#define GDISP_NEED_PIXELREAD FALSE -#define GDISP_NEED_CONTROL FALSE -#define GDISP_NEED_MULTITHREAD FALSE -#define GDISP_NEED_ASYNC FALSE -#define GDISP_NEED_MSGAPI FALSE - -/* Builtin Fonts */ -#define GDISP_INCLUDE_FONT_SMALL FALSE -#define GDISP_INCLUDE_FONT_LARGER FALSE -#define GDISP_INCLUDE_FONT_UI1 FALSE -#define GDISP_INCLUDE_FONT_UI2 FALSE -#define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE - -#endif /* _GFXCONF_H */ diff --git a/3rdparty/bubbles/main.c b/3rdparty/bubbles/main.c deleted file mode 100644 index 81c5dbe3..00000000 --- a/3rdparty/bubbles/main.c +++ /dev/null @@ -1,194 +0,0 @@ -/* Microcontroller graphic demo by Pascal Piazzalunga - * admin@serveurperso.com http://www.serveurperso.com - * https://www.youtube.com/watch?v=wyuJ-dqS2to - * Ported to stm32/ChibiOS/glx by Chris Baird. - * It's spinnin' bubbles, man. - * -- - * Licencing? Ask Pascal. Let's assume it is freely-distributable and - * modifiable, provided his name is kept in the source. - * -- - * Chris Baird,, April 2013 - */ - -#include -#include "ch.h" -#include "hal.h" -#include "gfx.h" - - -/* ---------------------------------------------------------------------- */ - -#define N 1024 /* Number of dots */ -#define SCALE 8192 -#define INCREMENT 512 /* INCREMENT = SCALE / sqrt(N) * 2 */ -#define PI2 6.283185307179586476925286766559 - -#define background RGB2COLOR(0,0,0) - -uint16_t width, height; -int16_t sine[SCALE+(SCALE/4)]; -int16_t *cosi = &sine[SCALE/4]; /* cos(x) = sin(x+90d)... */ - - -void initialize (void) -{ - uint16_t i; - - /* if you change the SCALE*1.25 back to SCALE, the program will - * occassionally overrun the cosi array -- however this actually - * produces some interesting effects as the BUBBLES LOSE CONTROL!!!! - */ - for (i = 0; i < SCALE+(SCALE/4); i++) - //sine[i] = (-SCALE/2) + (int)(sinf(PI2 * i / SCALE) * sinf(PI2 * i / SCALE) * SCALE); - sine[i] = (int)(sinf(PI2 * i / SCALE) * SCALE); -} - - -void matrix (int16_t xyz[3][N], color_t col[N]) -{ - static uint32_t t = 0; - int16_t x = -SCALE, y = -SCALE; - uint16_t i, s, d; - uint8_t red,grn,blu; - -#define RED_COLORS (32) -#define GREEN_COLORS (64) -#define BLUE_COLORS (32) - - for (i = 0; i < N; i++) - { - xyz[0][i] = x; - xyz[1][i] = y; - - d = sqrtf(x * x + y * y); /* originally a fastsqrt() call */ - s = sine[(t * 30) % SCALE] + SCALE; - - xyz[2][i] = sine[(d + s) % SCALE] * sine[(t * 10) % SCALE] / SCALE / 2; - - red = (cosi[xyz[2][i] + SCALE / 2] + SCALE) * - (RED_COLORS - 1) / SCALE / 2; - grn = (cosi[(xyz[2][i] + SCALE / 2 + 2 * SCALE / 3) % SCALE] + SCALE) * - (GREEN_COLORS - 1) / SCALE / 2; - blu = (cosi[(xyz[2][i] + SCALE / 2 + SCALE / 3) % SCALE] + SCALE) * - (BLUE_COLORS - 1) / SCALE / 2; - col[i] = ((red << 11) + (grn << 5) + blu); - - x += INCREMENT; - - if (x >= SCALE) x = -SCALE, y += INCREMENT; - } - t++; -} - - -void rotate (int16_t xyz[3][N], uint16_t angleX, uint16_t angleY, uint16_t angleZ) -{ - uint16_t i; - int16_t tmpX, tmpY; - int16_t sinx = sine[angleX], cosx = cosi[angleX]; - int16_t siny = sine[angleY], cosy = cosi[angleY]; - int16_t sinz = sine[angleZ], cosz = cosi[angleZ]; - - for (i = 0; i < N; i++) - { - tmpX = (xyz[0][i] * cosx - xyz[2][i] * sinx) / SCALE; - xyz[2][i] = (xyz[0][i] * sinx + xyz[2][i] * cosx) / SCALE; - xyz[0][i] = tmpX; - - tmpY = (xyz[1][i] * cosy - xyz[2][i] * siny) / SCALE; - xyz[2][i] = (xyz[1][i] * siny + xyz[2][i] * cosy) / SCALE; - xyz[1][i] = tmpY; - - tmpX = (xyz[0][i] * cosz - xyz[1][i] * sinz) / SCALE; - xyz[1][i] = (xyz[0][i] * sinz + xyz[1][i] * cosz) / SCALE; - xyz[0][i] = tmpX; - } -} - - -void draw(int16_t xyz[3][N], color_t col[N]) -{ - static uint16_t oldProjX[N] = {0}; - static uint16_t oldProjY[N] = {0}; - static uint8_t oldDotSize[N] = {0}; - uint16_t i, projX, projY, projZ, dotSize; - - for (i = 0; i < N; i++) - { - projZ = SCALE - (xyz[2][i] + SCALE) / 4; - projX = width / 2 + (xyz[0][i] * projZ / SCALE) / 25; - projY = height / 2 + (xyz[1][i] * projZ / SCALE) / 25; - dotSize = 3 - (xyz[2][i] + SCALE) * 2 / SCALE; - - gdispDrawCircle (oldProjX[i], oldProjY[i], oldDotSize[i], background); - - if (projX > dotSize && - projY > dotSize && - projX < width - dotSize && - projY < height - dotSize) - { - gdispDrawCircle (projX, projY, dotSize, col[i]); - oldProjX[i] = projX; - oldProjY[i] = projY; - oldDotSize[i] = dotSize; - } - } -} - - -/* ---------------------------------------------------------------------- */ - -int16_t angleX = 0, angleY = 0, angleZ = 0; -int16_t speedX = 0, speedY = 0, speedZ = 0; - -int16_t xyz[3][N]; -color_t col[N]; - - -int main (void) -{ - int pass = 0; - - halInit(); - chSysInit(); - gdispInit(); - - chThdSleepMilliseconds (10); - gdispClear (background); /* glitches.. */ - chThdSleepMilliseconds (10); - gdispClear (background); /* glitches.. */ - chThdSleepMilliseconds (10); - gdispClear (background); /* glitches.. */ - - width = (uint16_t)gdispGetWidth(); - height = (uint16_t)gdispGetHeight(); - - initialize(); - - for (;;) - { - matrix(xyz, col); - rotate(xyz, angleX, angleY, angleZ); - draw(xyz, col); - - angleX += speedX; - angleY += speedY; - angleZ += speedZ; - - if (pass > 400) speedY = 1; - if (pass > 800) speedX = 1; - if (pass > 1200) speedZ = 1; - pass++; - - if (angleX >= SCALE) angleX -= SCALE; - else if (angleX < 0) angleX += SCALE; - - if (angleY >= SCALE) angleY -= SCALE; - else if (angleY < 0) angleY += SCALE; - - if (angleZ >= SCALE) angleZ -= SCALE; - else if (angleZ < 0) angleZ += SCALE; - } -} - -/* ---------------------------------------------------------------------- */ diff --git a/3rdparty/readme.txt b/3rdparty/readme.txt deleted file mode 100644 index 3f97204a..00000000 --- a/3rdparty/readme.txt +++ /dev/null @@ -1,10 +0,0 @@ -In this directory, you can find different demos showing how to use ChibiOS/GFX. -The demos in these directories are contributions from users of the ChibiOS/GFX -project and come from different sources. Therefore, the source files of these -demos come with different licenses which can be found on top of the cor- -responding files. -Since these files are not part of the ChibiOS/GFX project, no support for these -demos is provided. And as with all software which can be found in the /demos -directory, use on your own risk. There's no warranty of the correctness -and function of the demos provided. - diff --git a/demos/3rdparty/boing/gfxconf.h b/demos/3rdparty/boing/gfxconf.h new file mode 100644 index 00000000..45b6d7ab --- /dev/null +++ b/demos/3rdparty/boing/gfxconf.h @@ -0,0 +1,40 @@ +/** + * This file has a different license to the rest of the GFX system. + * You can copy, modify and distribute this file as you see fit. + * You do not need to publish your source modifications to this file. + * The only thing you are not permitted to do is to relicense it + * under a different license. + */ + +#ifndef _GFXCONF_H +#define _GFXCONF_H + +/* GFX sub-systems to turn on */ +#define GFX_USE_GDISP TRUE +#define GFX_USE_GWIN FALSE +#define GFX_USE_GEVENT FALSE +#define GFX_USE_GTIMER FALSE +#define GFX_USE_GINPUT FALSE + +/* Features for the GDISP sub-system. */ +#define GDISP_NEED_VALIDATION FALSE +#define GDISP_NEED_CLIP FALSE +#define GDISP_NEED_TEXT FALSE +#define GDISP_NEED_CIRCLE FALSE +#define GDISP_NEED_ELLIPSE FALSE +#define GDISP_NEED_ARC FALSE +#define GDISP_NEED_SCROLL FALSE +#define GDISP_NEED_PIXELREAD FALSE +#define GDISP_NEED_CONTROL FALSE +#define GDISP_NEED_MULTITHREAD FALSE +#define GDISP_NEED_ASYNC FALSE +#define GDISP_NEED_MSGAPI FALSE + +/* Builtin Fonts */ +#define GDISP_INCLUDE_FONT_SMALL FALSE +#define GDISP_INCLUDE_FONT_LARGER FALSE +#define GDISP_INCLUDE_FONT_UI1 FALSE +#define GDISP_INCLUDE_FONT_UI2 FALSE +#define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE + +#endif /* _GFXCONF_H */ diff --git a/demos/3rdparty/boing/main.c b/demos/3rdparty/boing/main.c new file mode 100644 index 00000000..a34cd2a9 --- /dev/null +++ b/demos/3rdparty/boing/main.c @@ -0,0 +1,111 @@ +/* Derived from the 2011 IOCCC submission by peter.eastman@gmail.com + * http://www.ioccc.org/2011/eastman/eastman.c + * -- + * Public Domain -- but you're looking at this for ideas of techniques + * and methods, not trying to cut&paste an entire application, anyway. + * -- + * When you need to blit an entire screenfull of data to an LCD + * display, the basic idea is to exploit the auto-increment feature of + * the display controller when it writes to screen memory. You start + * by resetting the 'cursor' to the 0,0 position, and then stream + * width*height pixels out. + * -- + * Chris Baird,, April 2013 + */ + +#include +#include "ch.h" +#include "hal.h" +#include "gfx.h" +#include "ssd2119.h" + +#define Lightgrey (HTML2COLOR(0xC0C0C0)) +#define Midgrey (HTML2COLOR(0x606060)) +#define Darkgrey (HTML2COLOR(0x303030)) + + +/* ---------------------------------------------------------------------- */ +/* As of early April 2013, the /gfx extension tries to keep the low-level + * stuff away from our filthy paws. So Code Duplication. + * (Possibly to be replaced with gdispStartStream(), gdispWriteStream() + * and gdispStopStream() in the future.) + */ + +#define GDISP_REG (*((volatile uint16_t *) 0x60000000)) /* DC = 0 */ +#define GDISP_RAM (*((volatile uint16_t *) 0x60100000)) /* DC = 1 */ + +inline void write_index (uint16_t index) { GDISP_REG = index; } +inline void write_data (uint16_t data) { GDISP_RAM = data; } + +#define write_reg(reg, data) { write_index(reg); write_data(data); } + +void reset_cursor (void) +{ + write_reg (SSD2119_REG_X_RAM_ADDR, 0); + write_reg (SSD2119_REG_Y_RAM_ADDR, 0); +} + +#define StartStream() { write_index (SSD2119_REG_RAM_DATA); } +#define WriteStream(x) { write_data (x); } +#define StopStream() /* NOP */ + + +/* ---------------------------------------------------------------------- */ + +void main (void) +{ + uint16_t xx, yy, colour; + + halInit(); + chSysInit(); + gdispInit(); + + uint16_t width = (uint16_t)gdispGetWidth(); + uint16_t height = (uint16_t)gdispGetHeight(); + + float i=height/5+height%2+1, floorstart=height/5-1, spherespin=0.0, + l=width/2, m=height/4, n=.01*width, o=0.0, rotspeed=0.1, h, f, g; + + while (TRUE) + { + reset_cursor (); + StartStream (); + + for (xx=yy=0; + h = (m-yy)/i, f=-.3*(g=(l-xx)/i)+.954*h, yywidth-floorstart) + colour = Darkgrey; /* side wall */ + else + colour = Lightgrey; /* back wall */ + + if (yy > height-floorstart) + if (xx < height-yy || height-yy > width-xx) /* floor */ + colour = Darkgrey; + else + colour = Midgrey; + + if (g*(g+.6)+.09+h*h < 1) + colour >>= 1; /* ball shadow; make it darker */ + } + + WriteStream (colour); /* pixel to the LCD */ + } + + StopStream(); + spherespin += rotspeed; + m += o; + o = m > height-1.75*floorstart ? -.04*height : o+.002*height; + n = (l+=n)width-i ? rotspeed=-rotspeed,-n : n; + } +} + +/* ---------------------------------------------------------------------- */ diff --git a/demos/3rdparty/bubbles/gfxconf.h b/demos/3rdparty/bubbles/gfxconf.h new file mode 100644 index 00000000..9b1f76a6 --- /dev/null +++ b/demos/3rdparty/bubbles/gfxconf.h @@ -0,0 +1,40 @@ +/** + * This file has a different license to the rest of the GFX system. + * You can copy, modify and distribute this file as you see fit. + * You do not need to publish your source modifications to this file. + * The only thing you are not permitted to do is to relicense it + * under a different license. + */ + +#ifndef _GFXCONF_H +#define _GFXCONF_H + +/* GFX sub-systems to turn on */ +#define GFX_USE_GDISP TRUE +#define GFX_USE_GWIN FALSE +#define GFX_USE_GEVENT FALSE +#define GFX_USE_GTIMER FALSE +#define GFX_USE_GINPUT FALSE + +/* Features for the GDISP sub-system. */ +#define GDISP_NEED_VALIDATION FALSE +#define GDISP_NEED_CLIP FALSE +#define GDISP_NEED_TEXT FALSE +#define GDISP_NEED_CIRCLE TRUE +#define GDISP_NEED_ELLIPSE FALSE +#define GDISP_NEED_ARC FALSE +#define GDISP_NEED_SCROLL FALSE +#define GDISP_NEED_PIXELREAD FALSE +#define GDISP_NEED_CONTROL FALSE +#define GDISP_NEED_MULTITHREAD FALSE +#define GDISP_NEED_ASYNC FALSE +#define GDISP_NEED_MSGAPI FALSE + +/* Builtin Fonts */ +#define GDISP_INCLUDE_FONT_SMALL FALSE +#define GDISP_INCLUDE_FONT_LARGER FALSE +#define GDISP_INCLUDE_FONT_UI1 FALSE +#define GDISP_INCLUDE_FONT_UI2 FALSE +#define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE + +#endif /* _GFXCONF_H */ diff --git a/demos/3rdparty/bubbles/main.c b/demos/3rdparty/bubbles/main.c new file mode 100644 index 00000000..81c5dbe3 --- /dev/null +++ b/demos/3rdparty/bubbles/main.c @@ -0,0 +1,194 @@ +/* Microcontroller graphic demo by Pascal Piazzalunga + * admin@serveurperso.com http://www.serveurperso.com + * https://www.youtube.com/watch?v=wyuJ-dqS2to + * Ported to stm32/ChibiOS/glx by Chris Baird. + * It's spinnin' bubbles, man. + * -- + * Licencing? Ask Pascal. Let's assume it is freely-distributable and + * modifiable, provided his name is kept in the source. + * -- + * Chris Baird,, April 2013 + */ + +#include +#include "ch.h" +#include "hal.h" +#include "gfx.h" + + +/* ---------------------------------------------------------------------- */ + +#define N 1024 /* Number of dots */ +#define SCALE 8192 +#define INCREMENT 512 /* INCREMENT = SCALE / sqrt(N) * 2 */ +#define PI2 6.283185307179586476925286766559 + +#define background RGB2COLOR(0,0,0) + +uint16_t width, height; +int16_t sine[SCALE+(SCALE/4)]; +int16_t *cosi = &sine[SCALE/4]; /* cos(x) = sin(x+90d)... */ + + +void initialize (void) +{ + uint16_t i; + + /* if you change the SCALE*1.25 back to SCALE, the program will + * occassionally overrun the cosi array -- however this actually + * produces some interesting effects as the BUBBLES LOSE CONTROL!!!! + */ + for (i = 0; i < SCALE+(SCALE/4); i++) + //sine[i] = (-SCALE/2) + (int)(sinf(PI2 * i / SCALE) * sinf(PI2 * i / SCALE) * SCALE); + sine[i] = (int)(sinf(PI2 * i / SCALE) * SCALE); +} + + +void matrix (int16_t xyz[3][N], color_t col[N]) +{ + static uint32_t t = 0; + int16_t x = -SCALE, y = -SCALE; + uint16_t i, s, d; + uint8_t red,grn,blu; + +#define RED_COLORS (32) +#define GREEN_COLORS (64) +#define BLUE_COLORS (32) + + for (i = 0; i < N; i++) + { + xyz[0][i] = x; + xyz[1][i] = y; + + d = sqrtf(x * x + y * y); /* originally a fastsqrt() call */ + s = sine[(t * 30) % SCALE] + SCALE; + + xyz[2][i] = sine[(d + s) % SCALE] * sine[(t * 10) % SCALE] / SCALE / 2; + + red = (cosi[xyz[2][i] + SCALE / 2] + SCALE) * + (RED_COLORS - 1) / SCALE / 2; + grn = (cosi[(xyz[2][i] + SCALE / 2 + 2 * SCALE / 3) % SCALE] + SCALE) * + (GREEN_COLORS - 1) / SCALE / 2; + blu = (cosi[(xyz[2][i] + SCALE / 2 + SCALE / 3) % SCALE] + SCALE) * + (BLUE_COLORS - 1) / SCALE / 2; + col[i] = ((red << 11) + (grn << 5) + blu); + + x += INCREMENT; + + if (x >= SCALE) x = -SCALE, y += INCREMENT; + } + t++; +} + + +void rotate (int16_t xyz[3][N], uint16_t angleX, uint16_t angleY, uint16_t angleZ) +{ + uint16_t i; + int16_t tmpX, tmpY; + int16_t sinx = sine[angleX], cosx = cosi[angleX]; + int16_t siny = sine[angleY], cosy = cosi[angleY]; + int16_t sinz = sine[angleZ], cosz = cosi[angleZ]; + + for (i = 0; i < N; i++) + { + tmpX = (xyz[0][i] * cosx - xyz[2][i] * sinx) / SCALE; + xyz[2][i] = (xyz[0][i] * sinx + xyz[2][i] * cosx) / SCALE; + xyz[0][i] = tmpX; + + tmpY = (xyz[1][i] * cosy - xyz[2][i] * siny) / SCALE; + xyz[2][i] = (xyz[1][i] * siny + xyz[2][i] * cosy) / SCALE; + xyz[1][i] = tmpY; + + tmpX = (xyz[0][i] * cosz - xyz[1][i] * sinz) / SCALE; + xyz[1][i] = (xyz[0][i] * sinz + xyz[1][i] * cosz) / SCALE; + xyz[0][i] = tmpX; + } +} + + +void draw(int16_t xyz[3][N], color_t col[N]) +{ + static uint16_t oldProjX[N] = {0}; + static uint16_t oldProjY[N] = {0}; + static uint8_t oldDotSize[N] = {0}; + uint16_t i, projX, projY, projZ, dotSize; + + for (i = 0; i < N; i++) + { + projZ = SCALE - (xyz[2][i] + SCALE) / 4; + projX = width / 2 + (xyz[0][i] * projZ / SCALE) / 25; + projY = height / 2 + (xyz[1][i] * projZ / SCALE) / 25; + dotSize = 3 - (xyz[2][i] + SCALE) * 2 / SCALE; + + gdispDrawCircle (oldProjX[i], oldProjY[i], oldDotSize[i], background); + + if (projX > dotSize && + projY > dotSize && + projX < width - dotSize && + projY < height - dotSize) + { + gdispDrawCircle (projX, projY, dotSize, col[i]); + oldProjX[i] = projX; + oldProjY[i] = projY; + oldDotSize[i] = dotSize; + } + } +} + + +/* ---------------------------------------------------------------------- */ + +int16_t angleX = 0, angleY = 0, angleZ = 0; +int16_t speedX = 0, speedY = 0, speedZ = 0; + +int16_t xyz[3][N]; +color_t col[N]; + + +int main (void) +{ + int pass = 0; + + halInit(); + chSysInit(); + gdispInit(); + + chThdSleepMilliseconds (10); + gdispClear (background); /* glitches.. */ + chThdSleepMilliseconds (10); + gdispClear (background); /* glitches.. */ + chThdSleepMilliseconds (10); + gdispClear (background); /* glitches.. */ + + width = (uint16_t)gdispGetWidth(); + height = (uint16_t)gdispGetHeight(); + + initialize(); + + for (;;) + { + matrix(xyz, col); + rotate(xyz, angleX, angleY, angleZ); + draw(xyz, col); + + angleX += speedX; + angleY += speedY; + angleZ += speedZ; + + if (pass > 400) speedY = 1; + if (pass > 800) speedX = 1; + if (pass > 1200) speedZ = 1; + pass++; + + if (angleX >= SCALE) angleX -= SCALE; + else if (angleX < 0) angleX += SCALE; + + if (angleY >= SCALE) angleY -= SCALE; + else if (angleY < 0) angleY += SCALE; + + if (angleZ >= SCALE) angleZ -= SCALE; + else if (angleZ < 0) angleZ += SCALE; + } +} + +/* ---------------------------------------------------------------------- */ diff --git a/demos/3rdparty/readme.txt b/demos/3rdparty/readme.txt new file mode 100644 index 00000000..3f97204a --- /dev/null +++ b/demos/3rdparty/readme.txt @@ -0,0 +1,10 @@ +In this directory, you can find different demos showing how to use ChibiOS/GFX. +The demos in these directories are contributions from users of the ChibiOS/GFX +project and come from different sources. Therefore, the source files of these +demos come with different licenses which can be found on top of the cor- +responding files. +Since these files are not part of the ChibiOS/GFX project, no support for these +demos is provided. And as with all software which can be found in the /demos +directory, use on your own risk. There's no warranty of the correctness +and function of the demos provided. + -- cgit v1.2.3 From ccbd205dcbe6283484556ac0f2d67d7624c98646 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Thu, 2 May 2013 01:53:22 +0200 Subject: Revert "fixed 3rdparty demos path" This reverts commit dca2721b9de72b4435dfb80b8c7c9c2ac89ed370. --- 3rdparty/boing/gfxconf.h | 40 ++++++++ 3rdparty/boing/main.c | 111 ++++++++++++++++++++++ 3rdparty/bubbles/gfxconf.h | 40 ++++++++ 3rdparty/bubbles/main.c | 194 +++++++++++++++++++++++++++++++++++++++ 3rdparty/readme.txt | 10 ++ demos/3rdparty/boing/gfxconf.h | 40 -------- demos/3rdparty/boing/main.c | 111 ---------------------- demos/3rdparty/bubbles/gfxconf.h | 40 -------- demos/3rdparty/bubbles/main.c | 194 --------------------------------------- demos/3rdparty/readme.txt | 10 -- 10 files changed, 395 insertions(+), 395 deletions(-) create mode 100644 3rdparty/boing/gfxconf.h create mode 100644 3rdparty/boing/main.c create mode 100644 3rdparty/bubbles/gfxconf.h create mode 100644 3rdparty/bubbles/main.c create mode 100644 3rdparty/readme.txt delete mode 100644 demos/3rdparty/boing/gfxconf.h delete mode 100644 demos/3rdparty/boing/main.c delete mode 100644 demos/3rdparty/bubbles/gfxconf.h delete mode 100644 demos/3rdparty/bubbles/main.c delete mode 100644 demos/3rdparty/readme.txt diff --git a/3rdparty/boing/gfxconf.h b/3rdparty/boing/gfxconf.h new file mode 100644 index 00000000..45b6d7ab --- /dev/null +++ b/3rdparty/boing/gfxconf.h @@ -0,0 +1,40 @@ +/** + * This file has a different license to the rest of the GFX system. + * You can copy, modify and distribute this file as you see fit. + * You do not need to publish your source modifications to this file. + * The only thing you are not permitted to do is to relicense it + * under a different license. + */ + +#ifndef _GFXCONF_H +#define _GFXCONF_H + +/* GFX sub-systems to turn on */ +#define GFX_USE_GDISP TRUE +#define GFX_USE_GWIN FALSE +#define GFX_USE_GEVENT FALSE +#define GFX_USE_GTIMER FALSE +#define GFX_USE_GINPUT FALSE + +/* Features for the GDISP sub-system. */ +#define GDISP_NEED_VALIDATION FALSE +#define GDISP_NEED_CLIP FALSE +#define GDISP_NEED_TEXT FALSE +#define GDISP_NEED_CIRCLE FALSE +#define GDISP_NEED_ELLIPSE FALSE +#define GDISP_NEED_ARC FALSE +#define GDISP_NEED_SCROLL FALSE +#define GDISP_NEED_PIXELREAD FALSE +#define GDISP_NEED_CONTROL FALSE +#define GDISP_NEED_MULTITHREAD FALSE +#define GDISP_NEED_ASYNC FALSE +#define GDISP_NEED_MSGAPI FALSE + +/* Builtin Fonts */ +#define GDISP_INCLUDE_FONT_SMALL FALSE +#define GDISP_INCLUDE_FONT_LARGER FALSE +#define GDISP_INCLUDE_FONT_UI1 FALSE +#define GDISP_INCLUDE_FONT_UI2 FALSE +#define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE + +#endif /* _GFXCONF_H */ diff --git a/3rdparty/boing/main.c b/3rdparty/boing/main.c new file mode 100644 index 00000000..a34cd2a9 --- /dev/null +++ b/3rdparty/boing/main.c @@ -0,0 +1,111 @@ +/* Derived from the 2011 IOCCC submission by peter.eastman@gmail.com + * http://www.ioccc.org/2011/eastman/eastman.c + * -- + * Public Domain -- but you're looking at this for ideas of techniques + * and methods, not trying to cut&paste an entire application, anyway. + * -- + * When you need to blit an entire screenfull of data to an LCD + * display, the basic idea is to exploit the auto-increment feature of + * the display controller when it writes to screen memory. You start + * by resetting the 'cursor' to the 0,0 position, and then stream + * width*height pixels out. + * -- + * Chris Baird,, April 2013 + */ + +#include +#include "ch.h" +#include "hal.h" +#include "gfx.h" +#include "ssd2119.h" + +#define Lightgrey (HTML2COLOR(0xC0C0C0)) +#define Midgrey (HTML2COLOR(0x606060)) +#define Darkgrey (HTML2COLOR(0x303030)) + + +/* ---------------------------------------------------------------------- */ +/* As of early April 2013, the /gfx extension tries to keep the low-level + * stuff away from our filthy paws. So Code Duplication. + * (Possibly to be replaced with gdispStartStream(), gdispWriteStream() + * and gdispStopStream() in the future.) + */ + +#define GDISP_REG (*((volatile uint16_t *) 0x60000000)) /* DC = 0 */ +#define GDISP_RAM (*((volatile uint16_t *) 0x60100000)) /* DC = 1 */ + +inline void write_index (uint16_t index) { GDISP_REG = index; } +inline void write_data (uint16_t data) { GDISP_RAM = data; } + +#define write_reg(reg, data) { write_index(reg); write_data(data); } + +void reset_cursor (void) +{ + write_reg (SSD2119_REG_X_RAM_ADDR, 0); + write_reg (SSD2119_REG_Y_RAM_ADDR, 0); +} + +#define StartStream() { write_index (SSD2119_REG_RAM_DATA); } +#define WriteStream(x) { write_data (x); } +#define StopStream() /* NOP */ + + +/* ---------------------------------------------------------------------- */ + +void main (void) +{ + uint16_t xx, yy, colour; + + halInit(); + chSysInit(); + gdispInit(); + + uint16_t width = (uint16_t)gdispGetWidth(); + uint16_t height = (uint16_t)gdispGetHeight(); + + float i=height/5+height%2+1, floorstart=height/5-1, spherespin=0.0, + l=width/2, m=height/4, n=.01*width, o=0.0, rotspeed=0.1, h, f, g; + + while (TRUE) + { + reset_cursor (); + StartStream (); + + for (xx=yy=0; + h = (m-yy)/i, f=-.3*(g=(l-xx)/i)+.954*h, yywidth-floorstart) + colour = Darkgrey; /* side wall */ + else + colour = Lightgrey; /* back wall */ + + if (yy > height-floorstart) + if (xx < height-yy || height-yy > width-xx) /* floor */ + colour = Darkgrey; + else + colour = Midgrey; + + if (g*(g+.6)+.09+h*h < 1) + colour >>= 1; /* ball shadow; make it darker */ + } + + WriteStream (colour); /* pixel to the LCD */ + } + + StopStream(); + spherespin += rotspeed; + m += o; + o = m > height-1.75*floorstart ? -.04*height : o+.002*height; + n = (l+=n)width-i ? rotspeed=-rotspeed,-n : n; + } +} + +/* ---------------------------------------------------------------------- */ diff --git a/3rdparty/bubbles/gfxconf.h b/3rdparty/bubbles/gfxconf.h new file mode 100644 index 00000000..9b1f76a6 --- /dev/null +++ b/3rdparty/bubbles/gfxconf.h @@ -0,0 +1,40 @@ +/** + * This file has a different license to the rest of the GFX system. + * You can copy, modify and distribute this file as you see fit. + * You do not need to publish your source modifications to this file. + * The only thing you are not permitted to do is to relicense it + * under a different license. + */ + +#ifndef _GFXCONF_H +#define _GFXCONF_H + +/* GFX sub-systems to turn on */ +#define GFX_USE_GDISP TRUE +#define GFX_USE_GWIN FALSE +#define GFX_USE_GEVENT FALSE +#define GFX_USE_GTIMER FALSE +#define GFX_USE_GINPUT FALSE + +/* Features for the GDISP sub-system. */ +#define GDISP_NEED_VALIDATION FALSE +#define GDISP_NEED_CLIP FALSE +#define GDISP_NEED_TEXT FALSE +#define GDISP_NEED_CIRCLE TRUE +#define GDISP_NEED_ELLIPSE FALSE +#define GDISP_NEED_ARC FALSE +#define GDISP_NEED_SCROLL FALSE +#define GDISP_NEED_PIXELREAD FALSE +#define GDISP_NEED_CONTROL FALSE +#define GDISP_NEED_MULTITHREAD FALSE +#define GDISP_NEED_ASYNC FALSE +#define GDISP_NEED_MSGAPI FALSE + +/* Builtin Fonts */ +#define GDISP_INCLUDE_FONT_SMALL FALSE +#define GDISP_INCLUDE_FONT_LARGER FALSE +#define GDISP_INCLUDE_FONT_UI1 FALSE +#define GDISP_INCLUDE_FONT_UI2 FALSE +#define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE + +#endif /* _GFXCONF_H */ diff --git a/3rdparty/bubbles/main.c b/3rdparty/bubbles/main.c new file mode 100644 index 00000000..81c5dbe3 --- /dev/null +++ b/3rdparty/bubbles/main.c @@ -0,0 +1,194 @@ +/* Microcontroller graphic demo by Pascal Piazzalunga + * admin@serveurperso.com http://www.serveurperso.com + * https://www.youtube.com/watch?v=wyuJ-dqS2to + * Ported to stm32/ChibiOS/glx by Chris Baird. + * It's spinnin' bubbles, man. + * -- + * Licencing? Ask Pascal. Let's assume it is freely-distributable and + * modifiable, provided his name is kept in the source. + * -- + * Chris Baird,, April 2013 + */ + +#include +#include "ch.h" +#include "hal.h" +#include "gfx.h" + + +/* ---------------------------------------------------------------------- */ + +#define N 1024 /* Number of dots */ +#define SCALE 8192 +#define INCREMENT 512 /* INCREMENT = SCALE / sqrt(N) * 2 */ +#define PI2 6.283185307179586476925286766559 + +#define background RGB2COLOR(0,0,0) + +uint16_t width, height; +int16_t sine[SCALE+(SCALE/4)]; +int16_t *cosi = &sine[SCALE/4]; /* cos(x) = sin(x+90d)... */ + + +void initialize (void) +{ + uint16_t i; + + /* if you change the SCALE*1.25 back to SCALE, the program will + * occassionally overrun the cosi array -- however this actually + * produces some interesting effects as the BUBBLES LOSE CONTROL!!!! + */ + for (i = 0; i < SCALE+(SCALE/4); i++) + //sine[i] = (-SCALE/2) + (int)(sinf(PI2 * i / SCALE) * sinf(PI2 * i / SCALE) * SCALE); + sine[i] = (int)(sinf(PI2 * i / SCALE) * SCALE); +} + + +void matrix (int16_t xyz[3][N], color_t col[N]) +{ + static uint32_t t = 0; + int16_t x = -SCALE, y = -SCALE; + uint16_t i, s, d; + uint8_t red,grn,blu; + +#define RED_COLORS (32) +#define GREEN_COLORS (64) +#define BLUE_COLORS (32) + + for (i = 0; i < N; i++) + { + xyz[0][i] = x; + xyz[1][i] = y; + + d = sqrtf(x * x + y * y); /* originally a fastsqrt() call */ + s = sine[(t * 30) % SCALE] + SCALE; + + xyz[2][i] = sine[(d + s) % SCALE] * sine[(t * 10) % SCALE] / SCALE / 2; + + red = (cosi[xyz[2][i] + SCALE / 2] + SCALE) * + (RED_COLORS - 1) / SCALE / 2; + grn = (cosi[(xyz[2][i] + SCALE / 2 + 2 * SCALE / 3) % SCALE] + SCALE) * + (GREEN_COLORS - 1) / SCALE / 2; + blu = (cosi[(xyz[2][i] + SCALE / 2 + SCALE / 3) % SCALE] + SCALE) * + (BLUE_COLORS - 1) / SCALE / 2; + col[i] = ((red << 11) + (grn << 5) + blu); + + x += INCREMENT; + + if (x >= SCALE) x = -SCALE, y += INCREMENT; + } + t++; +} + + +void rotate (int16_t xyz[3][N], uint16_t angleX, uint16_t angleY, uint16_t angleZ) +{ + uint16_t i; + int16_t tmpX, tmpY; + int16_t sinx = sine[angleX], cosx = cosi[angleX]; + int16_t siny = sine[angleY], cosy = cosi[angleY]; + int16_t sinz = sine[angleZ], cosz = cosi[angleZ]; + + for (i = 0; i < N; i++) + { + tmpX = (xyz[0][i] * cosx - xyz[2][i] * sinx) / SCALE; + xyz[2][i] = (xyz[0][i] * sinx + xyz[2][i] * cosx) / SCALE; + xyz[0][i] = tmpX; + + tmpY = (xyz[1][i] * cosy - xyz[2][i] * siny) / SCALE; + xyz[2][i] = (xyz[1][i] * siny + xyz[2][i] * cosy) / SCALE; + xyz[1][i] = tmpY; + + tmpX = (xyz[0][i] * cosz - xyz[1][i] * sinz) / SCALE; + xyz[1][i] = (xyz[0][i] * sinz + xyz[1][i] * cosz) / SCALE; + xyz[0][i] = tmpX; + } +} + + +void draw(int16_t xyz[3][N], color_t col[N]) +{ + static uint16_t oldProjX[N] = {0}; + static uint16_t oldProjY[N] = {0}; + static uint8_t oldDotSize[N] = {0}; + uint16_t i, projX, projY, projZ, dotSize; + + for (i = 0; i < N; i++) + { + projZ = SCALE - (xyz[2][i] + SCALE) / 4; + projX = width / 2 + (xyz[0][i] * projZ / SCALE) / 25; + projY = height / 2 + (xyz[1][i] * projZ / SCALE) / 25; + dotSize = 3 - (xyz[2][i] + SCALE) * 2 / SCALE; + + gdispDrawCircle (oldProjX[i], oldProjY[i], oldDotSize[i], background); + + if (projX > dotSize && + projY > dotSize && + projX < width - dotSize && + projY < height - dotSize) + { + gdispDrawCircle (projX, projY, dotSize, col[i]); + oldProjX[i] = projX; + oldProjY[i] = projY; + oldDotSize[i] = dotSize; + } + } +} + + +/* ---------------------------------------------------------------------- */ + +int16_t angleX = 0, angleY = 0, angleZ = 0; +int16_t speedX = 0, speedY = 0, speedZ = 0; + +int16_t xyz[3][N]; +color_t col[N]; + + +int main (void) +{ + int pass = 0; + + halInit(); + chSysInit(); + gdispInit(); + + chThdSleepMilliseconds (10); + gdispClear (background); /* glitches.. */ + chThdSleepMilliseconds (10); + gdispClear (background); /* glitches.. */ + chThdSleepMilliseconds (10); + gdispClear (background); /* glitches.. */ + + width = (uint16_t)gdispGetWidth(); + height = (uint16_t)gdispGetHeight(); + + initialize(); + + for (;;) + { + matrix(xyz, col); + rotate(xyz, angleX, angleY, angleZ); + draw(xyz, col); + + angleX += speedX; + angleY += speedY; + angleZ += speedZ; + + if (pass > 400) speedY = 1; + if (pass > 800) speedX = 1; + if (pass > 1200) speedZ = 1; + pass++; + + if (angleX >= SCALE) angleX -= SCALE; + else if (angleX < 0) angleX += SCALE; + + if (angleY >= SCALE) angleY -= SCALE; + else if (angleY < 0) angleY += SCALE; + + if (angleZ >= SCALE) angleZ -= SCALE; + else if (angleZ < 0) angleZ += SCALE; + } +} + +/* ---------------------------------------------------------------------- */ diff --git a/3rdparty/readme.txt b/3rdparty/readme.txt new file mode 100644 index 00000000..3f97204a --- /dev/null +++ b/3rdparty/readme.txt @@ -0,0 +1,10 @@ +In this directory, you can find different demos showing how to use ChibiOS/GFX. +The demos in these directories are contributions from users of the ChibiOS/GFX +project and come from different sources. Therefore, the source files of these +demos come with different licenses which can be found on top of the cor- +responding files. +Since these files are not part of the ChibiOS/GFX project, no support for these +demos is provided. And as with all software which can be found in the /demos +directory, use on your own risk. There's no warranty of the correctness +and function of the demos provided. + diff --git a/demos/3rdparty/boing/gfxconf.h b/demos/3rdparty/boing/gfxconf.h deleted file mode 100644 index 45b6d7ab..00000000 --- a/demos/3rdparty/boing/gfxconf.h +++ /dev/null @@ -1,40 +0,0 @@ -/** - * This file has a different license to the rest of the GFX system. - * You can copy, modify and distribute this file as you see fit. - * You do not need to publish your source modifications to this file. - * The only thing you are not permitted to do is to relicense it - * under a different license. - */ - -#ifndef _GFXCONF_H -#define _GFXCONF_H - -/* GFX sub-systems to turn on */ -#define GFX_USE_GDISP TRUE -#define GFX_USE_GWIN FALSE -#define GFX_USE_GEVENT FALSE -#define GFX_USE_GTIMER FALSE -#define GFX_USE_GINPUT FALSE - -/* Features for the GDISP sub-system. */ -#define GDISP_NEED_VALIDATION FALSE -#define GDISP_NEED_CLIP FALSE -#define GDISP_NEED_TEXT FALSE -#define GDISP_NEED_CIRCLE FALSE -#define GDISP_NEED_ELLIPSE FALSE -#define GDISP_NEED_ARC FALSE -#define GDISP_NEED_SCROLL FALSE -#define GDISP_NEED_PIXELREAD FALSE -#define GDISP_NEED_CONTROL FALSE -#define GDISP_NEED_MULTITHREAD FALSE -#define GDISP_NEED_ASYNC FALSE -#define GDISP_NEED_MSGAPI FALSE - -/* Builtin Fonts */ -#define GDISP_INCLUDE_FONT_SMALL FALSE -#define GDISP_INCLUDE_FONT_LARGER FALSE -#define GDISP_INCLUDE_FONT_UI1 FALSE -#define GDISP_INCLUDE_FONT_UI2 FALSE -#define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE - -#endif /* _GFXCONF_H */ diff --git a/demos/3rdparty/boing/main.c b/demos/3rdparty/boing/main.c deleted file mode 100644 index a34cd2a9..00000000 --- a/demos/3rdparty/boing/main.c +++ /dev/null @@ -1,111 +0,0 @@ -/* Derived from the 2011 IOCCC submission by peter.eastman@gmail.com - * http://www.ioccc.org/2011/eastman/eastman.c - * -- - * Public Domain -- but you're looking at this for ideas of techniques - * and methods, not trying to cut&paste an entire application, anyway. - * -- - * When you need to blit an entire screenfull of data to an LCD - * display, the basic idea is to exploit the auto-increment feature of - * the display controller when it writes to screen memory. You start - * by resetting the 'cursor' to the 0,0 position, and then stream - * width*height pixels out. - * -- - * Chris Baird,, April 2013 - */ - -#include -#include "ch.h" -#include "hal.h" -#include "gfx.h" -#include "ssd2119.h" - -#define Lightgrey (HTML2COLOR(0xC0C0C0)) -#define Midgrey (HTML2COLOR(0x606060)) -#define Darkgrey (HTML2COLOR(0x303030)) - - -/* ---------------------------------------------------------------------- */ -/* As of early April 2013, the /gfx extension tries to keep the low-level - * stuff away from our filthy paws. So Code Duplication. - * (Possibly to be replaced with gdispStartStream(), gdispWriteStream() - * and gdispStopStream() in the future.) - */ - -#define GDISP_REG (*((volatile uint16_t *) 0x60000000)) /* DC = 0 */ -#define GDISP_RAM (*((volatile uint16_t *) 0x60100000)) /* DC = 1 */ - -inline void write_index (uint16_t index) { GDISP_REG = index; } -inline void write_data (uint16_t data) { GDISP_RAM = data; } - -#define write_reg(reg, data) { write_index(reg); write_data(data); } - -void reset_cursor (void) -{ - write_reg (SSD2119_REG_X_RAM_ADDR, 0); - write_reg (SSD2119_REG_Y_RAM_ADDR, 0); -} - -#define StartStream() { write_index (SSD2119_REG_RAM_DATA); } -#define WriteStream(x) { write_data (x); } -#define StopStream() /* NOP */ - - -/* ---------------------------------------------------------------------- */ - -void main (void) -{ - uint16_t xx, yy, colour; - - halInit(); - chSysInit(); - gdispInit(); - - uint16_t width = (uint16_t)gdispGetWidth(); - uint16_t height = (uint16_t)gdispGetHeight(); - - float i=height/5+height%2+1, floorstart=height/5-1, spherespin=0.0, - l=width/2, m=height/4, n=.01*width, o=0.0, rotspeed=0.1, h, f, g; - - while (TRUE) - { - reset_cursor (); - StartStream (); - - for (xx=yy=0; - h = (m-yy)/i, f=-.3*(g=(l-xx)/i)+.954*h, yywidth-floorstart) - colour = Darkgrey; /* side wall */ - else - colour = Lightgrey; /* back wall */ - - if (yy > height-floorstart) - if (xx < height-yy || height-yy > width-xx) /* floor */ - colour = Darkgrey; - else - colour = Midgrey; - - if (g*(g+.6)+.09+h*h < 1) - colour >>= 1; /* ball shadow; make it darker */ - } - - WriteStream (colour); /* pixel to the LCD */ - } - - StopStream(); - spherespin += rotspeed; - m += o; - o = m > height-1.75*floorstart ? -.04*height : o+.002*height; - n = (l+=n)width-i ? rotspeed=-rotspeed,-n : n; - } -} - -/* ---------------------------------------------------------------------- */ diff --git a/demos/3rdparty/bubbles/gfxconf.h b/demos/3rdparty/bubbles/gfxconf.h deleted file mode 100644 index 9b1f76a6..00000000 --- a/demos/3rdparty/bubbles/gfxconf.h +++ /dev/null @@ -1,40 +0,0 @@ -/** - * This file has a different license to the rest of the GFX system. - * You can copy, modify and distribute this file as you see fit. - * You do not need to publish your source modifications to this file. - * The only thing you are not permitted to do is to relicense it - * under a different license. - */ - -#ifndef _GFXCONF_H -#define _GFXCONF_H - -/* GFX sub-systems to turn on */ -#define GFX_USE_GDISP TRUE -#define GFX_USE_GWIN FALSE -#define GFX_USE_GEVENT FALSE -#define GFX_USE_GTIMER FALSE -#define GFX_USE_GINPUT FALSE - -/* Features for the GDISP sub-system. */ -#define GDISP_NEED_VALIDATION FALSE -#define GDISP_NEED_CLIP FALSE -#define GDISP_NEED_TEXT FALSE -#define GDISP_NEED_CIRCLE TRUE -#define GDISP_NEED_ELLIPSE FALSE -#define GDISP_NEED_ARC FALSE -#define GDISP_NEED_SCROLL FALSE -#define GDISP_NEED_PIXELREAD FALSE -#define GDISP_NEED_CONTROL FALSE -#define GDISP_NEED_MULTITHREAD FALSE -#define GDISP_NEED_ASYNC FALSE -#define GDISP_NEED_MSGAPI FALSE - -/* Builtin Fonts */ -#define GDISP_INCLUDE_FONT_SMALL FALSE -#define GDISP_INCLUDE_FONT_LARGER FALSE -#define GDISP_INCLUDE_FONT_UI1 FALSE -#define GDISP_INCLUDE_FONT_UI2 FALSE -#define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE - -#endif /* _GFXCONF_H */ diff --git a/demos/3rdparty/bubbles/main.c b/demos/3rdparty/bubbles/main.c deleted file mode 100644 index 81c5dbe3..00000000 --- a/demos/3rdparty/bubbles/main.c +++ /dev/null @@ -1,194 +0,0 @@ -/* Microcontroller graphic demo by Pascal Piazzalunga - * admin@serveurperso.com http://www.serveurperso.com - * https://www.youtube.com/watch?v=wyuJ-dqS2to - * Ported to stm32/ChibiOS/glx by Chris Baird. - * It's spinnin' bubbles, man. - * -- - * Licencing? Ask Pascal. Let's assume it is freely-distributable and - * modifiable, provided his name is kept in the source. - * -- - * Chris Baird,, April 2013 - */ - -#include -#include "ch.h" -#include "hal.h" -#include "gfx.h" - - -/* ---------------------------------------------------------------------- */ - -#define N 1024 /* Number of dots */ -#define SCALE 8192 -#define INCREMENT 512 /* INCREMENT = SCALE / sqrt(N) * 2 */ -#define PI2 6.283185307179586476925286766559 - -#define background RGB2COLOR(0,0,0) - -uint16_t width, height; -int16_t sine[SCALE+(SCALE/4)]; -int16_t *cosi = &sine[SCALE/4]; /* cos(x) = sin(x+90d)... */ - - -void initialize (void) -{ - uint16_t i; - - /* if you change the SCALE*1.25 back to SCALE, the program will - * occassionally overrun the cosi array -- however this actually - * produces some interesting effects as the BUBBLES LOSE CONTROL!!!! - */ - for (i = 0; i < SCALE+(SCALE/4); i++) - //sine[i] = (-SCALE/2) + (int)(sinf(PI2 * i / SCALE) * sinf(PI2 * i / SCALE) * SCALE); - sine[i] = (int)(sinf(PI2 * i / SCALE) * SCALE); -} - - -void matrix (int16_t xyz[3][N], color_t col[N]) -{ - static uint32_t t = 0; - int16_t x = -SCALE, y = -SCALE; - uint16_t i, s, d; - uint8_t red,grn,blu; - -#define RED_COLORS (32) -#define GREEN_COLORS (64) -#define BLUE_COLORS (32) - - for (i = 0; i < N; i++) - { - xyz[0][i] = x; - xyz[1][i] = y; - - d = sqrtf(x * x + y * y); /* originally a fastsqrt() call */ - s = sine[(t * 30) % SCALE] + SCALE; - - xyz[2][i] = sine[(d + s) % SCALE] * sine[(t * 10) % SCALE] / SCALE / 2; - - red = (cosi[xyz[2][i] + SCALE / 2] + SCALE) * - (RED_COLORS - 1) / SCALE / 2; - grn = (cosi[(xyz[2][i] + SCALE / 2 + 2 * SCALE / 3) % SCALE] + SCALE) * - (GREEN_COLORS - 1) / SCALE / 2; - blu = (cosi[(xyz[2][i] + SCALE / 2 + SCALE / 3) % SCALE] + SCALE) * - (BLUE_COLORS - 1) / SCALE / 2; - col[i] = ((red << 11) + (grn << 5) + blu); - - x += INCREMENT; - - if (x >= SCALE) x = -SCALE, y += INCREMENT; - } - t++; -} - - -void rotate (int16_t xyz[3][N], uint16_t angleX, uint16_t angleY, uint16_t angleZ) -{ - uint16_t i; - int16_t tmpX, tmpY; - int16_t sinx = sine[angleX], cosx = cosi[angleX]; - int16_t siny = sine[angleY], cosy = cosi[angleY]; - int16_t sinz = sine[angleZ], cosz = cosi[angleZ]; - - for (i = 0; i < N; i++) - { - tmpX = (xyz[0][i] * cosx - xyz[2][i] * sinx) / SCALE; - xyz[2][i] = (xyz[0][i] * sinx + xyz[2][i] * cosx) / SCALE; - xyz[0][i] = tmpX; - - tmpY = (xyz[1][i] * cosy - xyz[2][i] * siny) / SCALE; - xyz[2][i] = (xyz[1][i] * siny + xyz[2][i] * cosy) / SCALE; - xyz[1][i] = tmpY; - - tmpX = (xyz[0][i] * cosz - xyz[1][i] * sinz) / SCALE; - xyz[1][i] = (xyz[0][i] * sinz + xyz[1][i] * cosz) / SCALE; - xyz[0][i] = tmpX; - } -} - - -void draw(int16_t xyz[3][N], color_t col[N]) -{ - static uint16_t oldProjX[N] = {0}; - static uint16_t oldProjY[N] = {0}; - static uint8_t oldDotSize[N] = {0}; - uint16_t i, projX, projY, projZ, dotSize; - - for (i = 0; i < N; i++) - { - projZ = SCALE - (xyz[2][i] + SCALE) / 4; - projX = width / 2 + (xyz[0][i] * projZ / SCALE) / 25; - projY = height / 2 + (xyz[1][i] * projZ / SCALE) / 25; - dotSize = 3 - (xyz[2][i] + SCALE) * 2 / SCALE; - - gdispDrawCircle (oldProjX[i], oldProjY[i], oldDotSize[i], background); - - if (projX > dotSize && - projY > dotSize && - projX < width - dotSize && - projY < height - dotSize) - { - gdispDrawCircle (projX, projY, dotSize, col[i]); - oldProjX[i] = projX; - oldProjY[i] = projY; - oldDotSize[i] = dotSize; - } - } -} - - -/* ---------------------------------------------------------------------- */ - -int16_t angleX = 0, angleY = 0, angleZ = 0; -int16_t speedX = 0, speedY = 0, speedZ = 0; - -int16_t xyz[3][N]; -color_t col[N]; - - -int main (void) -{ - int pass = 0; - - halInit(); - chSysInit(); - gdispInit(); - - chThdSleepMilliseconds (10); - gdispClear (background); /* glitches.. */ - chThdSleepMilliseconds (10); - gdispClear (background); /* glitches.. */ - chThdSleepMilliseconds (10); - gdispClear (background); /* glitches.. */ - - width = (uint16_t)gdispGetWidth(); - height = (uint16_t)gdispGetHeight(); - - initialize(); - - for (;;) - { - matrix(xyz, col); - rotate(xyz, angleX, angleY, angleZ); - draw(xyz, col); - - angleX += speedX; - angleY += speedY; - angleZ += speedZ; - - if (pass > 400) speedY = 1; - if (pass > 800) speedX = 1; - if (pass > 1200) speedZ = 1; - pass++; - - if (angleX >= SCALE) angleX -= SCALE; - else if (angleX < 0) angleX += SCALE; - - if (angleY >= SCALE) angleY -= SCALE; - else if (angleY < 0) angleY += SCALE; - - if (angleZ >= SCALE) angleZ -= SCALE; - else if (angleZ < 0) angleZ += SCALE; - } -} - -/* ---------------------------------------------------------------------- */ diff --git a/demos/3rdparty/readme.txt b/demos/3rdparty/readme.txt deleted file mode 100644 index 3f97204a..00000000 --- a/demos/3rdparty/readme.txt +++ /dev/null @@ -1,10 +0,0 @@ -In this directory, you can find different demos showing how to use ChibiOS/GFX. -The demos in these directories are contributions from users of the ChibiOS/GFX -project and come from different sources. Therefore, the source files of these -demos come with different licenses which can be found on top of the cor- -responding files. -Since these files are not part of the ChibiOS/GFX project, no support for these -demos is provided. And as with all software which can be found in the /demos -directory, use on your own risk. There's no warranty of the correctness -and function of the demos provided. - -- cgit v1.2.3 From 296e74f3e05bfb41b54793a245e363cf225fbbd6 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Thu, 2 May 2013 01:53:28 +0200 Subject: Revert "updated license headers" This reverts commit 0a26d9983b6d1deab272ff6dde98f7c77ff2a56c. --- 3rdparty/boing/gfxconf.h | 40 ----- 3rdparty/boing/main.c | 111 ------------ 3rdparty/bubbles/gfxconf.h | 40 ----- 3rdparty/bubbles/main.c | 194 --------------------- 3rdparty/readme.txt | 10 -- demos/3rdparty/boing/gfxconf.h | 40 +++++ demos/3rdparty/boing/main.c | 111 ++++++++++++ demos/3rdparty/bubbles/gfxconf.h | 40 +++++ demos/3rdparty/bubbles/main.c | 194 +++++++++++++++++++++ demos/3rdparty/readme.txt | 10 ++ demos/applications/mandelbrot/gfxconf.h | 9 - demos/applications/mandelbrot/main.c | 9 - demos/applications/notepad/gfxconf.h | 9 - demos/applications/notepad/main.c | 9 - demos/benchmarks/gfxconf.h | 9 - demos/benchmarks/main.c | 9 - demos/modules/gadc/gfxconf.h | 9 - demos/modules/gadc/gwinosc.c | 9 - demos/modules/gadc/gwinosc.h | 9 - demos/modules/gadc/main.c | 9 - demos/modules/gaudin/gfxconf.h | 9 - demos/modules/gaudin/gwinosc.c | 9 - demos/modules/gaudin/gwinosc.h | 9 - demos/modules/gaudin/main.c | 9 - demos/modules/gdisp/gdisp_basics/gfxconf.h | 9 - demos/modules/gdisp/gdisp_basics/main.c | 9 - demos/modules/gdisp/gdisp_circles/gfxconf.h | 9 - demos/modules/gdisp/gdisp_circles/main.c | 9 - demos/modules/gdisp/gdisp_images/gfxconf.h | 9 - demos/modules/gdisp/gdisp_images/main.c | 9 - .../modules/gdisp/gdisp_images_animated/gfxconf.h | 9 - demos/modules/gdisp/gdisp_images_animated/main.c | 27 ++- .../modules/gdisp/gdisp_images_animated/testanim.h | 9 - demos/modules/gdisp/gdisp_text/gfxconf.h | 9 - demos/modules/gdisp/gdisp_text/main.c | 9 - demos/modules/ginput/touch_driver_test/gfxconf.h | 9 - demos/modules/ginput/touch_driver_test/main.c | 9 - demos/modules/graph/gfxconf.h | 9 - demos/modules/graph/main.c | 9 - demos/modules/gtimer/gfxconf.h | 9 - demos/modules/gtimer/main.c | 9 - demos/modules/gwin/basic/gfxconf.h | 9 - demos/modules/gwin/basic/main.c | 27 ++- demos/modules/gwin/console/gfxconf.h | 9 - demos/modules/gwin/console/main.c | 27 ++- demos/modules/gwin/slider/gfxconf.h | 9 - demos/modules/gwin/slider/main.c | 27 ++- demos/modules/tdisp/gfxconf.h | 9 - demos/modules/tdisp/main.c | 9 - drivers/gadc/AT91SAM7/gadc_lld.c | 9 - .../gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h | 27 ++- drivers/gadc/AT91SAM7/gadc_lld_config.h | 27 ++- drivers/gaudin/gadc/gaudin_lld.c | 9 - .../gaudin/gadc/gaudin_lld_board_olimexsam7ex256.h | 27 ++- drivers/gaudin/gadc/gaudin_lld_config.h | 27 ++- drivers/gdisp/ILI9320/gdisp_lld.c | 27 ++- drivers/gdisp/ILI9320/gdisp_lld_board_example.h | 27 ++- .../ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h | 9 - .../ILI9320/gdisp_lld_board_olimex_stm32_lcd.h | 27 ++- drivers/gdisp/ILI9320/gdisp_lld_config.h | 9 - drivers/gdisp/ILI9325/gdisp_lld.c | 27 ++- drivers/gdisp/ILI9325/gdisp_lld_board_example.h | 27 ++- .../gdisp/ILI9325/gdisp_lld_board_hy_stm32_100p.h | 27 ++- drivers/gdisp/ILI9325/gdisp_lld_config.h | 9 - drivers/gdisp/ILI9481/gdisp_lld.c | 27 ++- drivers/gdisp/ILI9481/gdisp_lld_board_example.h | 27 ++- .../gdisp/ILI9481/gdisp_lld_board_example_fsmc.h | 27 ++- .../ILI9481/gdisp_lld_board_firebullstm32f103.h | 27 ++- drivers/gdisp/ILI9481/gdisp_lld_config.h | 27 ++- drivers/gdisp/Nokia6610GE12/GE12.h | 9 - drivers/gdisp/Nokia6610GE12/gdisp_lld.c | 27 ++- .../gdisp/Nokia6610GE12/gdisp_lld_board_example.h | 9 - .../gdisp_lld_board_olimexsam7ex256.h | 9 - drivers/gdisp/Nokia6610GE12/gdisp_lld_config.h | 9 - drivers/gdisp/Nokia6610GE8/GE8.h | 9 - drivers/gdisp/Nokia6610GE8/gdisp_lld.c | 27 ++- .../gdisp/Nokia6610GE8/gdisp_lld_board_example.h | 9 - .../Nokia6610GE8/gdisp_lld_board_olimexsam7ex256.h | 27 ++- drivers/gdisp/Nokia6610GE8/gdisp_lld_config.h | 9 - drivers/gdisp/S6D1121/gdisp_lld.c | 27 ++- drivers/gdisp/S6D1121/gdisp_lld_board_example.h | 9 - .../gdisp/S6D1121/gdisp_lld_board_olimex_e407.h | 9 - drivers/gdisp/S6D1121/gdisp_lld_config.h | 9 - drivers/gdisp/SSD1289/gdisp_lld.c | 27 ++- drivers/gdisp/SSD1289/gdisp_lld_board_example.h | 9 - .../gdisp/SSD1289/gdisp_lld_board_example_fsmc.h | 9 - .../SSD1289/gdisp_lld_board_firebullstm32f103.h | 9 - drivers/gdisp/SSD1289/gdisp_lld_config.h | 9 - drivers/gdisp/SSD1963/gdisp_lld.c | 27 ++- .../gdisp/SSD1963/gdisp_lld_board_example_fsmc.h | 9 - .../gdisp/SSD1963/gdisp_lld_board_example_gpio.h | 9 - drivers/gdisp/SSD1963/gdisp_lld_config.h | 9 - drivers/gdisp/SSD1963/gdisp_lld_panel_example.h | 9 - drivers/gdisp/SSD1963/ssd1963.h | 9 - drivers/gdisp/SSD2119/gdisp_lld.c | 27 ++- .../SSD2119/gdisp_lld_board_embest_dmstf4bb.h | 27 ++- drivers/gdisp/SSD2119/gdisp_lld_config.h | 27 ++- drivers/gdisp/SSD2119/ssd2119.h | 27 ++- drivers/gdisp/TestStub/gdisp_lld.c | 27 ++- drivers/gdisp/TestStub/gdisp_lld_config.h | 9 - drivers/ginput/dial/GADC/ginput_lld_dial.c | 27 ++- .../GADC/ginput_lld_dial_board_olimexsam7ex256.h | 27 ++- drivers/ginput/dial/GADC/ginput_lld_dial_config.h | 27 ++- drivers/ginput/toggle/Pal/ginput_lld_toggle.c | 9 - .../toggle/Pal/ginput_lld_toggle_board_example.h | 9 - .../Pal/ginput_lld_toggle_board_olimexsam7ex256.h | 27 ++- .../ginput/toggle/Pal/ginput_lld_toggle_config.h | 9 - drivers/ginput/touch/ADS7843/ginput_lld_mouse.c | 9 - .../touch/ADS7843/ginput_lld_mouse_board_example.h | 9 - .../ginput_lld_mouse_board_firebull_stm32f103.h | 9 - .../ginput_lld_mouse_board_olimex_stm32_e407.h | 9 - .../ginput/touch/ADS7843/ginput_lld_mouse_config.h | 9 - drivers/ginput/touch/MCU/ginput_lld_mouse.c | 9 - .../touch/MCU/ginput_lld_mouse_board_example.h | 9 - .../ginput_lld_mouse_board_olimex_pic32mx_lcd.h | 9 - .../MCU/ginput_lld_mouse_board_olimex_stm32_lcd.h | 9 - drivers/ginput/touch/MCU/ginput_lld_mouse_config.h | 9 - drivers/ginput/touch/STMPE811/ginput_lld_mouse.c | 27 ++- .../ginput_lld_mouse_board_embest_dmstf4bb.h | 9 - .../STMPE811/ginput_lld_mouse_board_example.h | 9 - .../touch/STMPE811/ginput_lld_mouse_config.h | 9 - drivers/ginput/touch/STMPE811/stmpe811.h | 9 - drivers/multiple/Win32/gdisp_lld.c | 27 ++- drivers/multiple/Win32/gdisp_lld_config.h | 9 - drivers/multiple/Win32/ginput_lld_mouse_config.h | 9 - drivers/multiple/Win32/ginput_lld_toggle_config.h | 9 - drivers/tdisp/HD44780/tdisp_lld.c | 27 ++- drivers/tdisp/HD44780/tdisp_lld_board_example.h | 27 ++- .../tdisp/HD44780/tdisp_lld_board_olimex_e407.h | 9 - .../HD44780/tdisp_lld_board_st_stm32f4_discovery.h | 9 - gfxconf.example.h | 9 - include/gadc/gadc.h | 9 - include/gadc/lld/gadc_lld.h | 9 - include/gadc/options.h | 27 ++- include/gaudin/gaudin.h | 9 - include/gaudin/lld/gaudin_lld.h | 9 - include/gaudin/options.h | 9 - include/gaudout/gaudout.h | 9 - include/gaudout/options.h | 9 - include/gdisp/fonts.h | 9 - include/gdisp/gdisp.h | 27 ++- include/gdisp/image.h | 27 ++- include/gdisp/lld/emulation.c | 27 ++- include/gdisp/lld/gdisp_lld.h | 27 ++- include/gdisp/lld/gdisp_lld_msgs.h | 27 ++- include/gdisp/options.h | 27 ++- include/gevent/gevent.h | 9 - include/gevent/options.h | 9 - include/gfx.h | 27 ++- include/gfx_rules.h | 27 ++- include/ginput/dial.h | 9 - include/ginput/ginput.h | 9 - include/ginput/keyboard.h | 9 - include/ginput/lld/dial.h | 9 - include/ginput/lld/mouse.h | 9 - include/ginput/lld/toggle.h | 9 - include/ginput/mouse.h | 9 - include/ginput/options.h | 9 - include/ginput/toggle.h | 9 - include/gmisc/gmisc.h | 9 - include/gmisc/options.h | 9 - include/gtimer/gtimer.h | 9 - include/gtimer/options.h | 9 - include/gwin/button.h | 9 - include/gwin/console.h | 9 - include/gwin/graph.h | 27 ++- include/gwin/gwin.h | 9 - include/gwin/internal.h | 9 - include/gwin/options.h | 27 ++- include/gwin/slider.h | 9 - include/tdisp/lld/tdisp_lld.h | 9 - include/tdisp/options.h | 9 - include/tdisp/tdisp.h | 9 - src/gadc/gadc.c | 27 ++- src/gaudin/gaudin.c | 27 ++- src/gaudout/gaudout.c | 9 - src/gdisp/fonts.c | 27 ++- src/gdisp/gdisp.c | 27 ++- src/gdisp/image.c | 27 ++- src/gdisp/image_bmp.c | 27 ++- src/gdisp/image_gif.c | 27 ++- src/gdisp/image_jpg.c | 27 ++- src/gdisp/image_native.c | 27 ++- src/gdisp/image_png.c | 27 ++- src/gevent/gevent.c | 27 ++- src/ginput/dial.c | 27 ++- src/ginput/keyboard.c | 9 - src/ginput/mouse.c | 9 - src/ginput/toggle.c | 9 - src/gmisc/arrayops.c | 9 - src/gtimer/gtimer.c | 9 - src/gwin/button.c | 9 - src/gwin/console.c | 9 - src/gwin/graph.c | 9 - src/gwin/gwin.c | 9 - src/gwin/slider.c | 9 - src/tdisp/tdisp.c | 9 - tools/file2c/src/file2c.c | 27 ++- 198 files changed, 1573 insertions(+), 2025 deletions(-) delete mode 100644 3rdparty/boing/gfxconf.h delete mode 100644 3rdparty/boing/main.c delete mode 100644 3rdparty/bubbles/gfxconf.h delete mode 100644 3rdparty/bubbles/main.c delete mode 100644 3rdparty/readme.txt create mode 100644 demos/3rdparty/boing/gfxconf.h create mode 100644 demos/3rdparty/boing/main.c create mode 100644 demos/3rdparty/bubbles/gfxconf.h create mode 100644 demos/3rdparty/bubbles/main.c create mode 100644 demos/3rdparty/readme.txt diff --git a/3rdparty/boing/gfxconf.h b/3rdparty/boing/gfxconf.h deleted file mode 100644 index 45b6d7ab..00000000 --- a/3rdparty/boing/gfxconf.h +++ /dev/null @@ -1,40 +0,0 @@ -/** - * This file has a different license to the rest of the GFX system. - * You can copy, modify and distribute this file as you see fit. - * You do not need to publish your source modifications to this file. - * The only thing you are not permitted to do is to relicense it - * under a different license. - */ - -#ifndef _GFXCONF_H -#define _GFXCONF_H - -/* GFX sub-systems to turn on */ -#define GFX_USE_GDISP TRUE -#define GFX_USE_GWIN FALSE -#define GFX_USE_GEVENT FALSE -#define GFX_USE_GTIMER FALSE -#define GFX_USE_GINPUT FALSE - -/* Features for the GDISP sub-system. */ -#define GDISP_NEED_VALIDATION FALSE -#define GDISP_NEED_CLIP FALSE -#define GDISP_NEED_TEXT FALSE -#define GDISP_NEED_CIRCLE FALSE -#define GDISP_NEED_ELLIPSE FALSE -#define GDISP_NEED_ARC FALSE -#define GDISP_NEED_SCROLL FALSE -#define GDISP_NEED_PIXELREAD FALSE -#define GDISP_NEED_CONTROL FALSE -#define GDISP_NEED_MULTITHREAD FALSE -#define GDISP_NEED_ASYNC FALSE -#define GDISP_NEED_MSGAPI FALSE - -/* Builtin Fonts */ -#define GDISP_INCLUDE_FONT_SMALL FALSE -#define GDISP_INCLUDE_FONT_LARGER FALSE -#define GDISP_INCLUDE_FONT_UI1 FALSE -#define GDISP_INCLUDE_FONT_UI2 FALSE -#define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE - -#endif /* _GFXCONF_H */ diff --git a/3rdparty/boing/main.c b/3rdparty/boing/main.c deleted file mode 100644 index a34cd2a9..00000000 --- a/3rdparty/boing/main.c +++ /dev/null @@ -1,111 +0,0 @@ -/* Derived from the 2011 IOCCC submission by peter.eastman@gmail.com - * http://www.ioccc.org/2011/eastman/eastman.c - * -- - * Public Domain -- but you're looking at this for ideas of techniques - * and methods, not trying to cut&paste an entire application, anyway. - * -- - * When you need to blit an entire screenfull of data to an LCD - * display, the basic idea is to exploit the auto-increment feature of - * the display controller when it writes to screen memory. You start - * by resetting the 'cursor' to the 0,0 position, and then stream - * width*height pixels out. - * -- - * Chris Baird,, April 2013 - */ - -#include -#include "ch.h" -#include "hal.h" -#include "gfx.h" -#include "ssd2119.h" - -#define Lightgrey (HTML2COLOR(0xC0C0C0)) -#define Midgrey (HTML2COLOR(0x606060)) -#define Darkgrey (HTML2COLOR(0x303030)) - - -/* ---------------------------------------------------------------------- */ -/* As of early April 2013, the /gfx extension tries to keep the low-level - * stuff away from our filthy paws. So Code Duplication. - * (Possibly to be replaced with gdispStartStream(), gdispWriteStream() - * and gdispStopStream() in the future.) - */ - -#define GDISP_REG (*((volatile uint16_t *) 0x60000000)) /* DC = 0 */ -#define GDISP_RAM (*((volatile uint16_t *) 0x60100000)) /* DC = 1 */ - -inline void write_index (uint16_t index) { GDISP_REG = index; } -inline void write_data (uint16_t data) { GDISP_RAM = data; } - -#define write_reg(reg, data) { write_index(reg); write_data(data); } - -void reset_cursor (void) -{ - write_reg (SSD2119_REG_X_RAM_ADDR, 0); - write_reg (SSD2119_REG_Y_RAM_ADDR, 0); -} - -#define StartStream() { write_index (SSD2119_REG_RAM_DATA); } -#define WriteStream(x) { write_data (x); } -#define StopStream() /* NOP */ - - -/* ---------------------------------------------------------------------- */ - -void main (void) -{ - uint16_t xx, yy, colour; - - halInit(); - chSysInit(); - gdispInit(); - - uint16_t width = (uint16_t)gdispGetWidth(); - uint16_t height = (uint16_t)gdispGetHeight(); - - float i=height/5+height%2+1, floorstart=height/5-1, spherespin=0.0, - l=width/2, m=height/4, n=.01*width, o=0.0, rotspeed=0.1, h, f, g; - - while (TRUE) - { - reset_cursor (); - StartStream (); - - for (xx=yy=0; - h = (m-yy)/i, f=-.3*(g=(l-xx)/i)+.954*h, yywidth-floorstart) - colour = Darkgrey; /* side wall */ - else - colour = Lightgrey; /* back wall */ - - if (yy > height-floorstart) - if (xx < height-yy || height-yy > width-xx) /* floor */ - colour = Darkgrey; - else - colour = Midgrey; - - if (g*(g+.6)+.09+h*h < 1) - colour >>= 1; /* ball shadow; make it darker */ - } - - WriteStream (colour); /* pixel to the LCD */ - } - - StopStream(); - spherespin += rotspeed; - m += o; - o = m > height-1.75*floorstart ? -.04*height : o+.002*height; - n = (l+=n)width-i ? rotspeed=-rotspeed,-n : n; - } -} - -/* ---------------------------------------------------------------------- */ diff --git a/3rdparty/bubbles/gfxconf.h b/3rdparty/bubbles/gfxconf.h deleted file mode 100644 index 9b1f76a6..00000000 --- a/3rdparty/bubbles/gfxconf.h +++ /dev/null @@ -1,40 +0,0 @@ -/** - * This file has a different license to the rest of the GFX system. - * You can copy, modify and distribute this file as you see fit. - * You do not need to publish your source modifications to this file. - * The only thing you are not permitted to do is to relicense it - * under a different license. - */ - -#ifndef _GFXCONF_H -#define _GFXCONF_H - -/* GFX sub-systems to turn on */ -#define GFX_USE_GDISP TRUE -#define GFX_USE_GWIN FALSE -#define GFX_USE_GEVENT FALSE -#define GFX_USE_GTIMER FALSE -#define GFX_USE_GINPUT FALSE - -/* Features for the GDISP sub-system. */ -#define GDISP_NEED_VALIDATION FALSE -#define GDISP_NEED_CLIP FALSE -#define GDISP_NEED_TEXT FALSE -#define GDISP_NEED_CIRCLE TRUE -#define GDISP_NEED_ELLIPSE FALSE -#define GDISP_NEED_ARC FALSE -#define GDISP_NEED_SCROLL FALSE -#define GDISP_NEED_PIXELREAD FALSE -#define GDISP_NEED_CONTROL FALSE -#define GDISP_NEED_MULTITHREAD FALSE -#define GDISP_NEED_ASYNC FALSE -#define GDISP_NEED_MSGAPI FALSE - -/* Builtin Fonts */ -#define GDISP_INCLUDE_FONT_SMALL FALSE -#define GDISP_INCLUDE_FONT_LARGER FALSE -#define GDISP_INCLUDE_FONT_UI1 FALSE -#define GDISP_INCLUDE_FONT_UI2 FALSE -#define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE - -#endif /* _GFXCONF_H */ diff --git a/3rdparty/bubbles/main.c b/3rdparty/bubbles/main.c deleted file mode 100644 index 81c5dbe3..00000000 --- a/3rdparty/bubbles/main.c +++ /dev/null @@ -1,194 +0,0 @@ -/* Microcontroller graphic demo by Pascal Piazzalunga - * admin@serveurperso.com http://www.serveurperso.com - * https://www.youtube.com/watch?v=wyuJ-dqS2to - * Ported to stm32/ChibiOS/glx by Chris Baird. - * It's spinnin' bubbles, man. - * -- - * Licencing? Ask Pascal. Let's assume it is freely-distributable and - * modifiable, provided his name is kept in the source. - * -- - * Chris Baird,, April 2013 - */ - -#include -#include "ch.h" -#include "hal.h" -#include "gfx.h" - - -/* ---------------------------------------------------------------------- */ - -#define N 1024 /* Number of dots */ -#define SCALE 8192 -#define INCREMENT 512 /* INCREMENT = SCALE / sqrt(N) * 2 */ -#define PI2 6.283185307179586476925286766559 - -#define background RGB2COLOR(0,0,0) - -uint16_t width, height; -int16_t sine[SCALE+(SCALE/4)]; -int16_t *cosi = &sine[SCALE/4]; /* cos(x) = sin(x+90d)... */ - - -void initialize (void) -{ - uint16_t i; - - /* if you change the SCALE*1.25 back to SCALE, the program will - * occassionally overrun the cosi array -- however this actually - * produces some interesting effects as the BUBBLES LOSE CONTROL!!!! - */ - for (i = 0; i < SCALE+(SCALE/4); i++) - //sine[i] = (-SCALE/2) + (int)(sinf(PI2 * i / SCALE) * sinf(PI2 * i / SCALE) * SCALE); - sine[i] = (int)(sinf(PI2 * i / SCALE) * SCALE); -} - - -void matrix (int16_t xyz[3][N], color_t col[N]) -{ - static uint32_t t = 0; - int16_t x = -SCALE, y = -SCALE; - uint16_t i, s, d; - uint8_t red,grn,blu; - -#define RED_COLORS (32) -#define GREEN_COLORS (64) -#define BLUE_COLORS (32) - - for (i = 0; i < N; i++) - { - xyz[0][i] = x; - xyz[1][i] = y; - - d = sqrtf(x * x + y * y); /* originally a fastsqrt() call */ - s = sine[(t * 30) % SCALE] + SCALE; - - xyz[2][i] = sine[(d + s) % SCALE] * sine[(t * 10) % SCALE] / SCALE / 2; - - red = (cosi[xyz[2][i] + SCALE / 2] + SCALE) * - (RED_COLORS - 1) / SCALE / 2; - grn = (cosi[(xyz[2][i] + SCALE / 2 + 2 * SCALE / 3) % SCALE] + SCALE) * - (GREEN_COLORS - 1) / SCALE / 2; - blu = (cosi[(xyz[2][i] + SCALE / 2 + SCALE / 3) % SCALE] + SCALE) * - (BLUE_COLORS - 1) / SCALE / 2; - col[i] = ((red << 11) + (grn << 5) + blu); - - x += INCREMENT; - - if (x >= SCALE) x = -SCALE, y += INCREMENT; - } - t++; -} - - -void rotate (int16_t xyz[3][N], uint16_t angleX, uint16_t angleY, uint16_t angleZ) -{ - uint16_t i; - int16_t tmpX, tmpY; - int16_t sinx = sine[angleX], cosx = cosi[angleX]; - int16_t siny = sine[angleY], cosy = cosi[angleY]; - int16_t sinz = sine[angleZ], cosz = cosi[angleZ]; - - for (i = 0; i < N; i++) - { - tmpX = (xyz[0][i] * cosx - xyz[2][i] * sinx) / SCALE; - xyz[2][i] = (xyz[0][i] * sinx + xyz[2][i] * cosx) / SCALE; - xyz[0][i] = tmpX; - - tmpY = (xyz[1][i] * cosy - xyz[2][i] * siny) / SCALE; - xyz[2][i] = (xyz[1][i] * siny + xyz[2][i] * cosy) / SCALE; - xyz[1][i] = tmpY; - - tmpX = (xyz[0][i] * cosz - xyz[1][i] * sinz) / SCALE; - xyz[1][i] = (xyz[0][i] * sinz + xyz[1][i] * cosz) / SCALE; - xyz[0][i] = tmpX; - } -} - - -void draw(int16_t xyz[3][N], color_t col[N]) -{ - static uint16_t oldProjX[N] = {0}; - static uint16_t oldProjY[N] = {0}; - static uint8_t oldDotSize[N] = {0}; - uint16_t i, projX, projY, projZ, dotSize; - - for (i = 0; i < N; i++) - { - projZ = SCALE - (xyz[2][i] + SCALE) / 4; - projX = width / 2 + (xyz[0][i] * projZ / SCALE) / 25; - projY = height / 2 + (xyz[1][i] * projZ / SCALE) / 25; - dotSize = 3 - (xyz[2][i] + SCALE) * 2 / SCALE; - - gdispDrawCircle (oldProjX[i], oldProjY[i], oldDotSize[i], background); - - if (projX > dotSize && - projY > dotSize && - projX < width - dotSize && - projY < height - dotSize) - { - gdispDrawCircle (projX, projY, dotSize, col[i]); - oldProjX[i] = projX; - oldProjY[i] = projY; - oldDotSize[i] = dotSize; - } - } -} - - -/* ---------------------------------------------------------------------- */ - -int16_t angleX = 0, angleY = 0, angleZ = 0; -int16_t speedX = 0, speedY = 0, speedZ = 0; - -int16_t xyz[3][N]; -color_t col[N]; - - -int main (void) -{ - int pass = 0; - - halInit(); - chSysInit(); - gdispInit(); - - chThdSleepMilliseconds (10); - gdispClear (background); /* glitches.. */ - chThdSleepMilliseconds (10); - gdispClear (background); /* glitches.. */ - chThdSleepMilliseconds (10); - gdispClear (background); /* glitches.. */ - - width = (uint16_t)gdispGetWidth(); - height = (uint16_t)gdispGetHeight(); - - initialize(); - - for (;;) - { - matrix(xyz, col); - rotate(xyz, angleX, angleY, angleZ); - draw(xyz, col); - - angleX += speedX; - angleY += speedY; - angleZ += speedZ; - - if (pass > 400) speedY = 1; - if (pass > 800) speedX = 1; - if (pass > 1200) speedZ = 1; - pass++; - - if (angleX >= SCALE) angleX -= SCALE; - else if (angleX < 0) angleX += SCALE; - - if (angleY >= SCALE) angleY -= SCALE; - else if (angleY < 0) angleY += SCALE; - - if (angleZ >= SCALE) angleZ -= SCALE; - else if (angleZ < 0) angleZ += SCALE; - } -} - -/* ---------------------------------------------------------------------- */ diff --git a/3rdparty/readme.txt b/3rdparty/readme.txt deleted file mode 100644 index 3f97204a..00000000 --- a/3rdparty/readme.txt +++ /dev/null @@ -1,10 +0,0 @@ -In this directory, you can find different demos showing how to use ChibiOS/GFX. -The demos in these directories are contributions from users of the ChibiOS/GFX -project and come from different sources. Therefore, the source files of these -demos come with different licenses which can be found on top of the cor- -responding files. -Since these files are not part of the ChibiOS/GFX project, no support for these -demos is provided. And as with all software which can be found in the /demos -directory, use on your own risk. There's no warranty of the correctness -and function of the demos provided. - diff --git a/demos/3rdparty/boing/gfxconf.h b/demos/3rdparty/boing/gfxconf.h new file mode 100644 index 00000000..45b6d7ab --- /dev/null +++ b/demos/3rdparty/boing/gfxconf.h @@ -0,0 +1,40 @@ +/** + * This file has a different license to the rest of the GFX system. + * You can copy, modify and distribute this file as you see fit. + * You do not need to publish your source modifications to this file. + * The only thing you are not permitted to do is to relicense it + * under a different license. + */ + +#ifndef _GFXCONF_H +#define _GFXCONF_H + +/* GFX sub-systems to turn on */ +#define GFX_USE_GDISP TRUE +#define GFX_USE_GWIN FALSE +#define GFX_USE_GEVENT FALSE +#define GFX_USE_GTIMER FALSE +#define GFX_USE_GINPUT FALSE + +/* Features for the GDISP sub-system. */ +#define GDISP_NEED_VALIDATION FALSE +#define GDISP_NEED_CLIP FALSE +#define GDISP_NEED_TEXT FALSE +#define GDISP_NEED_CIRCLE FALSE +#define GDISP_NEED_ELLIPSE FALSE +#define GDISP_NEED_ARC FALSE +#define GDISP_NEED_SCROLL FALSE +#define GDISP_NEED_PIXELREAD FALSE +#define GDISP_NEED_CONTROL FALSE +#define GDISP_NEED_MULTITHREAD FALSE +#define GDISP_NEED_ASYNC FALSE +#define GDISP_NEED_MSGAPI FALSE + +/* Builtin Fonts */ +#define GDISP_INCLUDE_FONT_SMALL FALSE +#define GDISP_INCLUDE_FONT_LARGER FALSE +#define GDISP_INCLUDE_FONT_UI1 FALSE +#define GDISP_INCLUDE_FONT_UI2 FALSE +#define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE + +#endif /* _GFXCONF_H */ diff --git a/demos/3rdparty/boing/main.c b/demos/3rdparty/boing/main.c new file mode 100644 index 00000000..a34cd2a9 --- /dev/null +++ b/demos/3rdparty/boing/main.c @@ -0,0 +1,111 @@ +/* Derived from the 2011 IOCCC submission by peter.eastman@gmail.com + * http://www.ioccc.org/2011/eastman/eastman.c + * -- + * Public Domain -- but you're looking at this for ideas of techniques + * and methods, not trying to cut&paste an entire application, anyway. + * -- + * When you need to blit an entire screenfull of data to an LCD + * display, the basic idea is to exploit the auto-increment feature of + * the display controller when it writes to screen memory. You start + * by resetting the 'cursor' to the 0,0 position, and then stream + * width*height pixels out. + * -- + * Chris Baird,, April 2013 + */ + +#include +#include "ch.h" +#include "hal.h" +#include "gfx.h" +#include "ssd2119.h" + +#define Lightgrey (HTML2COLOR(0xC0C0C0)) +#define Midgrey (HTML2COLOR(0x606060)) +#define Darkgrey (HTML2COLOR(0x303030)) + + +/* ---------------------------------------------------------------------- */ +/* As of early April 2013, the /gfx extension tries to keep the low-level + * stuff away from our filthy paws. So Code Duplication. + * (Possibly to be replaced with gdispStartStream(), gdispWriteStream() + * and gdispStopStream() in the future.) + */ + +#define GDISP_REG (*((volatile uint16_t *) 0x60000000)) /* DC = 0 */ +#define GDISP_RAM (*((volatile uint16_t *) 0x60100000)) /* DC = 1 */ + +inline void write_index (uint16_t index) { GDISP_REG = index; } +inline void write_data (uint16_t data) { GDISP_RAM = data; } + +#define write_reg(reg, data) { write_index(reg); write_data(data); } + +void reset_cursor (void) +{ + write_reg (SSD2119_REG_X_RAM_ADDR, 0); + write_reg (SSD2119_REG_Y_RAM_ADDR, 0); +} + +#define StartStream() { write_index (SSD2119_REG_RAM_DATA); } +#define WriteStream(x) { write_data (x); } +#define StopStream() /* NOP */ + + +/* ---------------------------------------------------------------------- */ + +void main (void) +{ + uint16_t xx, yy, colour; + + halInit(); + chSysInit(); + gdispInit(); + + uint16_t width = (uint16_t)gdispGetWidth(); + uint16_t height = (uint16_t)gdispGetHeight(); + + float i=height/5+height%2+1, floorstart=height/5-1, spherespin=0.0, + l=width/2, m=height/4, n=.01*width, o=0.0, rotspeed=0.1, h, f, g; + + while (TRUE) + { + reset_cursor (); + StartStream (); + + for (xx=yy=0; + h = (m-yy)/i, f=-.3*(g=(l-xx)/i)+.954*h, yywidth-floorstart) + colour = Darkgrey; /* side wall */ + else + colour = Lightgrey; /* back wall */ + + if (yy > height-floorstart) + if (xx < height-yy || height-yy > width-xx) /* floor */ + colour = Darkgrey; + else + colour = Midgrey; + + if (g*(g+.6)+.09+h*h < 1) + colour >>= 1; /* ball shadow; make it darker */ + } + + WriteStream (colour); /* pixel to the LCD */ + } + + StopStream(); + spherespin += rotspeed; + m += o; + o = m > height-1.75*floorstart ? -.04*height : o+.002*height; + n = (l+=n)width-i ? rotspeed=-rotspeed,-n : n; + } +} + +/* ---------------------------------------------------------------------- */ diff --git a/demos/3rdparty/bubbles/gfxconf.h b/demos/3rdparty/bubbles/gfxconf.h new file mode 100644 index 00000000..9b1f76a6 --- /dev/null +++ b/demos/3rdparty/bubbles/gfxconf.h @@ -0,0 +1,40 @@ +/** + * This file has a different license to the rest of the GFX system. + * You can copy, modify and distribute this file as you see fit. + * You do not need to publish your source modifications to this file. + * The only thing you are not permitted to do is to relicense it + * under a different license. + */ + +#ifndef _GFXCONF_H +#define _GFXCONF_H + +/* GFX sub-systems to turn on */ +#define GFX_USE_GDISP TRUE +#define GFX_USE_GWIN FALSE +#define GFX_USE_GEVENT FALSE +#define GFX_USE_GTIMER FALSE +#define GFX_USE_GINPUT FALSE + +/* Features for the GDISP sub-system. */ +#define GDISP_NEED_VALIDATION FALSE +#define GDISP_NEED_CLIP FALSE +#define GDISP_NEED_TEXT FALSE +#define GDISP_NEED_CIRCLE TRUE +#define GDISP_NEED_ELLIPSE FALSE +#define GDISP_NEED_ARC FALSE +#define GDISP_NEED_SCROLL FALSE +#define GDISP_NEED_PIXELREAD FALSE +#define GDISP_NEED_CONTROL FALSE +#define GDISP_NEED_MULTITHREAD FALSE +#define GDISP_NEED_ASYNC FALSE +#define GDISP_NEED_MSGAPI FALSE + +/* Builtin Fonts */ +#define GDISP_INCLUDE_FONT_SMALL FALSE +#define GDISP_INCLUDE_FONT_LARGER FALSE +#define GDISP_INCLUDE_FONT_UI1 FALSE +#define GDISP_INCLUDE_FONT_UI2 FALSE +#define GDISP_INCLUDE_FONT_LARGENUMBERS FALSE + +#endif /* _GFXCONF_H */ diff --git a/demos/3rdparty/bubbles/main.c b/demos/3rdparty/bubbles/main.c new file mode 100644 index 00000000..81c5dbe3 --- /dev/null +++ b/demos/3rdparty/bubbles/main.c @@ -0,0 +1,194 @@ +/* Microcontroller graphic demo by Pascal Piazzalunga + * admin@serveurperso.com http://www.serveurperso.com + * https://www.youtube.com/watch?v=wyuJ-dqS2to + * Ported to stm32/ChibiOS/glx by Chris Baird. + * It's spinnin' bubbles, man. + * -- + * Licencing? Ask Pascal. Let's assume it is freely-distributable and + * modifiable, provided his name is kept in the source. + * -- + * Chris Baird,, April 2013 + */ + +#include +#include "ch.h" +#include "hal.h" +#include "gfx.h" + + +/* ---------------------------------------------------------------------- */ + +#define N 1024 /* Number of dots */ +#define SCALE 8192 +#define INCREMENT 512 /* INCREMENT = SCALE / sqrt(N) * 2 */ +#define PI2 6.283185307179586476925286766559 + +#define background RGB2COLOR(0,0,0) + +uint16_t width, height; +int16_t sine[SCALE+(SCALE/4)]; +int16_t *cosi = &sine[SCALE/4]; /* cos(x) = sin(x+90d)... */ + + +void initialize (void) +{ + uint16_t i; + + /* if you change the SCALE*1.25 back to SCALE, the program will + * occassionally overrun the cosi array -- however this actually + * produces some interesting effects as the BUBBLES LOSE CONTROL!!!! + */ + for (i = 0; i < SCALE+(SCALE/4); i++) + //sine[i] = (-SCALE/2) + (int)(sinf(PI2 * i / SCALE) * sinf(PI2 * i / SCALE) * SCALE); + sine[i] = (int)(sinf(PI2 * i / SCALE) * SCALE); +} + + +void matrix (int16_t xyz[3][N], color_t col[N]) +{ + static uint32_t t = 0; + int16_t x = -SCALE, y = -SCALE; + uint16_t i, s, d; + uint8_t red,grn,blu; + +#define RED_COLORS (32) +#define GREEN_COLORS (64) +#define BLUE_COLORS (32) + + for (i = 0; i < N; i++) + { + xyz[0][i] = x; + xyz[1][i] = y; + + d = sqrtf(x * x + y * y); /* originally a fastsqrt() call */ + s = sine[(t * 30) % SCALE] + SCALE; + + xyz[2][i] = sine[(d + s) % SCALE] * sine[(t * 10) % SCALE] / SCALE / 2; + + red = (cosi[xyz[2][i] + SCALE / 2] + SCALE) * + (RED_COLORS - 1) / SCALE / 2; + grn = (cosi[(xyz[2][i] + SCALE / 2 + 2 * SCALE / 3) % SCALE] + SCALE) * + (GREEN_COLORS - 1) / SCALE / 2; + blu = (cosi[(xyz[2][i] + SCALE / 2 + SCALE / 3) % SCALE] + SCALE) * + (BLUE_COLORS - 1) / SCALE / 2; + col[i] = ((red << 11) + (grn << 5) + blu); + + x += INCREMENT; + + if (x >= SCALE) x = -SCALE, y += INCREMENT; + } + t++; +} + + +void rotate (int16_t xyz[3][N], uint16_t angleX, uint16_t angleY, uint16_t angleZ) +{ + uint16_t i; + int16_t tmpX, tmpY; + int16_t sinx = sine[angleX], cosx = cosi[angleX]; + int16_t siny = sine[angleY], cosy = cosi[angleY]; + int16_t sinz = sine[angleZ], cosz = cosi[angleZ]; + + for (i = 0; i < N; i++) + { + tmpX = (xyz[0][i] * cosx - xyz[2][i] * sinx) / SCALE; + xyz[2][i] = (xyz[0][i] * sinx + xyz[2][i] * cosx) / SCALE; + xyz[0][i] = tmpX; + + tmpY = (xyz[1][i] * cosy - xyz[2][i] * siny) / SCALE; + xyz[2][i] = (xyz[1][i] * siny + xyz[2][i] * cosy) / SCALE; + xyz[1][i] = tmpY; + + tmpX = (xyz[0][i] * cosz - xyz[1][i] * sinz) / SCALE; + xyz[1][i] = (xyz[0][i] * sinz + xyz[1][i] * cosz) / SCALE; + xyz[0][i] = tmpX; + } +} + + +void draw(int16_t xyz[3][N], color_t col[N]) +{ + static uint16_t oldProjX[N] = {0}; + static uint16_t oldProjY[N] = {0}; + static uint8_t oldDotSize[N] = {0}; + uint16_t i, projX, projY, projZ, dotSize; + + for (i = 0; i < N; i++) + { + projZ = SCALE - (xyz[2][i] + SCALE) / 4; + projX = width / 2 + (xyz[0][i] * projZ / SCALE) / 25; + projY = height / 2 + (xyz[1][i] * projZ / SCALE) / 25; + dotSize = 3 - (xyz[2][i] + SCALE) * 2 / SCALE; + + gdispDrawCircle (oldProjX[i], oldProjY[i], oldDotSize[i], background); + + if (projX > dotSize && + projY > dotSize && + projX < width - dotSize && + projY < height - dotSize) + { + gdispDrawCircle (projX, projY, dotSize, col[i]); + oldProjX[i] = projX; + oldProjY[i] = projY; + oldDotSize[i] = dotSize; + } + } +} + + +/* ---------------------------------------------------------------------- */ + +int16_t angleX = 0, angleY = 0, angleZ = 0; +int16_t speedX = 0, speedY = 0, speedZ = 0; + +int16_t xyz[3][N]; +color_t col[N]; + + +int main (void) +{ + int pass = 0; + + halInit(); + chSysInit(); + gdispInit(); + + chThdSleepMilliseconds (10); + gdispClear (background); /* glitches.. */ + chThdSleepMilliseconds (10); + gdispClear (background); /* glitches.. */ + chThdSleepMilliseconds (10); + gdispClear (background); /* glitches.. */ + + width = (uint16_t)gdispGetWidth(); + height = (uint16_t)gdispGetHeight(); + + initialize(); + + for (;;) + { + matrix(xyz, col); + rotate(xyz, angleX, angleY, angleZ); + draw(xyz, col); + + angleX += speedX; + angleY += speedY; + angleZ += speedZ; + + if (pass > 400) speedY = 1; + if (pass > 800) speedX = 1; + if (pass > 1200) speedZ = 1; + pass++; + + if (angleX >= SCALE) angleX -= SCALE; + else if (angleX < 0) angleX += SCALE; + + if (angleY >= SCALE) angleY -= SCALE; + else if (angleY < 0) angleY += SCALE; + + if (angleZ >= SCALE) angleZ -= SCALE; + else if (angleZ < 0) angleZ += SCALE; + } +} + +/* ---------------------------------------------------------------------- */ diff --git a/demos/3rdparty/readme.txt b/demos/3rdparty/readme.txt new file mode 100644 index 00000000..3f97204a --- /dev/null +++ b/demos/3rdparty/readme.txt @@ -0,0 +1,10 @@ +In this directory, you can find different demos showing how to use ChibiOS/GFX. +The demos in these directories are contributions from users of the ChibiOS/GFX +project and come from different sources. Therefore, the source files of these +demos come with different licenses which can be found on top of the cor- +responding files. +Since these files are not part of the ChibiOS/GFX project, no support for these +demos is provided. And as with all software which can be found in the /demos +directory, use on your own risk. There's no warranty of the correctness +and function of the demos provided. + diff --git a/demos/applications/mandelbrot/gfxconf.h b/demos/applications/mandelbrot/gfxconf.h index aeb1f714..7093884f 100644 --- a/demos/applications/mandelbrot/gfxconf.h +++ b/demos/applications/mandelbrot/gfxconf.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/applications/mandelbrot/main.c b/demos/applications/mandelbrot/main.c index cdcfb8f2..969a9c92 100644 --- a/demos/applications/mandelbrot/main.c +++ b/demos/applications/mandelbrot/main.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/applications/notepad/gfxconf.h b/demos/applications/notepad/gfxconf.h index d44b0830..7ba6483b 100644 --- a/demos/applications/notepad/gfxconf.h +++ b/demos/applications/notepad/gfxconf.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/applications/notepad/main.c b/demos/applications/notepad/main.c index 982b796a..1dcfd154 100644 --- a/demos/applications/notepad/main.c +++ b/demos/applications/notepad/main.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/benchmarks/gfxconf.h b/demos/benchmarks/gfxconf.h index c4bacefd..d12025e5 100644 --- a/demos/benchmarks/gfxconf.h +++ b/demos/benchmarks/gfxconf.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/benchmarks/main.c b/demos/benchmarks/main.c index 2740cd9f..c3cef762 100644 --- a/demos/benchmarks/main.c +++ b/demos/benchmarks/main.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gadc/gfxconf.h b/demos/modules/gadc/gfxconf.h index e4da593f..557184cc 100644 --- a/demos/modules/gadc/gfxconf.h +++ b/demos/modules/gadc/gfxconf.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gadc/gwinosc.c b/demos/modules/gadc/gwinosc.c index 4ef1f5f5..49d9fe22 100644 --- a/demos/modules/gadc/gwinosc.c +++ b/demos/modules/gadc/gwinosc.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gadc/gwinosc.h b/demos/modules/gadc/gwinosc.h index 6f025669..11644be4 100644 --- a/demos/modules/gadc/gwinosc.h +++ b/demos/modules/gadc/gwinosc.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gadc/main.c b/demos/modules/gadc/main.c index 8b649d30..f506a473 100644 --- a/demos/modules/gadc/main.c +++ b/demos/modules/gadc/main.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gaudin/gfxconf.h b/demos/modules/gaudin/gfxconf.h index ec79e1f5..d9db73a5 100644 --- a/demos/modules/gaudin/gfxconf.h +++ b/demos/modules/gaudin/gfxconf.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gaudin/gwinosc.c b/demos/modules/gaudin/gwinosc.c index 8422fb22..5a2867c1 100644 --- a/demos/modules/gaudin/gwinosc.c +++ b/demos/modules/gaudin/gwinosc.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gaudin/gwinosc.h b/demos/modules/gaudin/gwinosc.h index 63cfc05b..9c51e548 100644 --- a/demos/modules/gaudin/gwinosc.h +++ b/demos/modules/gaudin/gwinosc.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gaudin/main.c b/demos/modules/gaudin/main.c index 7a69989d..f532b324 100644 --- a/demos/modules/gaudin/main.c +++ b/demos/modules/gaudin/main.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gdisp/gdisp_basics/gfxconf.h b/demos/modules/gdisp/gdisp_basics/gfxconf.h index ebebd1b3..f64884a0 100644 --- a/demos/modules/gdisp/gdisp_basics/gfxconf.h +++ b/demos/modules/gdisp/gdisp_basics/gfxconf.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gdisp/gdisp_basics/main.c b/demos/modules/gdisp/gdisp_basics/main.c index bbc3e399..134f2473 100644 --- a/demos/modules/gdisp/gdisp_basics/main.c +++ b/demos/modules/gdisp/gdisp_basics/main.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gdisp/gdisp_circles/gfxconf.h b/demos/modules/gdisp/gdisp_circles/gfxconf.h index b0a7b5c9..cc60c46b 100644 --- a/demos/modules/gdisp/gdisp_circles/gfxconf.h +++ b/demos/modules/gdisp/gdisp_circles/gfxconf.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gdisp/gdisp_circles/main.c b/demos/modules/gdisp/gdisp_circles/main.c index e6b985dc..395af009 100644 --- a/demos/modules/gdisp/gdisp_circles/main.c +++ b/demos/modules/gdisp/gdisp_circles/main.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gdisp/gdisp_images/gfxconf.h b/demos/modules/gdisp/gdisp_images/gfxconf.h index d4a18671..e76ddd72 100644 --- a/demos/modules/gdisp/gdisp_images/gfxconf.h +++ b/demos/modules/gdisp/gdisp_images/gfxconf.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gdisp/gdisp_images/main.c b/demos/modules/gdisp/gdisp_images/main.c index 23170f5e..a6fa58d8 100644 --- a/demos/modules/gdisp/gdisp_images/main.c +++ b/demos/modules/gdisp/gdisp_images/main.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gdisp/gdisp_images_animated/gfxconf.h b/demos/modules/gdisp/gdisp_images_animated/gfxconf.h index 461c965f..cd368e95 100644 --- a/demos/modules/gdisp/gdisp_images_animated/gfxconf.h +++ b/demos/modules/gdisp/gdisp_images_animated/gfxconf.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /** * This file has a different license to the rest of the GFX system. * You can copy, modify and distribute this file as you see fit. diff --git a/demos/modules/gdisp/gdisp_images_animated/main.c b/demos/modules/gdisp/gdisp_images_animated/main.c index cb0d5580..d5c3d712 100644 --- a/demos/modules/gdisp/gdisp_images_animated/main.c +++ b/demos/modules/gdisp/gdisp_images_animated/main.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ #include "ch.h" #include "hal.h" diff --git a/demos/modules/gdisp/gdisp_images_animated/testanim.h b/demos/modules/gdisp/gdisp_images_animated/testanim.h index a646a8d4..ce2ba8c7 100644 --- a/demos/modules/gdisp/gdisp_images_animated/testanim.h +++ b/demos/modules/gdisp/gdisp_images_animated/testanim.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /** * This file was generated from "testanim.gif" using... * diff --git a/demos/modules/gdisp/gdisp_text/gfxconf.h b/demos/modules/gdisp/gdisp_text/gfxconf.h index 22f27b18..007de8e4 100644 --- a/demos/modules/gdisp/gdisp_text/gfxconf.h +++ b/demos/modules/gdisp/gdisp_text/gfxconf.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gdisp/gdisp_text/main.c b/demos/modules/gdisp/gdisp_text/main.c index 049334c0..4062e07c 100644 --- a/demos/modules/gdisp/gdisp_text/main.c +++ b/demos/modules/gdisp/gdisp_text/main.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/ginput/touch_driver_test/gfxconf.h b/demos/modules/ginput/touch_driver_test/gfxconf.h index 2bac9c37..87787527 100644 --- a/demos/modules/ginput/touch_driver_test/gfxconf.h +++ b/demos/modules/ginput/touch_driver_test/gfxconf.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/ginput/touch_driver_test/main.c b/demos/modules/ginput/touch_driver_test/main.c index 77b3daa6..80c85273 100644 --- a/demos/modules/ginput/touch_driver_test/main.c +++ b/demos/modules/ginput/touch_driver_test/main.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/graph/gfxconf.h b/demos/modules/graph/gfxconf.h index 2632edc5..ee36fb93 100644 --- a/demos/modules/graph/gfxconf.h +++ b/demos/modules/graph/gfxconf.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/graph/main.c b/demos/modules/graph/main.c index 47d30608..79935083 100644 --- a/demos/modules/graph/main.c +++ b/demos/modules/graph/main.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gtimer/gfxconf.h b/demos/modules/gtimer/gfxconf.h index cef9232e..931357a5 100644 --- a/demos/modules/gtimer/gfxconf.h +++ b/demos/modules/gtimer/gfxconf.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gtimer/main.c b/demos/modules/gtimer/main.c index a0e6de4c..403491ea 100644 --- a/demos/modules/gtimer/main.c +++ b/demos/modules/gtimer/main.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/gwin/basic/gfxconf.h b/demos/modules/gwin/basic/gfxconf.h index 5f3b6fe1..e567e5a0 100644 --- a/demos/modules/gwin/basic/gfxconf.h +++ b/demos/modules/gwin/basic/gfxconf.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /** * This file has a different license to the rest of the GFX system. * You can copy, modify and distribute this file as you see fit. diff --git a/demos/modules/gwin/basic/main.c b/demos/modules/gwin/basic/main.c index bf5f613a..a0326fac 100644 --- a/demos/modules/gwin/basic/main.c +++ b/demos/modules/gwin/basic/main.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ #include "ch.h" #include "hal.h" diff --git a/demos/modules/gwin/console/gfxconf.h b/demos/modules/gwin/console/gfxconf.h index bccd4b77..178beb86 100644 --- a/demos/modules/gwin/console/gfxconf.h +++ b/demos/modules/gwin/console/gfxconf.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /** * This file has a different license to the rest of the GFX system. * You can copy, modify and distribute this file as you see fit. diff --git a/demos/modules/gwin/console/main.c b/demos/modules/gwin/console/main.c index ee6ef099..90ebf86f 100644 --- a/demos/modules/gwin/console/main.c +++ b/demos/modules/gwin/console/main.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ #include "ch.h" #include "hal.h" diff --git a/demos/modules/gwin/slider/gfxconf.h b/demos/modules/gwin/slider/gfxconf.h index 7e763b41..947fc4c8 100644 --- a/demos/modules/gwin/slider/gfxconf.h +++ b/demos/modules/gwin/slider/gfxconf.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /** * This file has a different license to the rest of the GFX system. * You can copy, modify and distribute this file as you see fit. diff --git a/demos/modules/gwin/slider/main.c b/demos/modules/gwin/slider/main.c index b87d6bb8..19a56f6a 100644 --- a/demos/modules/gwin/slider/main.c +++ b/demos/modules/gwin/slider/main.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ #include "ch.h" #include "hal.h" diff --git a/demos/modules/tdisp/gfxconf.h b/demos/modules/tdisp/gfxconf.h index 6eadfd9d..cdc0dfdd 100644 --- a/demos/modules/tdisp/gfxconf.h +++ b/demos/modules/tdisp/gfxconf.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/demos/modules/tdisp/main.c b/demos/modules/tdisp/main.c index 35ed506f..41a6aa34 100644 --- a/demos/modules/tdisp/main.c +++ b/demos/modules/tdisp/main.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu * All rights reserved. diff --git a/drivers/gadc/AT91SAM7/gadc_lld.c b/drivers/gadc/AT91SAM7/gadc_lld.c index fc13661f..68866132 100644 --- a/drivers/gadc/AT91SAM7/gadc_lld.c +++ b/drivers/gadc/AT91SAM7/gadc_lld.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h b/drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h index 58ef2e15..6f23db17 100644 --- a/drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h +++ b/drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h diff --git a/drivers/gadc/AT91SAM7/gadc_lld_config.h b/drivers/gadc/AT91SAM7/gadc_lld_config.h index 6f98d921..8ba71f20 100644 --- a/drivers/gadc/AT91SAM7/gadc_lld_config.h +++ b/drivers/gadc/AT91SAM7/gadc_lld_config.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gadc/AT91SAM7/gadc_lld_config.h diff --git a/drivers/gaudin/gadc/gaudin_lld.c b/drivers/gaudin/gadc/gaudin_lld.c index ba290742..39673ab3 100644 --- a/drivers/gaudin/gadc/gaudin_lld.c +++ b/drivers/gaudin/gadc/gaudin_lld.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gaudin/gadc/gaudin_lld_board_olimexsam7ex256.h b/drivers/gaudin/gadc/gaudin_lld_board_olimexsam7ex256.h index 9ad4a0ad..283a2914 100644 --- a/drivers/gaudin/gadc/gaudin_lld_board_olimexsam7ex256.h +++ b/drivers/gaudin/gadc/gaudin_lld_board_olimexsam7ex256.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gaudin/gadc/gaudin_lld_board_olimexsam7ex256.h diff --git a/drivers/gaudin/gadc/gaudin_lld_config.h b/drivers/gaudin/gadc/gaudin_lld_config.h index 7412e8a0..402e4180 100644 --- a/drivers/gaudin/gadc/gaudin_lld_config.h +++ b/drivers/gaudin/gadc/gaudin_lld_config.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gaudin/gadc/gaudin_lld_config.h diff --git a/drivers/gdisp/ILI9320/gdisp_lld.c b/drivers/gdisp/ILI9320/gdisp_lld.c index 07e8e57d..857d64e2 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld.c +++ b/drivers/gdisp/ILI9320/gdisp_lld.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/ILI9320/gdisp_lld.c diff --git a/drivers/gdisp/ILI9320/gdisp_lld_board_example.h b/drivers/gdisp/ILI9320/gdisp_lld_board_example.h index ecabcdea..2f762c42 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld_board_example.h +++ b/drivers/gdisp/ILI9320/gdisp_lld_board_example.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/ILI9320/gdisp_lld_board_example.h diff --git a/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h b/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h index cdc68da3..f208f917 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h +++ b/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2013 Dmytro Milinevskyy diff --git a/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h b/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h index 86bca28f..7e15a2e0 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h +++ b/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h diff --git a/drivers/gdisp/ILI9320/gdisp_lld_config.h b/drivers/gdisp/ILI9320/gdisp_lld_config.h index 091b8a6a..a2a0a66b 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld_config.h +++ b/drivers/gdisp/ILI9320/gdisp_lld_config.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/ILI9325/gdisp_lld.c b/drivers/gdisp/ILI9325/gdisp_lld.c index 95817223..d101d1dd 100644 --- a/drivers/gdisp/ILI9325/gdisp_lld.c +++ b/drivers/gdisp/ILI9325/gdisp_lld.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/ILI9325/gdisp_lld.c diff --git a/drivers/gdisp/ILI9325/gdisp_lld_board_example.h b/drivers/gdisp/ILI9325/gdisp_lld_board_example.h index 7fc43d82..16de9924 100644 --- a/drivers/gdisp/ILI9325/gdisp_lld_board_example.h +++ b/drivers/gdisp/ILI9325/gdisp_lld_board_example.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/ILI9325/gdisp_lld_board_example.h diff --git a/drivers/gdisp/ILI9325/gdisp_lld_board_hy_stm32_100p.h b/drivers/gdisp/ILI9325/gdisp_lld_board_hy_stm32_100p.h index 19410751..1915f1cc 100644 --- a/drivers/gdisp/ILI9325/gdisp_lld_board_hy_stm32_100p.h +++ b/drivers/gdisp/ILI9325/gdisp_lld_board_hy_stm32_100p.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /* driver quickly hacked together from a chinese sourcecode that came diff --git a/drivers/gdisp/ILI9325/gdisp_lld_config.h b/drivers/gdisp/ILI9325/gdisp_lld_config.h index 0c6af677..03ef5f05 100644 --- a/drivers/gdisp/ILI9325/gdisp_lld_config.h +++ b/drivers/gdisp/ILI9325/gdisp_lld_config.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/ILI9481/gdisp_lld.c b/drivers/gdisp/ILI9481/gdisp_lld.c index edc13722..2ea8c6e7 100644 --- a/drivers/gdisp/ILI9481/gdisp_lld.c +++ b/drivers/gdisp/ILI9481/gdisp_lld.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/ILI9481/gdisp_lld.c diff --git a/drivers/gdisp/ILI9481/gdisp_lld_board_example.h b/drivers/gdisp/ILI9481/gdisp_lld_board_example.h index 3b39bc0b..de459641 100644 --- a/drivers/gdisp/ILI9481/gdisp_lld_board_example.h +++ b/drivers/gdisp/ILI9481/gdisp_lld_board_example.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/ILI9481/gdisp_lld_board_example.h diff --git a/drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h b/drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h index cea70f72..3fc3f632 100644 --- a/drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h +++ b/drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h diff --git a/drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h b/drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h index 0d380a06..ce7af96f 100644 --- a/drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h +++ b/drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h diff --git a/drivers/gdisp/ILI9481/gdisp_lld_config.h b/drivers/gdisp/ILI9481/gdisp_lld_config.h index cc6312ba..c1fc7a2d 100644 --- a/drivers/gdisp/ILI9481/gdisp_lld_config.h +++ b/drivers/gdisp/ILI9481/gdisp_lld_config.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/ILI9481/gdisp_lld_config.h diff --git a/drivers/gdisp/Nokia6610GE12/GE12.h b/drivers/gdisp/Nokia6610GE12/GE12.h index 5c1e7e82..388e1147 100644 --- a/drivers/gdisp/Nokia6610GE12/GE12.h +++ b/drivers/gdisp/Nokia6610GE12/GE12.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/Nokia6610GE12/gdisp_lld.c b/drivers/gdisp/Nokia6610GE12/gdisp_lld.c index 258504f6..0f46e267 100644 --- a/drivers/gdisp/Nokia6610GE12/gdisp_lld.c +++ b/drivers/gdisp/Nokia6610GE12/gdisp_lld.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/Nokia6610GE12/gdisp_lld.c diff --git a/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_example.h b/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_example.h index e4a1fa80..53a7fad7 100644 --- a/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_example.h +++ b/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_example.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_olimexsam7ex256.h b/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_olimexsam7ex256.h index 38a98a01..3fede6d7 100644 --- a/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_olimexsam7ex256.h +++ b/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_olimexsam7ex256.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/Nokia6610GE12/gdisp_lld_config.h b/drivers/gdisp/Nokia6610GE12/gdisp_lld_config.h index dc68affb..cca96c0e 100644 --- a/drivers/gdisp/Nokia6610GE12/gdisp_lld_config.h +++ b/drivers/gdisp/Nokia6610GE12/gdisp_lld_config.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/Nokia6610GE8/GE8.h b/drivers/gdisp/Nokia6610GE8/GE8.h index b5ef7df4..18c2ffcb 100644 --- a/drivers/gdisp/Nokia6610GE8/GE8.h +++ b/drivers/gdisp/Nokia6610GE8/GE8.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/Nokia6610GE8/gdisp_lld.c b/drivers/gdisp/Nokia6610GE8/gdisp_lld.c index d803b4da..65431c9b 100644 --- a/drivers/gdisp/Nokia6610GE8/gdisp_lld.c +++ b/drivers/gdisp/Nokia6610GE8/gdisp_lld.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/Nokia6610GE8/gdisp_lld.c diff --git a/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_example.h b/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_example.h index fa3475f7..2dc589b7 100644 --- a/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_example.h +++ b/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_example.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_olimexsam7ex256.h b/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_olimexsam7ex256.h index 217ad62d..b3b88b7c 100644 --- a/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_olimexsam7ex256.h +++ b/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_olimexsam7ex256.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/Nokia6610GE8/gdisp_lld_board_olimexsam7ex256.h diff --git a/drivers/gdisp/Nokia6610GE8/gdisp_lld_config.h b/drivers/gdisp/Nokia6610GE8/gdisp_lld_config.h index 4cb7b19e..9893b8a4 100644 --- a/drivers/gdisp/Nokia6610GE8/gdisp_lld_config.h +++ b/drivers/gdisp/Nokia6610GE8/gdisp_lld_config.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/S6D1121/gdisp_lld.c b/drivers/gdisp/S6D1121/gdisp_lld.c index c7bdced6..671b8f86 100644 --- a/drivers/gdisp/S6D1121/gdisp_lld.c +++ b/drivers/gdisp/S6D1121/gdisp_lld.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/S6D1121/gdisp_lld.c diff --git a/drivers/gdisp/S6D1121/gdisp_lld_board_example.h b/drivers/gdisp/S6D1121/gdisp_lld_board_example.h index e6d55f34..782c5918 100644 --- a/drivers/gdisp/S6D1121/gdisp_lld_board_example.h +++ b/drivers/gdisp/S6D1121/gdisp_lld_board_example.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/S6D1121/gdisp_lld_board_olimex_e407.h b/drivers/gdisp/S6D1121/gdisp_lld_board_olimex_e407.h index 79cf8ea7..ee4759b2 100644 --- a/drivers/gdisp/S6D1121/gdisp_lld_board_olimex_e407.h +++ b/drivers/gdisp/S6D1121/gdisp_lld_board_olimex_e407.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/S6D1121/gdisp_lld_config.h b/drivers/gdisp/S6D1121/gdisp_lld_config.h index 4eca9ad2..0ae68848 100644 --- a/drivers/gdisp/S6D1121/gdisp_lld_config.h +++ b/drivers/gdisp/S6D1121/gdisp_lld_config.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD1289/gdisp_lld.c b/drivers/gdisp/SSD1289/gdisp_lld.c index a3aa8b3d..f6531f2c 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld.c +++ b/drivers/gdisp/SSD1289/gdisp_lld.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/SSD1289/gdisp_lld.c diff --git a/drivers/gdisp/SSD1289/gdisp_lld_board_example.h b/drivers/gdisp/SSD1289/gdisp_lld_board_example.h index d1e92406..7e8389d7 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld_board_example.h +++ b/drivers/gdisp/SSD1289/gdisp_lld_board_example.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD1289/gdisp_lld_board_example_fsmc.h b/drivers/gdisp/SSD1289/gdisp_lld_board_example_fsmc.h index d041cf39..b0451747 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld_board_example_fsmc.h +++ b/drivers/gdisp/SSD1289/gdisp_lld_board_example_fsmc.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h b/drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h index bc87721d..19f1108c 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h +++ b/drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD1289/gdisp_lld_config.h b/drivers/gdisp/SSD1289/gdisp_lld_config.h index de22de71..8b26e489 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld_config.h +++ b/drivers/gdisp/SSD1289/gdisp_lld_config.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD1963/gdisp_lld.c b/drivers/gdisp/SSD1963/gdisp_lld.c index 02c73db9..c407a27e 100644 --- a/drivers/gdisp/SSD1963/gdisp_lld.c +++ b/drivers/gdisp/SSD1963/gdisp_lld.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/SSD1963/gdisp_lld.c diff --git a/drivers/gdisp/SSD1963/gdisp_lld_board_example_fsmc.h b/drivers/gdisp/SSD1963/gdisp_lld_board_example_fsmc.h index 059c5332..8de399d9 100644 --- a/drivers/gdisp/SSD1963/gdisp_lld_board_example_fsmc.h +++ b/drivers/gdisp/SSD1963/gdisp_lld_board_example_fsmc.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD1963/gdisp_lld_board_example_gpio.h b/drivers/gdisp/SSD1963/gdisp_lld_board_example_gpio.h index c6080933..ad9fa8e4 100644 --- a/drivers/gdisp/SSD1963/gdisp_lld_board_example_gpio.h +++ b/drivers/gdisp/SSD1963/gdisp_lld_board_example_gpio.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD1963/gdisp_lld_config.h b/drivers/gdisp/SSD1963/gdisp_lld_config.h index bcc6c4ef..7fa6a97c 100644 --- a/drivers/gdisp/SSD1963/gdisp_lld_config.h +++ b/drivers/gdisp/SSD1963/gdisp_lld_config.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD1963/gdisp_lld_panel_example.h b/drivers/gdisp/SSD1963/gdisp_lld_panel_example.h index 9d2a058c..109d7332 100644 --- a/drivers/gdisp/SSD1963/gdisp_lld_panel_example.h +++ b/drivers/gdisp/SSD1963/gdisp_lld_panel_example.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD1963/ssd1963.h b/drivers/gdisp/SSD1963/ssd1963.h index 8c30f964..a56c142b 100644 --- a/drivers/gdisp/SSD1963/ssd1963.h +++ b/drivers/gdisp/SSD1963/ssd1963.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/gdisp/SSD2119/gdisp_lld.c b/drivers/gdisp/SSD2119/gdisp_lld.c index b4b41998..a7ad7b1a 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld.c +++ b/drivers/gdisp/SSD2119/gdisp_lld.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/SSD2119/gdisp_lld.c diff --git a/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h b/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h index fdc49ccd..bf7b3890 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h +++ b/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h diff --git a/drivers/gdisp/SSD2119/gdisp_lld_config.h b/drivers/gdisp/SSD2119/gdisp_lld_config.h index d4f8cbd8..b5af495c 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld_config.h +++ b/drivers/gdisp/SSD2119/gdisp_lld_config.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/SSD2119/gdisp_lld_config.h diff --git a/drivers/gdisp/SSD2119/ssd2119.h b/drivers/gdisp/SSD2119/ssd2119.h index f892a6cc..c3ffa00f 100644 --- a/drivers/gdisp/SSD2119/ssd2119.h +++ b/drivers/gdisp/SSD2119/ssd2119.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/SSD2119/ssd2119.h diff --git a/drivers/gdisp/TestStub/gdisp_lld.c b/drivers/gdisp/TestStub/gdisp_lld.c index f87b6617..19ce5b3c 100644 --- a/drivers/gdisp/TestStub/gdisp_lld.c +++ b/drivers/gdisp/TestStub/gdisp_lld.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/gdisp/TestStub/gdisp_lld.c diff --git a/drivers/gdisp/TestStub/gdisp_lld_config.h b/drivers/gdisp/TestStub/gdisp_lld_config.h index a4f6ecac..c0fa6a65 100644 --- a/drivers/gdisp/TestStub/gdisp_lld_config.h +++ b/drivers/gdisp/TestStub/gdisp_lld_config.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/dial/GADC/ginput_lld_dial.c b/drivers/ginput/dial/GADC/ginput_lld_dial.c index 6bf3607b..ced71a27 100644 --- a/drivers/ginput/dial/GADC/ginput_lld_dial.c +++ b/drivers/ginput/dial/GADC/ginput_lld_dial.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/ginput/dial/GADC/ginput_lld_dial.c diff --git a/drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h b/drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h index 99eaaf23..13788188 100644 --- a/drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h +++ b/drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h diff --git a/drivers/ginput/dial/GADC/ginput_lld_dial_config.h b/drivers/ginput/dial/GADC/ginput_lld_dial_config.h index e8d07406..535b09a6 100644 --- a/drivers/ginput/dial/GADC/ginput_lld_dial_config.h +++ b/drivers/ginput/dial/GADC/ginput_lld_dial_config.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/ginput/dial/GADC/ginput_lld_dial_config.h diff --git a/drivers/ginput/toggle/Pal/ginput_lld_toggle.c b/drivers/ginput/toggle/Pal/ginput_lld_toggle.c index 2eca8ae8..04805d04 100644 --- a/drivers/ginput/toggle/Pal/ginput_lld_toggle.c +++ b/drivers/ginput/toggle/Pal/ginput_lld_toggle.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_example.h b/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_example.h index 803a9738..34d9cdaa 100644 --- a/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_example.h +++ b/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_example.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_olimexsam7ex256.h b/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_olimexsam7ex256.h index 2fcc1d19..0189e3f8 100644 --- a/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_olimexsam7ex256.h +++ b/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_olimexsam7ex256.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/ginput/toggle/Pal/ginput_lld_toggle_board_olimexsam7ex256.h diff --git a/drivers/ginput/toggle/Pal/ginput_lld_toggle_config.h b/drivers/ginput/toggle/Pal/ginput_lld_toggle_config.h index b03d705c..a0402777 100644 --- a/drivers/ginput/toggle/Pal/ginput_lld_toggle_config.h +++ b/drivers/ginput/toggle/Pal/ginput_lld_toggle_config.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c b/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c index 99374503..9371760a 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_example.h b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_example.h index 503ba112..2e3f3245 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_example.h +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_example.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_firebull_stm32f103.h b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_firebull_stm32f103.h index 93f94c2b..7758166b 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_firebull_stm32f103.h +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_firebull_stm32f103.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_olimex_stm32_e407.h b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_olimex_stm32_e407.h index 530c21bd..21ba5294 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_olimex_stm32_e407.h +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_olimex_stm32_e407.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_config.h b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_config.h index 6701d512..6b8579e3 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_config.h +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_config.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/MCU/ginput_lld_mouse.c b/drivers/ginput/touch/MCU/ginput_lld_mouse.c index 22ac682e..1b7e1988 100644 --- a/drivers/ginput/touch/MCU/ginput_lld_mouse.c +++ b/drivers/ginput/touch/MCU/ginput_lld_mouse.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/MCU/ginput_lld_mouse_board_example.h b/drivers/ginput/touch/MCU/ginput_lld_mouse_board_example.h index bfcc03a5..1c6aa970 100644 --- a/drivers/ginput/touch/MCU/ginput_lld_mouse_board_example.h +++ b/drivers/ginput/touch/MCU/ginput_lld_mouse_board_example.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_pic32mx_lcd.h b/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_pic32mx_lcd.h index e63db6fb..4f55124d 100644 --- a/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_pic32mx_lcd.h +++ b/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_pic32mx_lcd.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_stm32_lcd.h b/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_stm32_lcd.h index 7f192103..0309b655 100644 --- a/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_stm32_lcd.h +++ b/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_stm32_lcd.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/MCU/ginput_lld_mouse_config.h b/drivers/ginput/touch/MCU/ginput_lld_mouse_config.h index b8d1e619..4515517f 100644 --- a/drivers/ginput/touch/MCU/ginput_lld_mouse_config.h +++ b/drivers/ginput/touch/MCU/ginput_lld_mouse_config.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c b/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c index 650dd417..696795cc 100644 --- a/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c +++ b/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/ginput/touch/STMPE811/ginput_lld_mouse.c diff --git a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_embest_dmstf4bb.h b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_embest_dmstf4bb.h index 5fbf965d..a0d5a0de 100644 --- a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_embest_dmstf4bb.h +++ b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_embest_dmstf4bb.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_example.h b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_example.h index dc323038..453924b0 100644 --- a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_example.h +++ b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_example.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_config.h b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_config.h index 2ffce3b0..871a6c2e 100644 --- a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_config.h +++ b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_config.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/ginput/touch/STMPE811/stmpe811.h b/drivers/ginput/touch/STMPE811/stmpe811.h index e1adc999..36101cd4 100644 --- a/drivers/ginput/touch/STMPE811/stmpe811.h +++ b/drivers/ginput/touch/STMPE811/stmpe811.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012 Joel Bodenmann aka Tectu diff --git a/drivers/multiple/Win32/gdisp_lld.c b/drivers/multiple/Win32/gdisp_lld.c index a6a3620f..7311a5af 100644 --- a/drivers/multiple/Win32/gdisp_lld.c +++ b/drivers/multiple/Win32/gdisp_lld.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/multiple/Win32/gdisp_lld.c diff --git a/drivers/multiple/Win32/gdisp_lld_config.h b/drivers/multiple/Win32/gdisp_lld_config.h index 4e10cb8f..cef06744 100644 --- a/drivers/multiple/Win32/gdisp_lld_config.h +++ b/drivers/multiple/Win32/gdisp_lld_config.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/multiple/Win32/ginput_lld_mouse_config.h b/drivers/multiple/Win32/ginput_lld_mouse_config.h index dbb734ed..caef69fe 100644 --- a/drivers/multiple/Win32/ginput_lld_mouse_config.h +++ b/drivers/multiple/Win32/ginput_lld_mouse_config.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/multiple/Win32/ginput_lld_toggle_config.h b/drivers/multiple/Win32/ginput_lld_toggle_config.h index 0b179288..ac348c73 100644 --- a/drivers/multiple/Win32/ginput_lld_toggle_config.h +++ b/drivers/multiple/Win32/ginput_lld_toggle_config.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/tdisp/HD44780/tdisp_lld.c b/drivers/tdisp/HD44780/tdisp_lld.c index 5e18f34c..b68d1f55 100644 --- a/drivers/tdisp/HD44780/tdisp_lld.c +++ b/drivers/tdisp/HD44780/tdisp_lld.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/tdisp/HD44780/tdisp_lld.c diff --git a/drivers/tdisp/HD44780/tdisp_lld_board_example.h b/drivers/tdisp/HD44780/tdisp_lld_board_example.h index 82d66d7a..fbf3f172 100644 --- a/drivers/tdisp/HD44780/tdisp_lld_board_example.h +++ b/drivers/tdisp/HD44780/tdisp_lld_board_example.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file drivers/tdisp/HD44780/tdisp_lld_board_example.h diff --git a/drivers/tdisp/HD44780/tdisp_lld_board_olimex_e407.h b/drivers/tdisp/HD44780/tdisp_lld_board_olimex_e407.h index d43512cb..e8b1752d 100644 --- a/drivers/tdisp/HD44780/tdisp_lld_board_olimex_e407.h +++ b/drivers/tdisp/HD44780/tdisp_lld_board_olimex_e407.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/drivers/tdisp/HD44780/tdisp_lld_board_st_stm32f4_discovery.h b/drivers/tdisp/HD44780/tdisp_lld_board_st_stm32f4_discovery.h index 1ba28f02..1fe222dc 100644 --- a/drivers/tdisp/HD44780/tdisp_lld_board_st_stm32f4_discovery.h +++ b/drivers/tdisp/HD44780/tdisp_lld_board_st_stm32f4_discovery.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/gfxconf.example.h b/gfxconf.example.h index 6440c187..ce4d4ca6 100644 --- a/gfxconf.example.h +++ b/gfxconf.example.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /** * This file has a different license to the rest of the GFX system. * You can copy, modify and distribute this file as you see fit. diff --git a/include/gadc/gadc.h b/include/gadc/gadc.h index 4ee0eed2..56be7cf5 100644 --- a/include/gadc/gadc.h +++ b/include/gadc/gadc.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gadc/lld/gadc_lld.h b/include/gadc/lld/gadc_lld.h index befb5af6..dc111990 100644 --- a/include/gadc/lld/gadc_lld.h +++ b/include/gadc/lld/gadc_lld.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gadc/options.h b/include/gadc/options.h index 61e87b82..87708efe 100644 --- a/include/gadc/options.h +++ b/include/gadc/options.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file include/gadc/options.h diff --git a/include/gaudin/gaudin.h b/include/gaudin/gaudin.h index 9161a997..3cf29d09 100644 --- a/include/gaudin/gaudin.h +++ b/include/gaudin/gaudin.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gaudin/lld/gaudin_lld.h b/include/gaudin/lld/gaudin_lld.h index f03a5506..6512c61c 100644 --- a/include/gaudin/lld/gaudin_lld.h +++ b/include/gaudin/lld/gaudin_lld.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gaudin/options.h b/include/gaudin/options.h index 381d154b..eff022a3 100644 --- a/include/gaudin/options.h +++ b/include/gaudin/options.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gaudout/gaudout.h b/include/gaudout/gaudout.h index 86210712..35bdebeb 100644 --- a/include/gaudout/gaudout.h +++ b/include/gaudout/gaudout.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gaudout/options.h b/include/gaudout/options.h index e8ac72a7..12ee975f 100644 --- a/include/gaudout/options.h +++ b/include/gaudout/options.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gdisp/fonts.h b/include/gdisp/fonts.h index fa4ee178..888f4489 100644 --- a/include/gdisp/fonts.h +++ b/include/gdisp/fonts.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gdisp/gdisp.h b/include/gdisp/gdisp.h index 7a1522e9..85f9b4ea 100644 --- a/include/gdisp/gdisp.h +++ b/include/gdisp/gdisp.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file include/gdisp/gdisp.h diff --git a/include/gdisp/image.h b/include/gdisp/image.h index c4b29946..99e51118 100644 --- a/include/gdisp/image.h +++ b/include/gdisp/image.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file include/gdisp/image.h diff --git a/include/gdisp/lld/emulation.c b/include/gdisp/lld/emulation.c index 03e00ccb..572b2dcb 100644 --- a/include/gdisp/lld/emulation.c +++ b/include/gdisp/lld/emulation.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file include/gdisp/lld/emulation.c diff --git a/include/gdisp/lld/gdisp_lld.h b/include/gdisp/lld/gdisp_lld.h index 7b766db6..f42ad2af 100644 --- a/include/gdisp/lld/gdisp_lld.h +++ b/include/gdisp/lld/gdisp_lld.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file include/gdisp/lld/gdisp_lld.h diff --git a/include/gdisp/lld/gdisp_lld_msgs.h b/include/gdisp/lld/gdisp_lld_msgs.h index a318cba3..5783613d 100644 --- a/include/gdisp/lld/gdisp_lld_msgs.h +++ b/include/gdisp/lld/gdisp_lld_msgs.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file include/gdisp/lld/gdisp_lld_msgs.h diff --git a/include/gdisp/options.h b/include/gdisp/options.h index cc11cefa..5cdfbf59 100644 --- a/include/gdisp/options.h +++ b/include/gdisp/options.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file include/gdisp/options.h diff --git a/include/gevent/gevent.h b/include/gevent/gevent.h index c53dfd0d..57fb60b2 100644 --- a/include/gevent/gevent.h +++ b/include/gevent/gevent.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gevent/options.h b/include/gevent/options.h index 89c62194..78ec7610 100644 --- a/include/gevent/options.h +++ b/include/gevent/options.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gfx.h b/include/gfx.h index dc5f4268..4d212b2d 100644 --- a/include/gfx.h +++ b/include/gfx.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file include/gfx.h diff --git a/include/gfx_rules.h b/include/gfx_rules.h index c337f472..1c32146c 100644 --- a/include/gfx_rules.h +++ b/include/gfx_rules.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file include/gfx_rules.h diff --git a/include/ginput/dial.h b/include/ginput/dial.h index 4d61d3d1..358e36cf 100644 --- a/include/ginput/dial.h +++ b/include/ginput/dial.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/ginput/ginput.h b/include/ginput/ginput.h index 5ba5e580..0fabd437 100644 --- a/include/ginput/ginput.h +++ b/include/ginput/ginput.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/ginput/keyboard.h b/include/ginput/keyboard.h index fe58bf61..1529d05d 100644 --- a/include/ginput/keyboard.h +++ b/include/ginput/keyboard.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/ginput/lld/dial.h b/include/ginput/lld/dial.h index 66012068..3efae04f 100644 --- a/include/ginput/lld/dial.h +++ b/include/ginput/lld/dial.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/ginput/lld/mouse.h b/include/ginput/lld/mouse.h index 9bfb8116..046a06b1 100644 --- a/include/ginput/lld/mouse.h +++ b/include/ginput/lld/mouse.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/ginput/lld/toggle.h b/include/ginput/lld/toggle.h index 05ad1e2d..1ccab366 100644 --- a/include/ginput/lld/toggle.h +++ b/include/ginput/lld/toggle.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/ginput/mouse.h b/include/ginput/mouse.h index 3b7ed988..7b798454 100644 --- a/include/ginput/mouse.h +++ b/include/ginput/mouse.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/ginput/options.h b/include/ginput/options.h index 0d480aa3..35797098 100644 --- a/include/ginput/options.h +++ b/include/ginput/options.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/ginput/toggle.h b/include/ginput/toggle.h index 7019ad16..888e397a 100644 --- a/include/ginput/toggle.h +++ b/include/ginput/toggle.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gmisc/gmisc.h b/include/gmisc/gmisc.h index d775241e..5dab5e85 100644 --- a/include/gmisc/gmisc.h +++ b/include/gmisc/gmisc.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gmisc/options.h b/include/gmisc/options.h index 0cc11677..996f12af 100644 --- a/include/gmisc/options.h +++ b/include/gmisc/options.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gtimer/gtimer.h b/include/gtimer/gtimer.h index 6e6461e1..e938c33a 100644 --- a/include/gtimer/gtimer.h +++ b/include/gtimer/gtimer.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gtimer/options.h b/include/gtimer/options.h index 0f142289..7d7d55dc 100644 --- a/include/gtimer/options.h +++ b/include/gtimer/options.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gwin/button.h b/include/gwin/button.h index 0eef496a..3d54afbb 100644 --- a/include/gwin/button.h +++ b/include/gwin/button.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gwin/console.h b/include/gwin/console.h index 8be29acf..c6d89db6 100644 --- a/include/gwin/console.h +++ b/include/gwin/console.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gwin/graph.h b/include/gwin/graph.h index 4fe28223..223ba27f 100644 --- a/include/gwin/graph.h +++ b/include/gwin/graph.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file include/gwin/graph.h diff --git a/include/gwin/gwin.h b/include/gwin/gwin.h index cccf0cff..3d994d0a 100644 --- a/include/gwin/gwin.h +++ b/include/gwin/gwin.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gwin/internal.h b/include/gwin/internal.h index 8ed461bb..ada8f611 100644 --- a/include/gwin/internal.h +++ b/include/gwin/internal.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/gwin/options.h b/include/gwin/options.h index 35daa424..e8d527e0 100644 --- a/include/gwin/options.h +++ b/include/gwin/options.h @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file include/gwin/options.h diff --git a/include/gwin/slider.h b/include/gwin/slider.h index 9be075c5..1943729f 100644 --- a/include/gwin/slider.h +++ b/include/gwin/slider.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/tdisp/lld/tdisp_lld.h b/include/tdisp/lld/tdisp_lld.h index 7fbf92d8..dbc57b11 100644 --- a/include/tdisp/lld/tdisp_lld.h +++ b/include/tdisp/lld/tdisp_lld.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/tdisp/options.h b/include/tdisp/options.h index 657ed9db..41292037 100644 --- a/include/tdisp/options.h +++ b/include/tdisp/options.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/include/tdisp/tdisp.h b/include/tdisp/tdisp.h index 215eb45f..efcd285c 100644 --- a/include/tdisp/tdisp.h +++ b/include/tdisp/tdisp.h @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/gadc/gadc.c b/src/gadc/gadc.c index 7d53d0f6..40b901ae 100644 --- a/src/gadc/gadc.c +++ b/src/gadc/gadc.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file src/gadc/gadc.c diff --git a/src/gaudin/gaudin.c b/src/gaudin/gaudin.c index 1a3a3434..2fbe7a47 100644 --- a/src/gaudin/gaudin.c +++ b/src/gaudin/gaudin.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file src/gaudin/gaudin.c diff --git a/src/gaudout/gaudout.c b/src/gaudout/gaudout.c index ea3857ff..5c2e0657 100644 --- a/src/gaudout/gaudout.c +++ b/src/gaudout/gaudout.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/gdisp/fonts.c b/src/gdisp/fonts.c index c450774e..a7c6d39a 100644 --- a/src/gdisp/fonts.c +++ b/src/gdisp/fonts.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file src/gdisp/fonts.c diff --git a/src/gdisp/gdisp.c b/src/gdisp/gdisp.c index 2abd3e2e..d548eae5 100644 --- a/src/gdisp/gdisp.c +++ b/src/gdisp/gdisp.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file src/gdisp/gdisp.c diff --git a/src/gdisp/image.c b/src/gdisp/image.c index c5977861..061db5fe 100644 --- a/src/gdisp/image.c +++ b/src/gdisp/image.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file src/gdisp/image.c diff --git a/src/gdisp/image_bmp.c b/src/gdisp/image_bmp.c index 5f31103c..bab9b4e9 100644 --- a/src/gdisp/image_bmp.c +++ b/src/gdisp/image_bmp.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file src/gdisp/image_bmp.c diff --git a/src/gdisp/image_gif.c b/src/gdisp/image_gif.c index 8e359681..2672333f 100644 --- a/src/gdisp/image_gif.c +++ b/src/gdisp/image_gif.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file src/gdisp/image_gif.c diff --git a/src/gdisp/image_jpg.c b/src/gdisp/image_jpg.c index a2fdc259..e8b5eeeb 100644 --- a/src/gdisp/image_jpg.c +++ b/src/gdisp/image_jpg.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file src/gdisp/image_jpg.c diff --git a/src/gdisp/image_native.c b/src/gdisp/image_native.c index c4ed4eae..4a41e9c8 100644 --- a/src/gdisp/image_native.c +++ b/src/gdisp/image_native.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file src/gdisp/image_native.c diff --git a/src/gdisp/image_png.c b/src/gdisp/image_png.c index d4a8f3b6..3dca3645 100644 --- a/src/gdisp/image_png.c +++ b/src/gdisp/image_png.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file src/gdisp/image_png.c diff --git a/src/gevent/gevent.c b/src/gevent/gevent.c index 9fb17e73..b93f1ea8 100644 --- a/src/gevent/gevent.c +++ b/src/gevent/gevent.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file src/gevent/gevent.c diff --git a/src/ginput/dial.c b/src/ginput/dial.c index 835f705b..2f572cf8 100644 --- a/src/ginput/dial.c +++ b/src/ginput/dial.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ /** * @file src/ginput/dial.c diff --git a/src/ginput/keyboard.c b/src/ginput/keyboard.c index 76eaf17c..145b66f1 100644 --- a/src/ginput/keyboard.c +++ b/src/ginput/keyboard.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/ginput/mouse.c b/src/ginput/mouse.c index 7757638e..4ad32359 100644 --- a/src/ginput/mouse.c +++ b/src/ginput/mouse.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/ginput/toggle.c b/src/ginput/toggle.c index ce4197bd..5761279b 100644 --- a/src/ginput/toggle.c +++ b/src/ginput/toggle.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/gmisc/arrayops.c b/src/gmisc/arrayops.c index 80301f1e..8b2135a0 100644 --- a/src/gmisc/arrayops.c +++ b/src/gmisc/arrayops.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/gtimer/gtimer.c b/src/gtimer/gtimer.c index 01f8e6b1..e1f6bb8f 100644 --- a/src/gtimer/gtimer.c +++ b/src/gtimer/gtimer.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/gwin/button.c b/src/gwin/button.c index b61c7d5d..74fe3080 100644 --- a/src/gwin/button.c +++ b/src/gwin/button.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/gwin/console.c b/src/gwin/console.c index c26e878d..6720e6b3 100644 --- a/src/gwin/console.c +++ b/src/gwin/console.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/gwin/graph.c b/src/gwin/graph.c index c8747a5f..eff42eb1 100644 --- a/src/gwin/graph.c +++ b/src/gwin/graph.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c index bd685935..9f009fa1 100644 --- a/src/gwin/gwin.c +++ b/src/gwin/gwin.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/gwin/slider.c b/src/gwin/slider.c index 08a28ccd..f535b35c 100644 --- a/src/gwin/slider.c +++ b/src/gwin/slider.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/src/tdisp/tdisp.c b/src/tdisp/tdisp.c index 9037ec66..dab05cda 100644 --- a/src/tdisp/tdisp.c +++ b/src/tdisp/tdisp.c @@ -1,12 +1,3 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ - /* ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu diff --git a/tools/file2c/src/file2c.c b/tools/file2c/src/file2c.c index c3e57e1c..29b9da2f 100644 --- a/tools/file2c/src/file2c.c +++ b/tools/file2c/src/file2c.c @@ -1,11 +1,22 @@ -/* - * This source code form is a part of the ChibiOS/GFX project and stands - * under the terms of the GFX License v1.0. If a copy of the license - * was not distributed with this file, You can obtain one at: - * - * http://chibios-gfx.com/license.html - * - */ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu + + 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 . +*/ #include #include -- cgit v1.2.3 From 6c38d5b310137004ad78ac1717043a0148ed724e Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Fri, 3 May 2013 16:36:17 +0200 Subject: updated license headers --- drivers/gadc/AT91SAM7/gadc_lld.c | 27 +- .../gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h | 23 +- drivers/gadc/AT91SAM7/gadc_lld_config.h | 23 +- drivers/gaudin/gadc/gaudin_lld.c | 27 +- .../gaudin/gadc/gaudin_lld_board_olimexsam7ex256.h | 23 +- drivers/gaudin/gadc/gaudin_lld_config.h | 23 +- drivers/gdisp/ILI9320/gdisp_lld.c | 23 +- drivers/gdisp/ILI9320/gdisp_lld_board_example.h | 23 +- .../ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h | 23 +- .../ILI9320/gdisp_lld_board_olimex_stm32_lcd.h | 23 +- drivers/gdisp/ILI9320/gdisp_lld_config.h | 25 +- drivers/gdisp/ILI9325/gdisp_lld.c | 23 +- drivers/gdisp/ILI9325/gdisp_lld_board_example.h | 23 +- .../gdisp/ILI9325/gdisp_lld_board_hy_stm32_100p.h | 23 +- drivers/gdisp/ILI9325/gdisp_lld_config.h | 25 +- drivers/gdisp/ILI9481/gdisp_lld.c | 23 +- drivers/gdisp/ILI9481/gdisp_lld_board_example.h | 23 +- .../gdisp/ILI9481/gdisp_lld_board_example_fsmc.h | 23 +- .../ILI9481/gdisp_lld_board_firebullstm32f103.h | 23 +- drivers/gdisp/ILI9481/gdisp_lld_config.h | 23 +- drivers/gdisp/Nokia6610GE12/GE12.h | 25 +- drivers/gdisp/Nokia6610GE12/gdisp_lld.c | 23 +- .../gdisp/Nokia6610GE12/gdisp_lld_board_example.h | 25 +- .../gdisp_lld_board_olimexsam7ex256.h | 25 +- drivers/gdisp/Nokia6610GE12/gdisp_lld_config.h | 25 +- drivers/gdisp/Nokia6610GE8/GE8.h | 25 +- drivers/gdisp/Nokia6610GE8/gdisp_lld.c | 23 +- .../gdisp/Nokia6610GE8/gdisp_lld_board_example.h | 25 +- .../Nokia6610GE8/gdisp_lld_board_olimexsam7ex256.h | 23 +- drivers/gdisp/Nokia6610GE8/gdisp_lld_config.h | 25 +- drivers/gdisp/S6D1121/gdisp_lld.c | 23 +- drivers/gdisp/S6D1121/gdisp_lld_board_example.h | 25 +- .../gdisp/S6D1121/gdisp_lld_board_olimex_e407.h | 25 +- drivers/gdisp/S6D1121/gdisp_lld_config.h | 25 +- drivers/gdisp/SSD1289/gdisp_lld.c | 23 +- drivers/gdisp/SSD1289/gdisp_lld_board_example.h | 25 +- .../gdisp/SSD1289/gdisp_lld_board_example_fsmc.h | 25 +- .../SSD1289/gdisp_lld_board_firebullstm32f103.h | 25 +- drivers/gdisp/SSD1289/gdisp_lld_config.h | 25 +- drivers/gdisp/SSD1963/gdisp_lld.c | 23 +- .../gdisp/SSD1963/gdisp_lld_board_example_fsmc.h | 25 +- .../gdisp/SSD1963/gdisp_lld_board_example_gpio.h | 25 +- drivers/gdisp/SSD1963/gdisp_lld_config.h | 23 +- drivers/gdisp/SSD1963/gdisp_lld_panel_example.h | 23 +- drivers/gdisp/SSD1963/ssd1963.h | 23 +- drivers/gdisp/SSD2119/gdisp_lld.c | 23 +- .../SSD2119/gdisp_lld_board_embest_dmstf4bb.h | 23 +- drivers/gdisp/SSD2119/gdisp_lld_config.h | 23 +- drivers/gdisp/SSD2119/ssd2119.h | 23 +- drivers/gdisp/TestStub/gdisp_lld.c | 23 +- drivers/gdisp/TestStub/gdisp_lld_config.h | 25 +- drivers/ginput/dial/GADC/ginput_lld_dial.c | 23 +- .../GADC/ginput_lld_dial_board_olimexsam7ex256.h | 23 +- drivers/ginput/dial/GADC/ginput_lld_dial_config.h | 23 +- drivers/ginput/toggle/Pal/ginput_lld_toggle.c | 25 +- .../toggle/Pal/ginput_lld_toggle_board_example.h | 25 +- .../Pal/ginput_lld_toggle_board_olimexsam7ex256.h | 23 +- .../ginput/toggle/Pal/ginput_lld_toggle_config.h | 25 +- drivers/ginput/touch/ADS7843/ginput_lld_mouse.c | 25 +- .../touch/ADS7843/ginput_lld_mouse_board_example.h | 25 +- .../ginput_lld_mouse_board_firebull_stm32f103.h | 25 +- .../ginput_lld_mouse_board_olimex_stm32_e407.h | 25 +- .../ginput/touch/ADS7843/ginput_lld_mouse_config.h | 34 +- drivers/ginput/touch/MCU/ginput_lld_mouse.c | 25 +- .../touch/MCU/ginput_lld_mouse_board_example.h | 25 +- .../ginput_lld_mouse_board_olimex_pic32mx_lcd.h | 25 +- .../MCU/ginput_lld_mouse_board_olimex_stm32_lcd.h | 25 +- drivers/ginput/touch/MCU/ginput_lld_mouse_config.h | 34 +- drivers/ginput/touch/STMPE811/ginput_lld_mouse.c | 23 +- .../ginput_lld_mouse_board_embest_dmstf4bb.h | 25 +- .../STMPE811/ginput_lld_mouse_board_example.h | 25 +- .../touch/STMPE811/ginput_lld_mouse_config.h | 34 +- drivers/ginput/touch/STMPE811/stmpe811.h | 23 +- drivers/multiple/Win32/gdisp_lld.c | 23 +- drivers/multiple/Win32/gdisp_lld_config.h | 25 +- drivers/multiple/Win32/ginput_lld_mouse_config.h | 34 +- drivers/multiple/Win32/ginput_lld_toggle_config.h | 25 +- drivers/tdisp/HD44780/tdisp_lld.c | 23 +- drivers/tdisp/HD44780/tdisp_lld_board_example.h | 23 +- .../tdisp/HD44780/tdisp_lld_board_olimex_e407.h | 25 +- .../HD44780/tdisp_lld_board_st_stm32f4_discovery.h | 25 +- include/gadc/gadc.h | 47 +- include/gadc/lld/gadc_lld.h | 27 +- include/gadc/options.h | 23 +- include/gaudin/gaudin.h | 27 +- include/gaudin/lld/gaudin_lld.h | 27 +- include/gaudin/options.h | 25 +- include/gaudout/gaudout.h | 91 ++-- include/gaudout/options.h | 25 +- include/gdisp/fonts.h | 25 +- include/gdisp/gdisp.h | 23 +- include/gdisp/image.h | 23 +- include/gdisp/lld/emulation.c | 23 +- include/gdisp/lld/gdisp_lld.h | 23 +- include/gdisp/lld/gdisp_lld_msgs.h | 23 +- include/gdisp/options.h | 23 +- include/gevent/gevent.h | 474 ++++++++++----------- include/gevent/options.h | 123 +++--- include/gfx.h | 23 +- include/gfx_rules.h | 23 +- include/ginput/dial.h | 34 +- include/ginput/ginput.h | 38 +- include/ginput/keyboard.h | 33 +- include/ginput/lld/dial.h | 27 +- include/ginput/lld/mouse.h | 27 +- include/ginput/lld/toggle.h | 33 +- include/ginput/mouse.h | 40 +- include/ginput/options.h | 25 +- include/ginput/toggle.h | 40 +- include/gmisc/gmisc.h | 27 +- include/gmisc/options.h | 25 +- include/gtimer/gtimer.h | 44 +- include/gtimer/options.h | 25 +- include/gwin/button.h | 34 +- include/gwin/console.h | 40 +- include/gwin/graph.h | 23 +- include/gwin/gwin.h | 36 +- include/gwin/internal.h | 32 +- include/gwin/options.h | 23 +- include/gwin/slider.h | 32 +- include/tdisp/lld/tdisp_lld.h | 25 +- include/tdisp/options.h | 25 +- include/tdisp/tdisp.h | 25 +- src/gadc/gadc.c | 23 +- src/gaudin/gaudin.c | 23 +- src/gaudout/gaudout.c | 63 ++- src/gdisp/fonts.c | 23 +- src/gdisp/gdisp.c | 23 +- src/gdisp/image.c | 23 +- src/gdisp/image_bmp.c | 23 +- src/gdisp/image_gif.c | 23 +- src/gdisp/image_jpg.c | 23 +- src/gdisp/image_native.c | 23 +- src/gdisp/image_png.c | 23 +- src/gevent/gevent.c | 23 +- src/ginput/dial.c | 23 +- src/ginput/keyboard.c | 25 +- src/ginput/mouse.c | 25 +- src/ginput/toggle.c | 25 +- src/gmisc/arrayops.c | 25 +- src/gtimer/gtimer.c | 25 +- src/gwin/button.c | 28 +- src/gwin/console.c | 34 +- src/gwin/graph.c | 28 +- src/gwin/gwin.c | 28 +- src/gwin/slider.c | 28 +- src/tdisp/tdisp.c | 25 +- tools/file2c/src/file2c.c | 23 +- 148 files changed, 1089 insertions(+), 3367 deletions(-) diff --git a/drivers/gadc/AT91SAM7/gadc_lld.c b/drivers/gadc/AT91SAM7/gadc_lld.c index 68866132..791e6bee 100644 --- a/drivers/gadc/AT91SAM7/gadc_lld.c +++ b/drivers/gadc/AT91SAM7/gadc_lld.c @@ -1,29 +1,8 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file drivers/gadc/AT91SAM7/gadc_lld.c - * @brief GADC - Periodic ADC driver source file for the AT91SAM7 cpu. + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: * - * @defgroup Driver Driver - * @ingroup GADC - * @{ + * http://chibios-gfx.com/license.html */ #include "ch.h" diff --git a/drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h b/drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h index 6f23db17..d7aa2ceb 100644 --- a/drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h +++ b/drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h diff --git a/drivers/gadc/AT91SAM7/gadc_lld_config.h b/drivers/gadc/AT91SAM7/gadc_lld_config.h index 8ba71f20..13906fbb 100644 --- a/drivers/gadc/AT91SAM7/gadc_lld_config.h +++ b/drivers/gadc/AT91SAM7/gadc_lld_config.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gadc/AT91SAM7/gadc_lld_config.h diff --git a/drivers/gaudin/gadc/gaudin_lld.c b/drivers/gaudin/gadc/gaudin_lld.c index 39673ab3..7a416569 100644 --- a/drivers/gaudin/gadc/gaudin_lld.c +++ b/drivers/gaudin/gadc/gaudin_lld.c @@ -1,29 +1,8 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file drivers/gaudin/gadc/gaudin_lld.c - * @brief GAUDIN - Driver file for using the cpu ADC (via GADC). - * - * @addtogroup GAUDIN + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: * - * @{ + * http://chibios-gfx.com/license.html */ #include "ch.h" #include "hal.h" diff --git a/drivers/gaudin/gadc/gaudin_lld_board_olimexsam7ex256.h b/drivers/gaudin/gadc/gaudin_lld_board_olimexsam7ex256.h index 283a2914..f122d94d 100644 --- a/drivers/gaudin/gadc/gaudin_lld_board_olimexsam7ex256.h +++ b/drivers/gaudin/gadc/gaudin_lld_board_olimexsam7ex256.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gaudin/gadc/gaudin_lld_board_olimexsam7ex256.h diff --git a/drivers/gaudin/gadc/gaudin_lld_config.h b/drivers/gaudin/gadc/gaudin_lld_config.h index 402e4180..9e74ad14 100644 --- a/drivers/gaudin/gadc/gaudin_lld_config.h +++ b/drivers/gaudin/gadc/gaudin_lld_config.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gaudin/gadc/gaudin_lld_config.h diff --git a/drivers/gdisp/ILI9320/gdisp_lld.c b/drivers/gdisp/ILI9320/gdisp_lld.c index 857d64e2..b2e47c22 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld.c +++ b/drivers/gdisp/ILI9320/gdisp_lld.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/ILI9320/gdisp_lld.c diff --git a/drivers/gdisp/ILI9320/gdisp_lld_board_example.h b/drivers/gdisp/ILI9320/gdisp_lld_board_example.h index 2f762c42..ec7a770d 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld_board_example.h +++ b/drivers/gdisp/ILI9320/gdisp_lld_board_example.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/ILI9320/gdisp_lld_board_example.h diff --git a/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h b/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h index f208f917..e09c08d1 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h +++ b/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2013 - Dmytro Milinevskyy - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h diff --git a/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h b/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h index 7e15a2e0..128bfcbb 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h +++ b/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h diff --git a/drivers/gdisp/ILI9320/gdisp_lld_config.h b/drivers/gdisp/ILI9320/gdisp_lld_config.h index a2a0a66b..708370d8 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld_config.h +++ b/drivers/gdisp/ILI9320/gdisp_lld_config.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/ILI9320/gdisp_lld_config.h diff --git a/drivers/gdisp/ILI9325/gdisp_lld.c b/drivers/gdisp/ILI9325/gdisp_lld.c index d101d1dd..1603b0b0 100644 --- a/drivers/gdisp/ILI9325/gdisp_lld.c +++ b/drivers/gdisp/ILI9325/gdisp_lld.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/ILI9325/gdisp_lld.c diff --git a/drivers/gdisp/ILI9325/gdisp_lld_board_example.h b/drivers/gdisp/ILI9325/gdisp_lld_board_example.h index 16de9924..a07d9dfb 100644 --- a/drivers/gdisp/ILI9325/gdisp_lld_board_example.h +++ b/drivers/gdisp/ILI9325/gdisp_lld_board_example.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/ILI9325/gdisp_lld_board_example.h diff --git a/drivers/gdisp/ILI9325/gdisp_lld_board_hy_stm32_100p.h b/drivers/gdisp/ILI9325/gdisp_lld_board_hy_stm32_100p.h index 1915f1cc..c3d917af 100644 --- a/drivers/gdisp/ILI9325/gdisp_lld_board_hy_stm32_100p.h +++ b/drivers/gdisp/ILI9325/gdisp_lld_board_hy_stm32_100p.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /* driver quickly hacked together from a chinese sourcecode that came diff --git a/drivers/gdisp/ILI9325/gdisp_lld_config.h b/drivers/gdisp/ILI9325/gdisp_lld_config.h index 03ef5f05..8e5d6101 100644 --- a/drivers/gdisp/ILI9325/gdisp_lld_config.h +++ b/drivers/gdisp/ILI9325/gdisp_lld_config.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/ILI9325/gdisp_lld_config.h diff --git a/drivers/gdisp/ILI9481/gdisp_lld.c b/drivers/gdisp/ILI9481/gdisp_lld.c index 2ea8c6e7..2534dcbd 100644 --- a/drivers/gdisp/ILI9481/gdisp_lld.c +++ b/drivers/gdisp/ILI9481/gdisp_lld.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/ILI9481/gdisp_lld.c diff --git a/drivers/gdisp/ILI9481/gdisp_lld_board_example.h b/drivers/gdisp/ILI9481/gdisp_lld_board_example.h index de459641..94a05ab7 100644 --- a/drivers/gdisp/ILI9481/gdisp_lld_board_example.h +++ b/drivers/gdisp/ILI9481/gdisp_lld_board_example.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/ILI9481/gdisp_lld_board_example.h diff --git a/drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h b/drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h index 3fc3f632..7e9ce2b4 100644 --- a/drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h +++ b/drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/ILI9481/gdisp_lld_board_example_fsmc.h diff --git a/drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h b/drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h index ce7af96f..6e4edda9 100644 --- a/drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h +++ b/drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/ILI9481/gdisp_lld_board_firebullstm32f103.h diff --git a/drivers/gdisp/ILI9481/gdisp_lld_config.h b/drivers/gdisp/ILI9481/gdisp_lld_config.h index c1fc7a2d..488c9288 100644 --- a/drivers/gdisp/ILI9481/gdisp_lld_config.h +++ b/drivers/gdisp/ILI9481/gdisp_lld_config.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/ILI9481/gdisp_lld_config.h diff --git a/drivers/gdisp/Nokia6610GE12/GE12.h b/drivers/gdisp/Nokia6610GE12/GE12.h index 388e1147..b3f30439 100644 --- a/drivers/gdisp/Nokia6610GE12/GE12.h +++ b/drivers/gdisp/Nokia6610GE12/GE12.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ #ifndef GE12_H #define GE12_H diff --git a/drivers/gdisp/Nokia6610GE12/gdisp_lld.c b/drivers/gdisp/Nokia6610GE12/gdisp_lld.c index 0f46e267..dead6bab 100644 --- a/drivers/gdisp/Nokia6610GE12/gdisp_lld.c +++ b/drivers/gdisp/Nokia6610GE12/gdisp_lld.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/Nokia6610GE12/gdisp_lld.c diff --git a/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_example.h b/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_example.h index 53a7fad7..6dd799e4 100644 --- a/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_example.h +++ b/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_example.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/Nokia6610GE12/gdisp_lld_board_example.h diff --git a/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_olimexsam7ex256.h b/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_olimexsam7ex256.h index 3fede6d7..570e9c0d 100644 --- a/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_olimexsam7ex256.h +++ b/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_olimexsam7ex256.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/Nokia6610GE12/gdisp_lld_board_olimexsam7ex256.h diff --git a/drivers/gdisp/Nokia6610GE12/gdisp_lld_config.h b/drivers/gdisp/Nokia6610GE12/gdisp_lld_config.h index cca96c0e..5bc19364 100644 --- a/drivers/gdisp/Nokia6610GE12/gdisp_lld_config.h +++ b/drivers/gdisp/Nokia6610GE12/gdisp_lld_config.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/Nokia6610GE12/gdisp_lld_config.h diff --git a/drivers/gdisp/Nokia6610GE8/GE8.h b/drivers/gdisp/Nokia6610GE8/GE8.h index 18c2ffcb..9663d268 100644 --- a/drivers/gdisp/Nokia6610GE8/GE8.h +++ b/drivers/gdisp/Nokia6610GE8/GE8.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ #ifndef GE8_H #define GE8_H diff --git a/drivers/gdisp/Nokia6610GE8/gdisp_lld.c b/drivers/gdisp/Nokia6610GE8/gdisp_lld.c index 65431c9b..c4264bc2 100644 --- a/drivers/gdisp/Nokia6610GE8/gdisp_lld.c +++ b/drivers/gdisp/Nokia6610GE8/gdisp_lld.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/Nokia6610GE8/gdisp_lld.c diff --git a/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_example.h b/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_example.h index 2dc589b7..da7da7cf 100644 --- a/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_example.h +++ b/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_example.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/Nokia6610GE8/gdisp_lld_board_example.h diff --git a/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_olimexsam7ex256.h b/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_olimexsam7ex256.h index b3b88b7c..cfca2785 100644 --- a/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_olimexsam7ex256.h +++ b/drivers/gdisp/Nokia6610GE8/gdisp_lld_board_olimexsam7ex256.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/Nokia6610GE8/gdisp_lld_board_olimexsam7ex256.h diff --git a/drivers/gdisp/Nokia6610GE8/gdisp_lld_config.h b/drivers/gdisp/Nokia6610GE8/gdisp_lld_config.h index 9893b8a4..8b81969c 100644 --- a/drivers/gdisp/Nokia6610GE8/gdisp_lld_config.h +++ b/drivers/gdisp/Nokia6610GE8/gdisp_lld_config.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/Nokia6610GE8/gdisp_lld_config.h diff --git a/drivers/gdisp/S6D1121/gdisp_lld.c b/drivers/gdisp/S6D1121/gdisp_lld.c index 671b8f86..a76cdde0 100644 --- a/drivers/gdisp/S6D1121/gdisp_lld.c +++ b/drivers/gdisp/S6D1121/gdisp_lld.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/S6D1121/gdisp_lld.c diff --git a/drivers/gdisp/S6D1121/gdisp_lld_board_example.h b/drivers/gdisp/S6D1121/gdisp_lld_board_example.h index 782c5918..339d21e8 100644 --- a/drivers/gdisp/S6D1121/gdisp_lld_board_example.h +++ b/drivers/gdisp/S6D1121/gdisp_lld_board_example.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/S6D1121/gdisp_lld_board_example.h diff --git a/drivers/gdisp/S6D1121/gdisp_lld_board_olimex_e407.h b/drivers/gdisp/S6D1121/gdisp_lld_board_olimex_e407.h index ee4759b2..6ff02695 100644 --- a/drivers/gdisp/S6D1121/gdisp_lld_board_olimex_e407.h +++ b/drivers/gdisp/S6D1121/gdisp_lld_board_olimex_e407.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/S6D1121/gdisp_lld_board_olimex_e407.h diff --git a/drivers/gdisp/S6D1121/gdisp_lld_config.h b/drivers/gdisp/S6D1121/gdisp_lld_config.h index 0ae68848..a91114a5 100644 --- a/drivers/gdisp/S6D1121/gdisp_lld_config.h +++ b/drivers/gdisp/S6D1121/gdisp_lld_config.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/S6D1121/gdisp_lld_config.h diff --git a/drivers/gdisp/SSD1289/gdisp_lld.c b/drivers/gdisp/SSD1289/gdisp_lld.c index f6531f2c..a3daeb88 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld.c +++ b/drivers/gdisp/SSD1289/gdisp_lld.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/SSD1289/gdisp_lld.c diff --git a/drivers/gdisp/SSD1289/gdisp_lld_board_example.h b/drivers/gdisp/SSD1289/gdisp_lld_board_example.h index 7e8389d7..b56139d9 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld_board_example.h +++ b/drivers/gdisp/SSD1289/gdisp_lld_board_example.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/SSD1289/gdisp_lld_board_example.h diff --git a/drivers/gdisp/SSD1289/gdisp_lld_board_example_fsmc.h b/drivers/gdisp/SSD1289/gdisp_lld_board_example_fsmc.h index b0451747..7223a507 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld_board_example_fsmc.h +++ b/drivers/gdisp/SSD1289/gdisp_lld_board_example_fsmc.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/SSD1289/gdisp_lld_board_example_fsmc.h diff --git a/drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h b/drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h index 19f1108c..d744c8e7 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h +++ b/drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h diff --git a/drivers/gdisp/SSD1289/gdisp_lld_config.h b/drivers/gdisp/SSD1289/gdisp_lld_config.h index 8b26e489..8bc49305 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld_config.h +++ b/drivers/gdisp/SSD1289/gdisp_lld_config.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/SSD1289/gdisp_lld_config.h diff --git a/drivers/gdisp/SSD1963/gdisp_lld.c b/drivers/gdisp/SSD1963/gdisp_lld.c index c407a27e..8d12cf60 100644 --- a/drivers/gdisp/SSD1963/gdisp_lld.c +++ b/drivers/gdisp/SSD1963/gdisp_lld.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/SSD1963/gdisp_lld.c diff --git a/drivers/gdisp/SSD1963/gdisp_lld_board_example_fsmc.h b/drivers/gdisp/SSD1963/gdisp_lld_board_example_fsmc.h index 8de399d9..0e310482 100644 --- a/drivers/gdisp/SSD1963/gdisp_lld_board_example_fsmc.h +++ b/drivers/gdisp/SSD1963/gdisp_lld_board_example_fsmc.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/SSD1289/gdisp_lld_board_example_fsmc.h diff --git a/drivers/gdisp/SSD1963/gdisp_lld_board_example_gpio.h b/drivers/gdisp/SSD1963/gdisp_lld_board_example_gpio.h index ad9fa8e4..44803598 100644 --- a/drivers/gdisp/SSD1963/gdisp_lld_board_example_gpio.h +++ b/drivers/gdisp/SSD1963/gdisp_lld_board_example_gpio.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/SSD1963/gdisp_lld_board_example_gpio.h diff --git a/drivers/gdisp/SSD1963/gdisp_lld_config.h b/drivers/gdisp/SSD1963/gdisp_lld_config.h index 7fa6a97c..398a7876 100644 --- a/drivers/gdisp/SSD1963/gdisp_lld_config.h +++ b/drivers/gdisp/SSD1963/gdisp_lld_config.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/SSD1963/gdisp_lld_config.h diff --git a/drivers/gdisp/SSD1963/gdisp_lld_panel_example.h b/drivers/gdisp/SSD1963/gdisp_lld_panel_example.h index 109d7332..b6c4e4c8 100644 --- a/drivers/gdisp/SSD1963/gdisp_lld_panel_example.h +++ b/drivers/gdisp/SSD1963/gdisp_lld_panel_example.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/SSD1963/gdisp_lld_panel_example.h diff --git a/drivers/gdisp/SSD1963/ssd1963.h b/drivers/gdisp/SSD1963/ssd1963.h index a56c142b..5c63439f 100644 --- a/drivers/gdisp/SSD1963/ssd1963.h +++ b/drivers/gdisp/SSD1963/ssd1963.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ #ifndef SSD1963_H #define SSD1963_H diff --git a/drivers/gdisp/SSD2119/gdisp_lld.c b/drivers/gdisp/SSD2119/gdisp_lld.c index a7ad7b1a..282331cf 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld.c +++ b/drivers/gdisp/SSD2119/gdisp_lld.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/SSD2119/gdisp_lld.c diff --git a/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h b/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h index bf7b3890..4d56de95 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h +++ b/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h diff --git a/drivers/gdisp/SSD2119/gdisp_lld_config.h b/drivers/gdisp/SSD2119/gdisp_lld_config.h index b5af495c..6599034d 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld_config.h +++ b/drivers/gdisp/SSD2119/gdisp_lld_config.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/SSD2119/gdisp_lld_config.h diff --git a/drivers/gdisp/SSD2119/ssd2119.h b/drivers/gdisp/SSD2119/ssd2119.h index c3ffa00f..82c29b07 100644 --- a/drivers/gdisp/SSD2119/ssd2119.h +++ b/drivers/gdisp/SSD2119/ssd2119.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/SSD2119/ssd2119.h diff --git a/drivers/gdisp/TestStub/gdisp_lld.c b/drivers/gdisp/TestStub/gdisp_lld.c index 19ce5b3c..ecb23862 100644 --- a/drivers/gdisp/TestStub/gdisp_lld.c +++ b/drivers/gdisp/TestStub/gdisp_lld.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/TestStub/gdisp_lld.c diff --git a/drivers/gdisp/TestStub/gdisp_lld_config.h b/drivers/gdisp/TestStub/gdisp_lld_config.h index c0fa6a65..966c684c 100644 --- a/drivers/gdisp/TestStub/gdisp_lld_config.h +++ b/drivers/gdisp/TestStub/gdisp_lld_config.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/gdisp/TestStub/gdisp_lld_config.h diff --git a/drivers/ginput/dial/GADC/ginput_lld_dial.c b/drivers/ginput/dial/GADC/ginput_lld_dial.c index ced71a27..e9dc8a3f 100644 --- a/drivers/ginput/dial/GADC/ginput_lld_dial.c +++ b/drivers/ginput/dial/GADC/ginput_lld_dial.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/dial/GADC/ginput_lld_dial.c diff --git a/drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h b/drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h index 13788188..ee025478 100644 --- a/drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h +++ b/drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h diff --git a/drivers/ginput/dial/GADC/ginput_lld_dial_config.h b/drivers/ginput/dial/GADC/ginput_lld_dial_config.h index 535b09a6..0fa3da47 100644 --- a/drivers/ginput/dial/GADC/ginput_lld_dial_config.h +++ b/drivers/ginput/dial/GADC/ginput_lld_dial_config.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/dial/GADC/ginput_lld_dial_config.h diff --git a/drivers/ginput/toggle/Pal/ginput_lld_toggle.c b/drivers/ginput/toggle/Pal/ginput_lld_toggle.c index 04805d04..9797b3c5 100644 --- a/drivers/ginput/toggle/Pal/ginput_lld_toggle.c +++ b/drivers/ginput/toggle/Pal/ginput_lld_toggle.c @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/toggle/Pal/ginput_lld_toggle.c diff --git a/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_example.h b/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_example.h index 34d9cdaa..828255c0 100644 --- a/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_example.h +++ b/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_example.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/toggle/Pal/ginput_lld_toggle_board_example.h diff --git a/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_olimexsam7ex256.h b/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_olimexsam7ex256.h index 0189e3f8..e8bd13f1 100644 --- a/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_olimexsam7ex256.h +++ b/drivers/ginput/toggle/Pal/ginput_lld_toggle_board_olimexsam7ex256.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/toggle/Pal/ginput_lld_toggle_board_olimexsam7ex256.h diff --git a/drivers/ginput/toggle/Pal/ginput_lld_toggle_config.h b/drivers/ginput/toggle/Pal/ginput_lld_toggle_config.h index a0402777..77b94577 100644 --- a/drivers/ginput/toggle/Pal/ginput_lld_toggle_config.h +++ b/drivers/ginput/toggle/Pal/ginput_lld_toggle_config.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/toggle/Pal/ginput_lld_toggle_config.h diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c b/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c index 9371760a..ed4a3c32 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/touch/ADS7843/ginput_lld_mouse.c diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_example.h b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_example.h index 2e3f3245..e3018881 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_example.h +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_example.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_example.h diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_firebull_stm32f103.h b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_firebull_stm32f103.h index 7758166b..10172934 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_firebull_stm32f103.h +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_firebull_stm32f103.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_firebull_stm32f103.h diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_olimex_stm32_e407.h b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_olimex_stm32_e407.h index 21ba5294..8ea27102 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_olimex_stm32_e407.h +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_olimex_stm32_e407.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_olimex_stm32_e407.h diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_config.h b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_config.h index 6b8579e3..e2d44b4b 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_config.h +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_config.h @@ -1,31 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file drivers/ginput/touch/ADS7843/ginput_lld_mouse_config.h - * @brief GINPUT LLD header file for mouse/touch driver. - * - * @defgroup Mouse Mouse - * @ingroup GINPUT - * - * @{ - */ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ #ifndef _LLD_GINPUT_MOUSE_CONFIG_H #define _LLD_GINPUT_MOUSE_CONFIG_H diff --git a/drivers/ginput/touch/MCU/ginput_lld_mouse.c b/drivers/ginput/touch/MCU/ginput_lld_mouse.c index 1b7e1988..7289f077 100644 --- a/drivers/ginput/touch/MCU/ginput_lld_mouse.c +++ b/drivers/ginput/touch/MCU/ginput_lld_mouse.c @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/touch/MCU/ginput_lld_mouse.c diff --git a/drivers/ginput/touch/MCU/ginput_lld_mouse_board_example.h b/drivers/ginput/touch/MCU/ginput_lld_mouse_board_example.h index 1c6aa970..f9483f72 100644 --- a/drivers/ginput/touch/MCU/ginput_lld_mouse_board_example.h +++ b/drivers/ginput/touch/MCU/ginput_lld_mouse_board_example.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/touch/MCU/ginput_lld_mouse_board_example.h diff --git a/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_pic32mx_lcd.h b/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_pic32mx_lcd.h index 4f55124d..22dc48b5 100644 --- a/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_pic32mx_lcd.h +++ b/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_pic32mx_lcd.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_stm32_lcd.h diff --git a/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_stm32_lcd.h b/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_stm32_lcd.h index 0309b655..dddd4a7c 100644 --- a/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_stm32_lcd.h +++ b/drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_stm32_lcd.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/touch/MCU/ginput_lld_mouse_board_olimex_stm32_lcd.h diff --git a/drivers/ginput/touch/MCU/ginput_lld_mouse_config.h b/drivers/ginput/touch/MCU/ginput_lld_mouse_config.h index 4515517f..bf84cb7c 100644 --- a/drivers/ginput/touch/MCU/ginput_lld_mouse_config.h +++ b/drivers/ginput/touch/MCU/ginput_lld_mouse_config.h @@ -1,31 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file drivers/ginput/touch/MCU/ginput_lld_mouse_config.h - * @brief GINPUT LLD header file for touch driver. - * - * @defgroup Mouse Mouse - * @ingroup GINPUT - * - * @{ - */ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ #ifndef _LLD_GINPUT_MOUSE_CONFIG_H #define _LLD_GINPUT_MOUSE_CONFIG_H diff --git a/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c b/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c index 696795cc..88eceb39 100644 --- a/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c +++ b/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/touch/STMPE811/ginput_lld_mouse.c diff --git a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_embest_dmstf4bb.h b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_embest_dmstf4bb.h index a0d5a0de..d0b019a5 100644 --- a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_embest_dmstf4bb.h +++ b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_embest_dmstf4bb.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_embest_dmstf4bb.h diff --git a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_example.h b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_example.h index 453924b0..384c7af7 100644 --- a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_example.h +++ b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_example.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_example.h diff --git a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_config.h b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_config.h index 871a6c2e..84cb7aa9 100644 --- a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_config.h +++ b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_config.h @@ -1,31 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file drivers/ginput/touch/STMPE811/ginput_lld_mouse_config.h - * @brief GINPUT LLD header file for mouse/touch driver. - * - * @defgroup Mouse Mouse - * @ingroup GINPUT - * - * @{ - */ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ #ifndef _LLD_GINPUT_MOUSE_CONFIG_H #define _LLD_GINPUT_MOUSE_CONFIG_H diff --git a/drivers/ginput/touch/STMPE811/stmpe811.h b/drivers/ginput/touch/STMPE811/stmpe811.h index 36101cd4..3bdb6ac8 100644 --- a/drivers/ginput/touch/STMPE811/stmpe811.h +++ b/drivers/ginput/touch/STMPE811/stmpe811.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/ginput/touch/STMPE811/stmpe811.h diff --git a/drivers/multiple/Win32/gdisp_lld.c b/drivers/multiple/Win32/gdisp_lld.c index 7311a5af..e8b55e45 100644 --- a/drivers/multiple/Win32/gdisp_lld.c +++ b/drivers/multiple/Win32/gdisp_lld.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/multiple/Win32/gdisp_lld.c diff --git a/drivers/multiple/Win32/gdisp_lld_config.h b/drivers/multiple/Win32/gdisp_lld_config.h index cef06744..c1886ac8 100644 --- a/drivers/multiple/Win32/gdisp_lld_config.h +++ b/drivers/multiple/Win32/gdisp_lld_config.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/multiple/Win32/gdisp_lld_config.h diff --git a/drivers/multiple/Win32/ginput_lld_mouse_config.h b/drivers/multiple/Win32/ginput_lld_mouse_config.h index caef69fe..4c322e18 100644 --- a/drivers/multiple/Win32/ginput_lld_mouse_config.h +++ b/drivers/multiple/Win32/ginput_lld_mouse_config.h @@ -1,31 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file drivers/multiple/Win32/ginput_lld_mouse_config.h - * @brief GINPUT LLD header file for mouse/touch driver. - * - * @defgroup Mouse Mouse - * @ingroup GINPUT - * - * @{ - */ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ #ifndef _LLD_GINPUT_MOUSE_CONFIG_H #define _LLD_GINPUT_MOUSE_CONFIG_H diff --git a/drivers/multiple/Win32/ginput_lld_toggle_config.h b/drivers/multiple/Win32/ginput_lld_toggle_config.h index ac348c73..e96380d3 100644 --- a/drivers/multiple/Win32/ginput_lld_toggle_config.h +++ b/drivers/multiple/Win32/ginput_lld_toggle_config.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/multiple/Win32/ginput_lld_toggle_config.h diff --git a/drivers/tdisp/HD44780/tdisp_lld.c b/drivers/tdisp/HD44780/tdisp_lld.c index b68d1f55..ad38df8e 100644 --- a/drivers/tdisp/HD44780/tdisp_lld.c +++ b/drivers/tdisp/HD44780/tdisp_lld.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/tdisp/HD44780/tdisp_lld.c diff --git a/drivers/tdisp/HD44780/tdisp_lld_board_example.h b/drivers/tdisp/HD44780/tdisp_lld_board_example.h index fbf3f172..f37bf2cb 100644 --- a/drivers/tdisp/HD44780/tdisp_lld_board_example.h +++ b/drivers/tdisp/HD44780/tdisp_lld_board_example.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/tdisp/HD44780/tdisp_lld_board_example.h diff --git a/drivers/tdisp/HD44780/tdisp_lld_board_olimex_e407.h b/drivers/tdisp/HD44780/tdisp_lld_board_olimex_e407.h index e8b1752d..5cc0f9f0 100644 --- a/drivers/tdisp/HD44780/tdisp_lld_board_olimex_e407.h +++ b/drivers/tdisp/HD44780/tdisp_lld_board_olimex_e407.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/tdisp/HD44780/tdisp_lld_board_olimex_e407.h diff --git a/drivers/tdisp/HD44780/tdisp_lld_board_st_stm32f4_discovery.h b/drivers/tdisp/HD44780/tdisp_lld_board_st_stm32f4_discovery.h index 1fe222dc..84d92a0f 100644 --- a/drivers/tdisp/HD44780/tdisp_lld_board_st_stm32f4_discovery.h +++ b/drivers/tdisp/HD44780/tdisp_lld_board_st_stm32f4_discovery.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file drivers/tdisp/HD44780/tdisp_lld_board_st_stm32f4_discovery.h diff --git a/include/gadc/gadc.h b/include/gadc/gadc.h index 56be7cf5..17d1f028 100644 --- a/include/gadc/gadc.h +++ b/include/gadc/gadc.h @@ -1,49 +1,8 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/gadc/gadc.h - * @brief GADC - Periodic ADC subsystem header file. - * - * @addtogroup GADC + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: * - * @details The reason why ChibiOS/GFX has it's own ADC abstraction is because - * the Chibi-OS drivers are very CPU specific and do not - * provide a way across all hardware platforms to create periodic - * ADC conversions. There are also issues with devices with different - * characteristics or periodic requirements on the same ADC - * device (but different channels). This layer attempts to solve these - * problems to provide a architecture neutral API. It also provides extra - * features such as multi-buffer chaining for high speed ADC sources. - * It provides one high speed virtual ADC device (eg a microphone) and - * numerous low speed (less than 100Hz) virtual ADC devices (eg dials, - * temperature sensors etc). The high speed device has timer based polling - * to ensure exact conversion periods and a buffer management system. - * The low speed devices are assumed to be non-critical timing devices - * and do not have any buffer management. - * Note that while only one high speed device has been provided it can - * be used to read multiple physical ADC channels on the one physical - * ADC device. - * All callback routines are thread based unlike the Chibi-OS interrupt based - * routines. - * - * @{ + * http://chibios-gfx.com/license.html */ #ifndef _GADC_H diff --git a/include/gadc/lld/gadc_lld.h b/include/gadc/lld/gadc_lld.h index dc111990..4638920e 100644 --- a/include/gadc/lld/gadc_lld.h +++ b/include/gadc/lld/gadc_lld.h @@ -1,29 +1,8 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/gadc/lld/gadc_lld.h - * @brief GADC - Periodic ADC driver header file. + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: * - * @defgroup Driver Driver - * @ingroup GADC - * @{ + * http://chibios-gfx.com/license.html */ #ifndef _GADC_LLD_H diff --git a/include/gadc/options.h b/include/gadc/options.h index 87708efe..c83a71bf 100644 --- a/include/gadc/options.h +++ b/include/gadc/options.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/gadc/options.h diff --git a/include/gaudin/gaudin.h b/include/gaudin/gaudin.h index 3cf29d09..f8d19d94 100644 --- a/include/gaudin/gaudin.h +++ b/include/gaudin/gaudin.h @@ -1,29 +1,8 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/gaudin/gaudin.h - * @brief GAUDIN - Audio Input subsystem header file. - * - * @addtogroup GAUDIN + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: * - * @{ + * http://chibios-gfx.com/license.html */ #ifndef _GAUDIN_H diff --git a/include/gaudin/lld/gaudin_lld.h b/include/gaudin/lld/gaudin_lld.h index 6512c61c..b516ace6 100644 --- a/include/gaudin/lld/gaudin_lld.h +++ b/include/gaudin/lld/gaudin_lld.h @@ -1,29 +1,8 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/gaudin/lld/gaudin_lld.h - * @brief GAUDIN - Audio Input driver header file. + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: * - * @defgroup Driver Driver - * @ingroup GAUDIN - * @{ + * http://chibios-gfx.com/license.html */ #ifndef _GAUDIN_LLD_H diff --git a/include/gaudin/options.h b/include/gaudin/options.h index eff022a3..95f75f09 100644 --- a/include/gaudin/options.h +++ b/include/gaudin/options.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/gaudin/options.h diff --git a/include/gaudout/gaudout.h b/include/gaudout/gaudout.h index 35bdebeb..1de2a5c7 100644 --- a/include/gaudout/gaudout.h +++ b/include/gaudout/gaudout.h @@ -1,56 +1,35 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/gaudout/gaudout.h - * @brief GAUDOUT - Audio Output subsystem header file. - * - * @addtogroup GAUDOUT - * - * @{ - */ - -#ifndef _GAUDOUT_H -#define _GAUDOUT_H - -#include "gfx.h" - -#if GFX_USE_GAUDOUT || defined(__DOXYGEN__) - -/*===========================================================================*/ -/* Type definitions */ -/*===========================================================================*/ - -/*===========================================================================*/ -/* External declarations. */ -/*===========================================================================*/ - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* GFX_USE_GAUDOUT */ - -#endif /* _GAUDOUT_H */ -/** @} */ - +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ + +#ifndef _GAUDOUT_H +#define _GAUDOUT_H + +#include "gfx.h" + +#if GFX_USE_GAUDOUT || defined(__DOXYGEN__) + +/*===========================================================================*/ +/* Type definitions */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* External declarations. */ +/*===========================================================================*/ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* GFX_USE_GAUDOUT */ + +#endif /* _GAUDOUT_H */ +/** @} */ + diff --git a/include/gaudout/options.h b/include/gaudout/options.h index 12ee975f..26337fab 100644 --- a/include/gaudout/options.h +++ b/include/gaudout/options.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/gaudout/options.h diff --git a/include/gdisp/fonts.h b/include/gdisp/fonts.h index 888f4489..f4e6f5dd 100644 --- a/include/gdisp/fonts.h +++ b/include/gdisp/fonts.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/gdisp/fonts.h diff --git a/include/gdisp/gdisp.h b/include/gdisp/gdisp.h index 85f9b4ea..8c14ca9f 100644 --- a/include/gdisp/gdisp.h +++ b/include/gdisp/gdisp.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/gdisp/gdisp.h diff --git a/include/gdisp/image.h b/include/gdisp/image.h index 99e51118..d0339e0e 100644 --- a/include/gdisp/image.h +++ b/include/gdisp/image.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/gdisp/image.h diff --git a/include/gdisp/lld/emulation.c b/include/gdisp/lld/emulation.c index 572b2dcb..ac97b515 100644 --- a/include/gdisp/lld/emulation.c +++ b/include/gdisp/lld/emulation.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/gdisp/lld/emulation.c diff --git a/include/gdisp/lld/gdisp_lld.h b/include/gdisp/lld/gdisp_lld.h index f42ad2af..fa4c1c63 100644 --- a/include/gdisp/lld/gdisp_lld.h +++ b/include/gdisp/lld/gdisp_lld.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/gdisp/lld/gdisp_lld.h diff --git a/include/gdisp/lld/gdisp_lld_msgs.h b/include/gdisp/lld/gdisp_lld_msgs.h index 5783613d..de3d3035 100644 --- a/include/gdisp/lld/gdisp_lld_msgs.h +++ b/include/gdisp/lld/gdisp_lld_msgs.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/gdisp/lld/gdisp_lld_msgs.h diff --git a/include/gdisp/options.h b/include/gdisp/options.h index 5cdfbf59..b4d1dc25 100644 --- a/include/gdisp/options.h +++ b/include/gdisp/options.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/gdisp/options.h diff --git a/include/gevent/gevent.h b/include/gevent/gevent.h index 57fb60b2..15efd0b9 100644 --- a/include/gevent/gevent.h +++ b/include/gevent/gevent.h @@ -1,250 +1,224 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/gevent/gevent.h - * @brief GEVENT GFX User Event subsystem header file. - * - * @addtogroup GEVENT - * - * @details GEVENT provides a simple to use but yet powerful event - * system. - * - * @pre GFX_USE_GEVENT must be set to TRUE in your gfxconf.h - * - * @{ - */ -#ifndef _GEVENT_H -#define _GEVENT_H - -#include "gfx.h" - -#if GFX_USE_GEVENT || defined(__DOXYGEN__) - -/* Data part of a static GListener initializer */ -#define _GLISTENER_DATA(name) { _SEMAPHORE_DATA(name.waitqueue, 0), _BSEMAPHORE_DATA(name.eventlock, FALSE), 0, 0, {0} } -/* Static GListener initializer */ -#define GLISTENER_DECL(name) GListener name = _GLISTENER_DATA(name) - -/*===========================================================================*/ -/* Type definitions */ -/*===========================================================================*/ - -typedef uint16_t GEventType; - #define GEVENT_NULL 0x0000 // Null Event - Do nothing - #define GEVENT_EXIT 0x0001 // The listener is being forced to exit (someone is destroying the listener) - - /* Other event types are allocated in ranges in their respective include files */ - #define GEVENT_GINPUT_FIRST 0x0100 // GINPUT events range from 0x0100 to 0x01FF - #define GEVENT_GWIN_FIRST 0x0200 // GWIN events range from 0x0200 to 0x02FF - #define GEVENT_GADC_FIRST 0x0300 // GADC events range from 0x0300 to 0x033F - #define GEVENT_GAUDIN_FIRST 0x0340 // GAUDIN events range from 0x0340 to 0x037F - #define GEVENT_GAUDOUT_FIRST 0x0380 // GAUDOUT events range from 0x0380 to 0x03BF - #define GEVENT_USER_FIRST 0x8000 // Any application defined events start at 0x8000 - -// This object can be typecast to any GEventXxxxx type to allow any sub-system (or the application) to create events. -// The prerequisite is that the new status structure type starts with a field named 'type' of type 'GEventType'. -// The total status structure also must not exceed GEVENT_MAXIMUM_SIZE bytes. -// For example, this is used by GWIN button events, GINPUT data streams etc. -typedef union GEvent_u { - GEventType type; // The type of this event - char pad[GEVENT_MAXIMUM_SIZE]; // This is here to allow static initialisation of GEventObject's in the application. - } GEvent; - -// A special callback function -typedef void (*GEventCallbackFn)(void *param, GEvent *pe); - -// The Listener Object -typedef struct GListener { - Semaphore waitqueue; // Private: Semaphore for the listener to wait on. - BinarySemaphore eventlock; // Private: Protect against more than one sources trying to use this event lock at the same time - GEventCallbackFn callback; // Private: Call back Function - void *param; // Private: Parameter for the callback function. - GEvent event; // Public: The event object into which the event information is stored. - } GListener; - -// The Source Object -typedef struct GSource_t GSource, *GSourceHandle; - -// This structure is passed to a source to describe a contender listener for sending the current event. -typedef struct GSourceListener_t { - GListener *pListener; // The listener - GSource *pSource; // The source - unsigned listenflags; // The flags the listener passed when the source was assigned to it. - unsigned srcflags; // For the source's exclusive use. Initialised as 0 for a new listener source assignment. - } GSourceListener; - -/*===========================================================================*/ -/* External declarations. */ -/*===========================================================================*/ - -#ifdef __cplusplus -extern "C" { -#endif - -/* How to listen for events (act as a Listener)... - 1. Get handles for all the event sources you are interested in. - 2. Initialise a listener - 3. Attach sources to your listener. - - Sources can be attached or detached from a listener at any time. - - A source can be attached to more than one listener. - 4. Loop on getting listener events - 5. When finished detach all sources from the listener - - How to create events (act as a Source)... - 1. Provide a funtion to the application that returns a GSourceHandle (which can be a pointer to whatever the source wants) - 2. Whenever a possible event occurs call geventGetSourceListener to get a pointer to a GSourceListener. - This will return NULL when there are no more listeners. - For each listener - check the flags to see if an event should be sent. - - use geventGetEvent() to get the event buffer supplied by the listener - and then call geventSendEvent to send the event. - - Note: geventGetEvent() may return FALSE to indicate the listener is currently not listening and - therefore no event should be sent. This situation enables the source to (optionally) flag - to the listener on its next wait that there have been missed events. - - Note: The GSourceListener pointer (and the GEvent buffer) are only valid between - the geventGetSourceListener call and either the geventSendEvent call or the next - geventGetSourceListener call. - - Note: All listeners must be processed for this event before anything else is processed. -*/ - -/*---------- Listener Functions --------------------------------------------*/ - -/** - * @brief Create a Listener - * @details If insufficient resources are available it will either assert or return NULL - * depending on the value of GEVENT_ASSERT_NO_RESOURCE. - * - * @param[in] pl A listener - */ -void geventListenerInit(GListener *pl); - -/** - * @brief Attach a source to a listener - * @details Flags are interpreted by the source when generating events for each listener. - * If this source is already assigned to the listener it will update the flags. - * If insufficient resources are available it will either assert or return FALSE - * depending on the value of GEVENT_ASSERT_NO_RESOURCE. - * - * @param[in] pl The listener - * @param[in] gsh The source which has to be attached to the listener - * @param[in] flags The flags - * - * @return TRUE if succeeded, FALSE otherwise - */ -bool_t geventAttachSource(GListener *pl, GSourceHandle gsh, unsigned flags); - -/** - * @brief Detach a source from a listener - * @details If gsh is NULL detach all sources from this listener and if there is still - * a thread waiting for events on this listener, it is sent the exit event. - * - * @param[in] pl The listener - * @param[in] gsh The source - */ -void geventDetachSource(GListener *pl, GSourceHandle gsh); - -/** - * @brief Wait for an event on a listener from an assigned source. - * @details The type of the event should be checked (pevent->type) and then pevent should - * be typecast to the actual event type if it needs to be processed. - * timeout specifies the time to wait in system ticks. - * TIME_INFINITE means no timeout - wait forever for an event. - * TIME_IMMEDIATE means return immediately - * @note The GEvent buffer is staticly allocated within the GListener so the event does not - * need to be dynamicly freed however it will get overwritten by the next call to - * this routine. - * - * @param[in] pl The listener - * @param[in] timeout The timeout - * - * @return NULL on timeout - */ -GEvent *geventEventWait(GListener *pl, systime_t timeout); - -/* @brief Register a callback for an event on a listener from an assigned source. - * @details The type of the event should be checked (pevent->type) and then pevent should be typecast to the - * actual event type if it needs to be processed. - * - * @params[in] pl The Listener - * @params[in] fn The function to call back - * @params[in] param A parameter to pass the callback function - * - * @note The GEvent buffer is valid only during the time of the callback. The callback MUST NOT save - * a pointer to the buffer for use outside the callback. - * @note An existing callback function is de-registered by passing a NULL for 'fn'. Any existing - * callback function is replaced. Any thread currently waiting using geventEventWait will be sent the exit event. - * @note Callbacks occur in a thread context but stack space must be kept to a minumum and - * the callback must process quickly as all other events are performed on a single thread. - * @note In the callback function you should never call ANY event functions using your own GListener handle - * as it WILL create a deadlock and lock the system up. - * @note Applications should not use this call - geventEventWait() is the preferred mechanism for an - * application. This call is provided for GUI objects that may not have their own thread. - */ -void geventRegisterCallback(GListener *pl, GEventCallbackFn fn, void *param); - -/*---------- Source Functions --------------------------------------------*/ - -/** - * @brief Called by a source with a possible event to get a listener record. - * @details @p lastlr should be NULL on the first call and thereafter the result of the previous call. - * - * @param[in] gsh The source handler - * @param[in] lastlr The source listener - * - * @return NULL when there are no more listeners for this source - */ -GSourceListener *geventGetSourceListener(GSourceHandle gsh, GSourceListener *lastlr); - -/** - * @brief Get the event buffer from the GSourceListener. - * @details A NULL return allows the source to record (perhaps in glr->scrflags) that the listener - * has missed events. This can then be notified as part of the next event for the listener. - * The buffer can only be accessed untill the next call to geventGetSourceListener - * or geventSendEvent - * - * @param[in] psl The source listener - * - * @return NULL if the listener is not currently listening. - */ -GEvent *geventGetEventBuffer(GSourceListener *psl); - -/** - * @brief Called by a source to indicate the listener's event buffer has been filled. - * @details After calling this function the source must not reference in fields in the GSourceListener or the event buffer. - * - * @param[in] psl The source listener - */ -void geventSendEvent(GSourceListener *psl); - -/** - * @brief Detach any listener that has this source attached - * - * @param[in] gsh The source handle - */ -void geventDetachSourceListeners(GSourceHandle gsh); - -#ifdef __cplusplus -} -#endif - -#endif /* GFX_USE_GEVENT */ - -#endif /* _GEVENT_H */ -/** @} */ - +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ +#ifndef _GEVENT_H +#define _GEVENT_H + +#include "gfx.h" + +#if GFX_USE_GEVENT || defined(__DOXYGEN__) + +/* Data part of a static GListener initializer */ +#define _GLISTENER_DATA(name) { _SEMAPHORE_DATA(name.waitqueue, 0), _BSEMAPHORE_DATA(name.eventlock, FALSE), 0, 0, {0} } +/* Static GListener initializer */ +#define GLISTENER_DECL(name) GListener name = _GLISTENER_DATA(name) + +/*===========================================================================*/ +/* Type definitions */ +/*===========================================================================*/ + +typedef uint16_t GEventType; + #define GEVENT_NULL 0x0000 // Null Event - Do nothing + #define GEVENT_EXIT 0x0001 // The listener is being forced to exit (someone is destroying the listener) + + /* Other event types are allocated in ranges in their respective include files */ + #define GEVENT_GINPUT_FIRST 0x0100 // GINPUT events range from 0x0100 to 0x01FF + #define GEVENT_GWIN_FIRST 0x0200 // GWIN events range from 0x0200 to 0x02FF + #define GEVENT_GADC_FIRST 0x0300 // GADC events range from 0x0300 to 0x033F + #define GEVENT_GAUDIN_FIRST 0x0340 // GAUDIN events range from 0x0340 to 0x037F + #define GEVENT_GAUDOUT_FIRST 0x0380 // GAUDOUT events range from 0x0380 to 0x03BF + #define GEVENT_USER_FIRST 0x8000 // Any application defined events start at 0x8000 + +// This object can be typecast to any GEventXxxxx type to allow any sub-system (or the application) to create events. +// The prerequisite is that the new status structure type starts with a field named 'type' of type 'GEventType'. +// The total status structure also must not exceed GEVENT_MAXIMUM_SIZE bytes. +// For example, this is used by GWIN button events, GINPUT data streams etc. +typedef union GEvent_u { + GEventType type; // The type of this event + char pad[GEVENT_MAXIMUM_SIZE]; // This is here to allow static initialisation of GEventObject's in the application. + } GEvent; + +// A special callback function +typedef void (*GEventCallbackFn)(void *param, GEvent *pe); + +// The Listener Object +typedef struct GListener { + Semaphore waitqueue; // Private: Semaphore for the listener to wait on. + BinarySemaphore eventlock; // Private: Protect against more than one sources trying to use this event lock at the same time + GEventCallbackFn callback; // Private: Call back Function + void *param; // Private: Parameter for the callback function. + GEvent event; // Public: The event object into which the event information is stored. + } GListener; + +// The Source Object +typedef struct GSource_t GSource, *GSourceHandle; + +// This structure is passed to a source to describe a contender listener for sending the current event. +typedef struct GSourceListener_t { + GListener *pListener; // The listener + GSource *pSource; // The source + unsigned listenflags; // The flags the listener passed when the source was assigned to it. + unsigned srcflags; // For the source's exclusive use. Initialised as 0 for a new listener source assignment. + } GSourceListener; + +/*===========================================================================*/ +/* External declarations. */ +/*===========================================================================*/ + +#ifdef __cplusplus +extern "C" { +#endif + +/* How to listen for events (act as a Listener)... + 1. Get handles for all the event sources you are interested in. + 2. Initialise a listener + 3. Attach sources to your listener. + - Sources can be attached or detached from a listener at any time. + - A source can be attached to more than one listener. + 4. Loop on getting listener events + 5. When finished detach all sources from the listener + + How to create events (act as a Source)... + 1. Provide a funtion to the application that returns a GSourceHandle (which can be a pointer to whatever the source wants) + 2. Whenever a possible event occurs call geventGetSourceListener to get a pointer to a GSourceListener. + This will return NULL when there are no more listeners. + For each listener - check the flags to see if an event should be sent. + - use geventGetEvent() to get the event buffer supplied by the listener + and then call geventSendEvent to send the event. + - Note: geventGetEvent() may return FALSE to indicate the listener is currently not listening and + therefore no event should be sent. This situation enables the source to (optionally) flag + to the listener on its next wait that there have been missed events. + - Note: The GSourceListener pointer (and the GEvent buffer) are only valid between + the geventGetSourceListener call and either the geventSendEvent call or the next + geventGetSourceListener call. + - Note: All listeners must be processed for this event before anything else is processed. +*/ + +/*---------- Listener Functions --------------------------------------------*/ + +/** + * @brief Create a Listener + * @details If insufficient resources are available it will either assert or return NULL + * depending on the value of GEVENT_ASSERT_NO_RESOURCE. + * + * @param[in] pl A listener + */ +void geventListenerInit(GListener *pl); + +/** + * @brief Attach a source to a listener + * @details Flags are interpreted by the source when generating events for each listener. + * If this source is already assigned to the listener it will update the flags. + * If insufficient resources are available it will either assert or return FALSE + * depending on the value of GEVENT_ASSERT_NO_RESOURCE. + * + * @param[in] pl The listener + * @param[in] gsh The source which has to be attached to the listener + * @param[in] flags The flags + * + * @return TRUE if succeeded, FALSE otherwise + */ +bool_t geventAttachSource(GListener *pl, GSourceHandle gsh, unsigned flags); + +/** + * @brief Detach a source from a listener + * @details If gsh is NULL detach all sources from this listener and if there is still + * a thread waiting for events on this listener, it is sent the exit event. + * + * @param[in] pl The listener + * @param[in] gsh The source + */ +void geventDetachSource(GListener *pl, GSourceHandle gsh); + +/** + * @brief Wait for an event on a listener from an assigned source. + * @details The type of the event should be checked (pevent->type) and then pevent should + * be typecast to the actual event type if it needs to be processed. + * timeout specifies the time to wait in system ticks. + * TIME_INFINITE means no timeout - wait forever for an event. + * TIME_IMMEDIATE means return immediately + * @note The GEvent buffer is staticly allocated within the GListener so the event does not + * need to be dynamicly freed however it will get overwritten by the next call to + * this routine. + * + * @param[in] pl The listener + * @param[in] timeout The timeout + * + * @return NULL on timeout + */ +GEvent *geventEventWait(GListener *pl, systime_t timeout); + +/* @brief Register a callback for an event on a listener from an assigned source. + * @details The type of the event should be checked (pevent->type) and then pevent should be typecast to the + * actual event type if it needs to be processed. + * + * @params[in] pl The Listener + * @params[in] fn The function to call back + * @params[in] param A parameter to pass the callback function + * + * @note The GEvent buffer is valid only during the time of the callback. The callback MUST NOT save + * a pointer to the buffer for use outside the callback. + * @note An existing callback function is de-registered by passing a NULL for 'fn'. Any existing + * callback function is replaced. Any thread currently waiting using geventEventWait will be sent the exit event. + * @note Callbacks occur in a thread context but stack space must be kept to a minumum and + * the callback must process quickly as all other events are performed on a single thread. + * @note In the callback function you should never call ANY event functions using your own GListener handle + * as it WILL create a deadlock and lock the system up. + * @note Applications should not use this call - geventEventWait() is the preferred mechanism for an + * application. This call is provided for GUI objects that may not have their own thread. + */ +void geventRegisterCallback(GListener *pl, GEventCallbackFn fn, void *param); + +/*---------- Source Functions --------------------------------------------*/ + +/** + * @brief Called by a source with a possible event to get a listener record. + * @details @p lastlr should be NULL on the first call and thereafter the result of the previous call. + * + * @param[in] gsh The source handler + * @param[in] lastlr The source listener + * + * @return NULL when there are no more listeners for this source + */ +GSourceListener *geventGetSourceListener(GSourceHandle gsh, GSourceListener *lastlr); + +/** + * @brief Get the event buffer from the GSourceListener. + * @details A NULL return allows the source to record (perhaps in glr->scrflags) that the listener + * has missed events. This can then be notified as part of the next event for the listener. + * The buffer can only be accessed untill the next call to geventGetSourceListener + * or geventSendEvent + * + * @param[in] psl The source listener + * + * @return NULL if the listener is not currently listening. + */ +GEvent *geventGetEventBuffer(GSourceListener *psl); + +/** + * @brief Called by a source to indicate the listener's event buffer has been filled. + * @details After calling this function the source must not reference in fields in the GSourceListener or the event buffer. + * + * @param[in] psl The source listener + */ +void geventSendEvent(GSourceListener *psl); + +/** + * @brief Detach any listener that has this source attached + * + * @param[in] gsh The source handle + */ +void geventDetachSourceListeners(GSourceHandle gsh); + +#ifdef __cplusplus +} +#endif + +#endif /* GFX_USE_GEVENT */ + +#endif /* _GEVENT_H */ +/** @} */ + diff --git a/include/gevent/options.h b/include/gevent/options.h index 78ec7610..4f841492 100644 --- a/include/gevent/options.h +++ b/include/gevent/options.h @@ -1,68 +1,55 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ - -/** - * @file include/gevent/options.h - * @brief GEVENT sub-system options header file. - * - * @addtogroup GEVENT - * @{ - */ - -#ifndef _GEVENT_OPTIONS_H -#define _GEVENT_OPTIONS_H - -/** - * @name GEVENT Functionality to be included - * @{ - */ - /** - * @brief Should routines assert() if they run out of resources. - * @details Defaults to FALSE. - * @details If FALSE the application must be prepared to handle these - * failures. - */ - #ifndef GEVENT_ASSERT_NO_RESOURCE - #define GEVENT_ASSERT_NO_RESOURCE FALSE - #endif -/** - * @} - * - * @name GEVENT Optional Sizing Parameters - * @{ - */ - /** - * @brief Defines the maximum size of an event status variable. - * @details Defaults to 32 bytes - */ - #ifndef GEVENT_MAXIMUM_SIZE - #define GEVENT_MAXIMUM_SIZE 32 - #endif - /** - * @brief Defines the maximum Source/Listener pairs in the system. - * @details Defaults to 32 - */ - #ifndef GEVENT_MAX_SOURCE_LISTENERS - #define GEVENT_MAX_SOURCE_LISTENERS 32 - #endif -/** @} */ - -#endif /* _GEVENT_OPTIONS_H */ -/** @} */ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ + +/** + * @file include/gevent/options.h + * @brief GEVENT sub-system options header file. + * + * @addtogroup GEVENT + * @{ + */ + +#ifndef _GEVENT_OPTIONS_H +#define _GEVENT_OPTIONS_H + +/** + * @name GEVENT Functionality to be included + * @{ + */ + /** + * @brief Should routines assert() if they run out of resources. + * @details Defaults to FALSE. + * @details If FALSE the application must be prepared to handle these + * failures. + */ + #ifndef GEVENT_ASSERT_NO_RESOURCE + #define GEVENT_ASSERT_NO_RESOURCE FALSE + #endif +/** + * @} + * + * @name GEVENT Optional Sizing Parameters + * @{ + */ + /** + * @brief Defines the maximum size of an event status variable. + * @details Defaults to 32 bytes + */ + #ifndef GEVENT_MAXIMUM_SIZE + #define GEVENT_MAXIMUM_SIZE 32 + #endif + /** + * @brief Defines the maximum Source/Listener pairs in the system. + * @details Defaults to 32 + */ + #ifndef GEVENT_MAX_SOURCE_LISTENERS + #define GEVENT_MAX_SOURCE_LISTENERS 32 + #endif +/** @} */ + +#endif /* _GEVENT_OPTIONS_H */ +/** @} */ diff --git a/include/gfx.h b/include/gfx.h index 4d212b2d..ba4a9167 100644 --- a/include/gfx.h +++ b/include/gfx.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/gfx.h diff --git a/include/gfx_rules.h b/include/gfx_rules.h index 1c32146c..b93ea8ae 100644 --- a/include/gfx_rules.h +++ b/include/gfx_rules.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/gfx_rules.h diff --git a/include/ginput/dial.h b/include/ginput/dial.h index 358e36cf..5f565a4d 100644 --- a/include/ginput/dial.h +++ b/include/ginput/dial.h @@ -1,36 +1,8 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/ginput/dial.h - * @brief GINPUT GFX User Input subsystem header file. - * - * @defgroup Dial Dial - * @ingroup GINPUT - * - * @details A dial provides a powerful way to navigate through menus - * on a display. - * - * @pre GFX_USE_GINPUT must be set to TRUE in your gfxconf.h - * @pre GINPUT_NEED_DIAL must be set to TRUE in your gfxconf.h + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: * - * @{ + * http://chibios-gfx.com/license.html */ #ifndef _GINPUT_DIAL_H #define _GINPUT_DIAL_H diff --git a/include/ginput/ginput.h b/include/ginput/ginput.h index 0fabd437..07a5e0b7 100644 --- a/include/ginput/ginput.h +++ b/include/ginput/ginput.h @@ -1,35 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/ginput/ginput.h - * @brief GINPUT GFX User Input subsystem header file. - * - * @addtogroup GINPUT - * - * @details GINPUT provides an easy and common interface to use different input devices - * such as touchscreens and mices. - * - * @pre GFX_USE_GINPUT must be set to TRUE in your gfxconf.h - * - * @{ - */ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ #ifndef _GINPUT_H #define _GINPUT_H diff --git a/include/ginput/keyboard.h b/include/ginput/keyboard.h index 1529d05d..2c00a6c6 100644 --- a/include/ginput/keyboard.h +++ b/include/ginput/keyboard.h @@ -1,30 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/ginput/keyboard.h - * @brief GINPUT GFX User Input subsystem header file. - * - * @defgroup Keyboard Keyboard - * @ingroup GINPUT - * @{ - */ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ #ifndef _GINPUT_KEYBOARD_H #define _GINPUT_KEYBOARD_H diff --git a/include/ginput/lld/dial.h b/include/ginput/lld/dial.h index 3efae04f..bdcd2c3b 100644 --- a/include/ginput/lld/dial.h +++ b/include/ginput/lld/dial.h @@ -1,29 +1,8 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/ginput/lld/dial.h - * @brief GINPUT header file for dial drivers. + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: * - * @defgroup Dial Dial - * @ingroup GINPUT - * @{ + * http://chibios-gfx.com/license.html */ #ifndef _LLD_GINPUT_DIAL_H diff --git a/include/ginput/lld/mouse.h b/include/ginput/lld/mouse.h index 046a06b1..111e8263 100644 --- a/include/ginput/lld/mouse.h +++ b/include/ginput/lld/mouse.h @@ -1,29 +1,8 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/ginput/lld/mouse.h - * @brief GINPUT LLD header file for mouse/touch drivers. + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: * - * @defgroup Mouse Mouse - * @ingroup GINPUT - * @{ + * http://chibios-gfx.com/license.html */ #ifndef _LLD_GINPUT_MOUSE_H diff --git a/include/ginput/lld/toggle.h b/include/ginput/lld/toggle.h index 1ccab366..34aafe32 100644 --- a/include/ginput/lld/toggle.h +++ b/include/ginput/lld/toggle.h @@ -1,30 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/ginput/lld/toggle.h - * @brief GINPUT header file for toggle drivers. - * - * @defgroup Toggle Toggle - * @ingroup GINPUT - * @{ - */ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ #ifndef _LLD_GINPUT_TOGGLE_H #define _LLD_GINPUT_TOGGLE_H diff --git a/include/ginput/mouse.h b/include/ginput/mouse.h index 7b798454..d49a7a97 100644 --- a/include/ginput/mouse.h +++ b/include/ginput/mouse.h @@ -1,37 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/ginput/mouse.h - * @brief GINPUT GFX User Input subsystem header file for mouse and touch. - * - * @defgroup Mouse Mouse - * @ingroup GINPUT - * - * @details GINPUT allows it to easily interface touchscreens and mices to - * your application. - * - * @pre GFX_USE_GINPUT must be set to TRUE in your gfxconf.h - * @pre GINPUT_NEED_MOUSE must be set to TRUE in your gfxconf.h - * - * @{ - */ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ #ifndef _GINPUT_MOUSE_H #define _GINPUT_MOUSE_H diff --git a/include/ginput/options.h b/include/ginput/options.h index 35797098..2f7938e2 100644 --- a/include/ginput/options.h +++ b/include/ginput/options.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/ginput/options.h diff --git a/include/ginput/toggle.h b/include/ginput/toggle.h index 888e397a..0910433b 100644 --- a/include/ginput/toggle.h +++ b/include/ginput/toggle.h @@ -1,37 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/ginput/toggle.h - * @brief GINPUT GFX User Input subsystem header file. - * - * @defgroup Toggle Toggle - * @ingroup GINPUT - * - * @details GINPUT allows it to interface toggle buttons easily to your - * application. - * - * @pre GFX_USE_GINPUT must be set to TRUE in your gfxconf.h - * @pre GINPUT_NEED_TOGGLE must be set to TRUE in your gfxconf.h - * - * @{ - */ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ #ifndef _GINPUT_TOGGLE_H #define _GINPUT_TOGGLE_H diff --git a/include/gmisc/gmisc.h b/include/gmisc/gmisc.h index 5dab5e85..7e471c72 100644 --- a/include/gmisc/gmisc.h +++ b/include/gmisc/gmisc.h @@ -1,29 +1,8 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/gmisc/gmisc.h - * @brief GMISC - Miscellaneous Routines header file. - * - * @addtogroup GAUDIN + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: * - * @{ + * http://chibios-gfx.com/license.html */ #ifndef _GMISC_H diff --git a/include/gmisc/options.h b/include/gmisc/options.h index 996f12af..ee58609e 100644 --- a/include/gmisc/options.h +++ b/include/gmisc/options.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/gmisc/options.h diff --git a/include/gtimer/gtimer.h b/include/gtimer/gtimer.h index e938c33a..acdda990 100644 --- a/include/gtimer/gtimer.h +++ b/include/gtimer/gtimer.h @@ -1,41 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/gtimer/gtimer.h - * @brief GTIMER GFX User Timer subsystem header file. - * - * @addtogroup GTIMER - * - * @details The reason why ChibiOS/GFX has it's own timer abstraction is because - * virtual timers provided by ChibiOS/RT are interrupt context only. - * While great for what they are designed for, they make coding of the input - * drivers much more complex. - * For non-performance critical drivers like these input drivers, it would also - * hog an in-ordinate amount of critical (interrupt locked) system time. - * This contrary to the goals of a real-time operating system. So a user-land - * (thread based) timer mechanism is also required. - * - * @pre GFX_USE_GTIMER must be set to TRUE in your gfxconf.h - * - * @{ - */ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ #ifndef _GTIMER_H #define _GTIMER_H diff --git a/include/gtimer/options.h b/include/gtimer/options.h index 7d7d55dc..7fb0d280 100644 --- a/include/gtimer/options.h +++ b/include/gtimer/options.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/gtimer/options.h diff --git a/include/gwin/button.h b/include/gwin/button.h index 3d54afbb..e56215fa 100644 --- a/include/gwin/button.h +++ b/include/gwin/button.h @@ -1,36 +1,8 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/gwin/button.h - * @brief GWIN Graphic window subsystem header file. - * - * @defgroup Button Button - * @ingroup GWIN + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: * - * @details GWIN allows it to easily create buttons with different styles - * and check for different meta states such as: PRESSED, CLICKED, - * RELEASED etc. - * - * @pre GFX_USE_GWIN must be set to TRUE in your gfxconf.h - * @pre GWIN_NEED_BUTTON must be set to TRUE in your gfxconf.h - * @{ + * http://chibios-gfx.com/license.html */ #ifndef _GWIN_BUTTON_H diff --git a/include/gwin/console.h b/include/gwin/console.h index c6d89db6..e1f0260f 100644 --- a/include/gwin/console.h +++ b/include/gwin/console.h @@ -1,37 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/gwin/console.h - * @brief GWIN Graphic window subsystem header file. - * - * @defgroup Console Console - * @ingroup GWIN - * - * @details GWIN allows it to create a console/terminal like window. - * You can simply use chprintf() to print to the terminal. - * - * @pre GFX_USE_GWIN must be set to TRUE in your gfxconf.h - * @pre GWIN_NEED_CONSOLE must be set to TRUE in your gfxconf.h - * - * @{ - */ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ #ifndef _GWIN_CONSOLE_H #define _GWIN_CONSOLE_H diff --git a/include/gwin/graph.h b/include/gwin/graph.h index 223ba27f..dea8d4ee 100644 --- a/include/gwin/graph.h +++ b/include/gwin/graph.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/gwin/graph.h diff --git a/include/gwin/gwin.h b/include/gwin/gwin.h index 3d994d0a..1c8672de 100644 --- a/include/gwin/gwin.h +++ b/include/gwin/gwin.h @@ -1,38 +1,8 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/gwin/gwin.h - * @brief GWIN Graphic window subsystem header file. - * - * @defgroup Window Window - * @ingroup GWIN - * - * @details GWIN provides a basic window manager which allows it to easily - * create and destroy different windows on runtime. Each window - * will have it's own properties such as colors, brushes as well as - * it's own drawing origin. - * Moving the windows around is not supported yet. - * - * @pre GFX_USE_GWIN must be set to TRUE in your gfxconf.h + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: * - * @{ + * http://chibios-gfx.com/license.html */ #ifndef _GWIN_H diff --git a/include/gwin/internal.h b/include/gwin/internal.h index ada8f611..fbd0d1c1 100644 --- a/include/gwin/internal.h +++ b/include/gwin/internal.h @@ -1,29 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/gwin/internal.h - * @brief GWIN Graphic window subsystem header file. - * - * @addtogroup GWIN - * @{ - */ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ #ifndef _GWIN_INTERNAL_H #define _GWIN_INTERNAL_H diff --git a/include/gwin/options.h b/include/gwin/options.h index e8d527e0..8d78a751 100644 --- a/include/gwin/options.h +++ b/include/gwin/options.h @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/gwin/options.h diff --git a/include/gwin/slider.h b/include/gwin/slider.h index 1943729f..8f38b504 100644 --- a/include/gwin/slider.h +++ b/include/gwin/slider.h @@ -1,34 +1,8 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file include/gwin/slider.h - * @brief GWIN Graphic window subsystem header file. - * - * @defgroup Slider Slider - * @ingroup GWIN - * - * @details Create sliders with different styles + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: * - * @pre GFX_USE_GWIN must be set to TRUE in your gfxconf.h - * @pre GWIN_NEED_SLIDER must be set to TRUE in your gfxconf.h - * @{ + * http://chibios-gfx.com/license.html */ #ifndef _GWIN_SLIDER_H diff --git a/include/tdisp/lld/tdisp_lld.h b/include/tdisp/lld/tdisp_lld.h index dbc57b11..f275199b 100644 --- a/include/tdisp/lld/tdisp_lld.h +++ b/include/tdisp/lld/tdisp_lld.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/tdisp/lld/tdisp_lld.h diff --git a/include/tdisp/options.h b/include/tdisp/options.h index 41292037..ddeeaf80 100644 --- a/include/tdisp/options.h +++ b/include/tdisp/options.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/tdisp/options.h diff --git a/include/tdisp/tdisp.h b/include/tdisp/tdisp.h index efcd285c..1a4044f0 100644 --- a/include/tdisp/tdisp.h +++ b/include/tdisp/tdisp.h @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file include/tdisp/tdisp.h diff --git a/src/gadc/gadc.c b/src/gadc/gadc.c index 40b901ae..ff1903c8 100644 --- a/src/gadc/gadc.c +++ b/src/gadc/gadc.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file src/gadc/gadc.c diff --git a/src/gaudin/gaudin.c b/src/gaudin/gaudin.c index 2fbe7a47..3a9d23b8 100644 --- a/src/gaudin/gaudin.c +++ b/src/gaudin/gaudin.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file src/gaudin/gaudin.c diff --git a/src/gaudout/gaudout.c b/src/gaudout/gaudout.c index 5c2e0657..3b4051ff 100644 --- a/src/gaudout/gaudout.c +++ b/src/gaudout/gaudout.c @@ -1,38 +1,25 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ - -/** - * @file src/gaudout/gaudout.c - * @brief GAUDOUT sub-system code. - * - * @addtogroup GAUDOUT - * @{ - */ -#include "ch.h" -#include "hal.h" -#include "gfx.h" - -#if GFX_USE_GAUDOUT || defined(__DOXYGEN__) - - #error "GAUDOUT: Not implemented yet" - -#endif /* GFX_USE_GAUDOUT */ -/** @} */ - +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ + +/** + * @file src/gaudout/gaudout.c + * @brief GAUDOUT sub-system code. + * + * @addtogroup GAUDOUT + * @{ + */ +#include "ch.h" +#include "hal.h" +#include "gfx.h" + +#if GFX_USE_GAUDOUT || defined(__DOXYGEN__) + + #error "GAUDOUT: Not implemented yet" + +#endif /* GFX_USE_GAUDOUT */ +/** @} */ + diff --git a/src/gdisp/fonts.c b/src/gdisp/fonts.c index a7c6d39a..f0d9f8fd 100644 --- a/src/gdisp/fonts.c +++ b/src/gdisp/fonts.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file src/gdisp/fonts.c diff --git a/src/gdisp/gdisp.c b/src/gdisp/gdisp.c index d548eae5..069bc577 100644 --- a/src/gdisp/gdisp.c +++ b/src/gdisp/gdisp.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file src/gdisp/gdisp.c diff --git a/src/gdisp/image.c b/src/gdisp/image.c index 061db5fe..ce4e1250 100644 --- a/src/gdisp/image.c +++ b/src/gdisp/image.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file src/gdisp/image.c diff --git a/src/gdisp/image_bmp.c b/src/gdisp/image_bmp.c index bab9b4e9..4f4084c9 100644 --- a/src/gdisp/image_bmp.c +++ b/src/gdisp/image_bmp.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file src/gdisp/image_bmp.c diff --git a/src/gdisp/image_gif.c b/src/gdisp/image_gif.c index 2672333f..f06dcca2 100644 --- a/src/gdisp/image_gif.c +++ b/src/gdisp/image_gif.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file src/gdisp/image_gif.c diff --git a/src/gdisp/image_jpg.c b/src/gdisp/image_jpg.c index e8b5eeeb..05c9ef37 100644 --- a/src/gdisp/image_jpg.c +++ b/src/gdisp/image_jpg.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file src/gdisp/image_jpg.c diff --git a/src/gdisp/image_native.c b/src/gdisp/image_native.c index 4a41e9c8..8c03e63e 100644 --- a/src/gdisp/image_native.c +++ b/src/gdisp/image_native.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file src/gdisp/image_native.c diff --git a/src/gdisp/image_png.c b/src/gdisp/image_png.c index 3dca3645..2ea59f8b 100644 --- a/src/gdisp/image_png.c +++ b/src/gdisp/image_png.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file src/gdisp/image_png.c diff --git a/src/gevent/gevent.c b/src/gevent/gevent.c index b93f1ea8..a8c7a63a 100644 --- a/src/gevent/gevent.c +++ b/src/gevent/gevent.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file src/gevent/gevent.c diff --git a/src/ginput/dial.c b/src/ginput/dial.c index 2f572cf8..c8bc7d0f 100644 --- a/src/ginput/dial.c +++ b/src/ginput/dial.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file src/ginput/dial.c diff --git a/src/ginput/keyboard.c b/src/ginput/keyboard.c index 145b66f1..26d90ba9 100644 --- a/src/ginput/keyboard.c +++ b/src/ginput/keyboard.c @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file src/ginput/keyboard.c diff --git a/src/ginput/mouse.c b/src/ginput/mouse.c index 4ad32359..82f54cae 100644 --- a/src/ginput/mouse.c +++ b/src/ginput/mouse.c @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file src/ginput/mouse.c diff --git a/src/ginput/toggle.c b/src/ginput/toggle.c index 5761279b..a2474c3e 100644 --- a/src/ginput/toggle.c +++ b/src/ginput/toggle.c @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file src/ginput/toggle.c diff --git a/src/gmisc/arrayops.c b/src/gmisc/arrayops.c index 8b2135a0..e5f06072 100644 --- a/src/gmisc/arrayops.c +++ b/src/gmisc/arrayops.c @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file src/gmisc/arrayops.c diff --git a/src/gtimer/gtimer.c b/src/gtimer/gtimer.c index e1f6bb8f..8d9fc073 100644 --- a/src/gtimer/gtimer.c +++ b/src/gtimer/gtimer.c @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file src/gtimer/gtimer.c diff --git a/src/gwin/button.c b/src/gwin/button.c index 74fe3080..47c060e1 100644 --- a/src/gwin/button.c +++ b/src/gwin/button.c @@ -1,30 +1,8 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file src/gwin/button.c - * @brief GWIN sub-system button code. + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: * - * @defgroup Button Button - * @ingroup GWIN - * - * @{ + * http://chibios-gfx.com/license.html */ #include "ch.h" diff --git a/src/gwin/console.c b/src/gwin/console.c index 6720e6b3..13482d25 100644 --- a/src/gwin/console.c +++ b/src/gwin/console.c @@ -1,31 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file src/gwin/console.c - * @brief GWIN sub-system console code. - * - * @defgroup Console Console - * @ingroup GWIN - * - * @{ - */ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ #include "ch.h" #include "hal.h" diff --git a/src/gwin/graph.c b/src/gwin/graph.c index eff42eb1..05480862 100644 --- a/src/gwin/graph.c +++ b/src/gwin/graph.c @@ -1,30 +1,8 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file src/gwin/graph.c - * @brief GWIN sub-system button code. + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: * - * @defgroup Graph Graph - * @ingroup GWIN - * - * @{ + * http://chibios-gfx.com/license.html */ #include "ch.h" diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c index 9f009fa1..70cc12ee 100644 --- a/src/gwin/gwin.c +++ b/src/gwin/gwin.c @@ -1,30 +1,8 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file src/gwin/gwin.c - * @brief GWIN sub-system code. + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: * - * @defgroup Window Window - * @ingroup GWIN - * - * @{ + * http://chibios-gfx.com/license.html */ #include "ch.h" diff --git a/src/gwin/slider.c b/src/gwin/slider.c index f535b35c..72421367 100644 --- a/src/gwin/slider.c +++ b/src/gwin/slider.c @@ -1,30 +1,8 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ -/** - * @file src/gwin/slider.c - * @brief GWIN sub-system slider code. + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: * - * @defgroup Slider Slider - * @ingroup GWIN - * - * @{ + * http://chibios-gfx.com/license.html */ #include "ch.h" diff --git a/src/tdisp/tdisp.c b/src/tdisp/tdisp.c index dab05cda..38199d72 100644 --- a/src/tdisp/tdisp.c +++ b/src/tdisp/tdisp.c @@ -1,22 +1,9 @@ -/* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ +/* + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ /** * @file src/tdisp/tdisp.c diff --git a/tools/file2c/src/file2c.c b/tools/file2c/src/file2c.c index 29b9da2f..45724413 100644 --- a/tools/file2c/src/file2c.c +++ b/tools/file2c/src/file2c.c @@ -1,22 +1,9 @@ /* - ChibiOS/GFX - Copyright (C) 2012, 2013 - Joel Bodenmann aka Tectu - - 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 . -*/ + * This file is subject to the terms of the GFX License, v1.0. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://chibios-gfx.com/license.html + */ #include #include -- cgit v1.2.3 From 321ba74fada5a669586d21a9777f627a77924047 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Fri, 3 May 2013 20:46:55 +0200 Subject: updated license.html --- license.html | 188 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 188 insertions(+) create mode 100644 license.html diff --git a/license.html b/license.html new file mode 100644 index 00000000..cac486b8 --- /dev/null +++ b/license.html @@ -0,0 +1,188 @@ + + + + + GFX License, version 1.0 + + + + +

GFX License
Version 1.0

+

1. Definitions

+
+
1.1. Works
+

means the library commonly known as GFX or ChibiOS-GFX or ChibiOS/GFX, in source code or binary form, linked or unlinked with an application or another library.

+
1.2. Contributor
+

means each individual or legal entity that creates, contributes to the creation of the Works.

+
1.3. Contribution
+

means Software of a particular Contributor that has been offered to form part of the Works.

+
1.4. Executable Form
+

means any form of the Works other than Source Code Form.

+
1.5. Application
+

means a work or software that combines the Works with other material, in a separate file or files whether in executable format or in library format, as Software or on a device.

+
1.6. License
+

means this document.

+
1.7. Modifications
+

means any of the following:

+
    +
  1. any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of the Works; or

  2. +
  3. any new file in Source Code Form that contains any part of the Works.

  4. +
+
+
1.8. Patent Claims of a Contributor
+

means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of its Contributions.

+
1.9. Source Code Form
+

means the form of the work preferred for making modifications.

+
1.10. You (or Your)
+

means an individual or a legal entity exercising rights under this License. For legal entities, You includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, control means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity.

+
1.11. License Owner
+

means Joel Bodenmann (joel@unormal.org) and Andrew Hannam (andrewh@inmarket.com.au). Both parties are joint and severely owners of the license.

+
1.12. Commercial Use
+

means any use of the Works that may result in income or equivalent benefit in any form. Examples of Commercial Use include; selling an Application or Device containing the Works, + offering paid support to modify the Works, selling a library containing the Works. Examples of use that are NOT Commercial Use include; using the Works for Education, use of the Works in hobbyist projects that have no expectation of income, use of the Works in building what will later become a Commercial Use product. + Note that Commercial Use does not the prototyping and preparation for income generating activities - only the income producing activity itself.

+
+ +

2. Non Commercial Use

+

2.1. Distribution of Source Form

+

If You distribute the Works in an Source Form then:

+
    +
  1. All distribution of the Works in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License; and

  2. +
  3. You must inform recipients that the Source Code Form of the Works is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter the recipients rights in the Source Code Form; and

  4. +
  5. Any modification to the Works must be contributed to the License Owners as per Section 4 prior to distribution; and

  6. +
  7. Source Code not forming part of the Works that are distributed in conjunction with the Works do not need to be contributed to the License Owners or use this License.

  8. +
+

2.2. Distribution of Executable Form

+

If You distribute the Works in an Executable Form then:

+
    +
  1. and You must inform recipients of the Executable Form that it contains the Works and how they can obtain a copy of the Works in Source Code Form from the License Owners master repository; and

  2. +
  3. Any modification to the Works must be contributed to the License Owners as per Section 4 prior to distribution; and

  4. +
  5. You may distribute such Executable Form under the terms of this License, or license it under different terms, provided that the license for the Executable Form does not allow for Commercial Use of the Works or attempt to limit or alter the recipients' rights in the Source Code Form under this License.

  6. +
+ +

3. Commercial Use

+

3.1. Commercial Use Agreement

+

A "Commercial Use Agreement" explicitly signed by the License Owner will override any specified terms of this License for the party to the agreement under the terms of the agreement. All other terms of this License will still apply.

+

3.2. Distribution

+

Other than as provided for in a signed "Commercial Use Agreement", where there is a Commercial Use involved or implied; you are not permitted to distribute the Works, in any form, either in Source Code or Executable Form, + either as software or on a device or in any other way.

+ +

4. Contributions

+

4.1. Contributor Grants

+

Each Contributor hereby irrevocably grants to the License Owner without fee or charge:

+
    +
  1. under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, relicense and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and

  2. +
  3. under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, relicense and otherwise transfer its Contributions.

  4. +
+

4.2. Effective Date

+

The licenses granted in Section 4.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first contributes or distributes such Contribution.

+

4.3. Limitations on Grant Scope

+

The grants made in this Section 4 are the only rights granted. No additional rights or licenses will be implied from the distribution or licensing of the Works under this License. Notwithstanding Section 4.1(b) above, no patent license is granted by a Contributor:

+
    +
  1. for any code that a Contributor has removed from Contribution; or

  2. +
  3. under Patent Claims infringed by the Works in the absence of its Contributions.

  4. +
+

This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the requirements in Section 4.4).

+

4.4. Representation

+

Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. Each Contributor accepts sole responsibility for the legal position of its Contribution and holds blameless the License Owners for such Contribution or any modification to it.

+

4.5. Deeming of Contributions

+

Each Contributor deems that by Contributing to the Works, through any method offered by the License Owners, irrespective of the license provided in the Contribution, is agreeing to the Contribution being licensed under this License with its Grants, Scope and Representation.

+

4.6. Additional Rights

+

A Contribution does not convey any extra distribution rights for the Contributor to the Works under this license.

+ + +

5. Notices

+

You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Works, except that You may alter any license notices to the extent required to remedy known factual inaccuracies.

+

6. Inability to Comply Due to Statute or Regulation

+

If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Works due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be Contributed to the License Owners and placed in a text file included with all distributions of the Works under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it.

+

7. Termination

+

7.1. The distribution rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License (a) provisionally, unless and until the License Owner explicitly and finally terminates Your grants, and (b) on an ongoing basis, if the License Owner fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance.

+

7.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that the License Owner directly or indirectly infringes any patent, then the rights granted to You by the License Owner for the Works shall terminate.

+

8. Disclaimer of Warranty

+

Covered Software is provided under this License on an as is basis, without warranty of any kind, either expressed, implied, or statutory, including, without limitation, warranties that the Works is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire risk as to the quality and performance of the Works is with You. Should any of the Works prove defective in any respect, You assume the cost of any necessary servicing, repair, or correction. This disclaimer of warranty constitutes an essential part of this License. No use of the Works is authorized under this License except under this disclaimer.

+

9. Limitation of Liability

+

Under no circumstances and under no legal theory, whether tort (including negligence), contract, or otherwise, shall the License Owner, any Contributor, or anyone who distributes the Works as permitted above, be liable to You for any direct, indirect, special, incidental, or consequential damages of any character including, without limitation, damages for lost profits, loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses, even if such party shall have been informed of the possibility of such damages.

+

10. Litigation

+

Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims.

+

11. Miscellaneous

+

This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor ro the License Owner.

+

12. Versions of the License

+

12.1. New Versions

+

The License Owner is the license steward. Except as provided in Section 12.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number.

+

12.2. Effect of New Versions

+

You may distribute the Works under the terms of the version of the License under which You originally received the Works, or under the terms of any subsequent version published by the license steward.

+

12.3. Modified Versions

+

If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the License Owner (except to note that such modified license differs from this License).

+ +

Exhibit A - Source Code Form License Notice

+
+/*
+ * This file is subject to the terms of the GFX License, v1.0. If a copy of
+ * the license was not distributed with this file, you can obtain one at:
+ *
+ *              http://chibios-gfx.com/license.html
+ */
+
+

If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice.

+ + -- cgit v1.2.3 From 4f1cb9ab34d6bec1c1b270d2defad877a4bace4b Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Fri, 3 May 2013 20:50:24 +0200 Subject: release v1.6 --- releases.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/releases.txt b/releases.txt index 97883367..3a12780c 100644 --- a/releases.txt +++ b/releases.txt @@ -2,7 +2,10 @@ *** Releases *** ***************************************************************************** -current release: 1.5 +current release: 1.6 + + +*** changes after 1.5 *** FEATURE: Added ILI9325 driver - Thanks to Chris van Dongen aka _Sjaak FEATURE: Added TDISP module FIX: tdispGotoXY() renamed to tdispSetCursor() -- cgit v1.2.3 From f476a97ce472068f0222ffaab3aeaf3a2c2e2684 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Fri, 3 May 2013 20:55:53 +0200 Subject: fixed release notes --- releases.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/releases.txt b/releases.txt index 3a12780c..b8d19525 100644 --- a/releases.txt +++ b/releases.txt @@ -29,6 +29,7 @@ FEATURE: Added gwinDraw() routine FEATURE: Added GINPUT Dial support and driver using GADC FEATURE: Simplified assigning inputs to buttons and sliders FIX: Some fixes for the HD44780 TDISP driver by the user 'Frysk' +FEATURE: Added ILI9481 by user 'Abhishek' *** changes after 1.4 *** -- cgit v1.2.3 From be61787daadcf8cc1e1f307fc48441949e5ec2c0 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Fri, 3 May 2013 23:39:13 +0200 Subject: doxygen version update --- Doxygenfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doxygenfile b/Doxygenfile index 295695d4..31c0eb7f 100644 --- a/Doxygenfile +++ b/Doxygenfile @@ -32,7 +32,7 @@ PROJECT_NAME = ChibiOS/GFX # This could be handy for archiving the generated documentation or # if some version control system is used. -PROJECT_NUMBER = 1.5 +PROJECT_NUMBER = 1.6 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer -- cgit v1.2.3