OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [CORTEX_AT91SAM3U256_IAR/] [AT91Lib/] [drivers/] [lcd/] [draw.h] - Blame information for rev 580

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 580 jeremybenn
/* ----------------------------------------------------------------------------
2
 *         ATMEL Microcontroller Software Support
3
 * ----------------------------------------------------------------------------
4
 * Copyright (c) 2008, Atmel Corporation
5
 *
6
 * All rights reserved.
7
 *
8
 * Redistribution and use in source and binary forms, with or without
9
 * modification, are permitted provided that the following conditions are met:
10
 *
11
 * - Redistributions of source code must retain the above copyright notice,
12
 * this list of conditions and the disclaimer below.
13
 *
14
 * Atmel's name may not be used to endorse or promote products derived from
15
 * this software without specific prior written permission.
16
 *
17
 * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20
 * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23
 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 * ----------------------------------------------------------------------------
28
 */
29
 
30
//------------------------------------------------------------------------------
31
/// \unit
32
///
33
/// !!!Purpose
34
///
35
/// Provides simple drawing function to use with the LCD.
36
///
37
/// !!!Usage
38
///
39
/// -# Use LCDD_Fill to fill the LCD buffer with a specific color.
40
/// -# Draw a pixel on the screen at the specified coordinates using
41
///    LCDD_DrawPixel.
42
/// -# Draw a rectangle with LCDD_DrawRectangle.
43
/// -# Draw a string on the LCD with LCDD_DrawString.
44
//------------------------------------------------------------------------------
45
 
46
#ifndef DRAW_H
47
#define DRAW_H
48
 
49
//------------------------------------------------------------------------------
50
//         Global functions
51
//------------------------------------------------------------------------------
52
 
53
extern void LCDD_Fill(void *pBuffer, unsigned int color);
54
 
55
extern void LCDD_DrawPixel(
56
    void *pBuffer,
57
    unsigned int x,
58
    unsigned int y,
59
    unsigned int c);
60
 
61
extern void LCDD_DrawRectangle(
62
    void *pBuffer,
63
    unsigned int x,
64
    unsigned int y,
65
    unsigned int width,
66
    unsigned int height,
67
    unsigned int color);
68
 
69
extern void LCDD_DrawString(
70
    void *pBuffer,
71
    unsigned int x,
72
    unsigned int y,
73
    const char *pString,
74
    unsigned int color);
75
 
76
extern void LCDD_GetStringSize(
77
    const char *pString,
78
    unsigned int *pWidth,
79
    unsigned int *pHeight);
80
 
81
#endif //#ifndef DRAW_H

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.