GLCD Library
A C Library for Embedded Applications
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
glcd_devices.h
Go to the documentation of this file.
1 
8 /*
9  Copyright (c) 2012, Andy Gock
10 
11  All rights reserved.
12 
13  Redistribution and use in source and binary forms, with or without
14  modification, are permitted provided that the following conditions are met:
15  * Redistributions of source code must retain the above copyright
16  notice, this list of conditions and the following disclaimer.
17  * Redistributions in binary form must reproduce the above copyright
18  notice, this list of conditions and the following disclaimer in the
19  documentation and/or other materials provided with the distribution.
20  * Neither the name of Andy Gock nor the
21  names of its contributors may be used to endorse or promote products
22  derived from this software without specific prior written permission.
23 
24  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
25  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27  DISCLAIMED. IN NO EVENT SHALL ANDY GOCK BE LIABLE FOR ANY
28  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
31  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 */
35 
36 #ifndef GLCD_DEVICES_H_
37 #define GLCD_DEVICES_H_
38 
39 #if defined(GLCD_DEVICE_AVR8)
40  #include <avr/io.h>
41 #elif defined(GLCD_DEVICE_LPC111X)
42  #include "LPC11xx.h"
43 #elif defined(GLCD_DEVICE_LPC11UXX)
44  #include "LPC11Uxx.h"
45 #elif defined(GLCD_DEVICE_STM32F0XX)
46  #include "STM32F0xx.h"
47 #else
48  #error "Device not supported"
49 #endif
50 
59 void glcd_init(void);
60 
61 #if !defined(GLCD_USE_PARALLEL)
62 
68  void glcd_spi_write(uint8_t c);
69 
70 #else
71  /* must be GLCD_USE_SPI */
72  void glcd_parallel_write(uint8_t c);
73 
74 #endif
75 
80 void glcd_reset(void);
81 
84 #endif /* GLCD_DEVICES_H_ */
void glcd_spi_write(uint8_t c)
Write a byte to the connected SPI slave.
void glcd_reset(void)
Reset the LCD.
Implmentation of NXP LPC11Uxx microcontrollers.
Functions specific to STM32 F0 ARM Cortex-M0 devices.
void glcd_init(void)
Initialise the LCD.