aboutsummaryrefslogtreecommitdiff
path: root/lib/lufa/Projects/SerialToLCD/Lib/HD44780.h
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2019-08-02 14:02:40 -0700
committerskullydazed <skullydazed@users.noreply.github.com>2019-08-30 15:01:52 -0700
commitcf4575b94a3c65e6535a159fc71fc885aebc2620 (patch)
tree2354f2b7a200e02246a564afefedc32357e62b8e /lib/lufa/Projects/SerialToLCD/Lib/HD44780.h
parent75ee8df19e0f14ba466f41ab673dde2fe2fdae9c (diff)
downloadqmk_firmware-cf4575b94a3c65e6535a159fc71fc885aebc2620.tar.gz
qmk_firmware-cf4575b94a3c65e6535a159fc71fc885aebc2620.zip
Fix the LUFA lib to use a submodule instead of just files (#6245)
* Remove LUFA files * Update descriptions for newer version of LUFA * Create PR6245.md * Fix CDC(Serial) type errors * Fix missed merge conflict for AUDIO_DTYPE_CSInterface
Diffstat (limited to 'lib/lufa/Projects/SerialToLCD/Lib/HD44780.h')
-rw-r--r--lib/lufa/Projects/SerialToLCD/Lib/HD44780.h64
1 files changed, 0 insertions, 64 deletions
diff --git a/lib/lufa/Projects/SerialToLCD/Lib/HD44780.h b/lib/lufa/Projects/SerialToLCD/Lib/HD44780.h
deleted file mode 100644
index 012803785..000000000
--- a/lib/lufa/Projects/SerialToLCD/Lib/HD44780.h
+++ /dev/null
@@ -1,64 +0,0 @@
1/*
2 LUFA Library
3 Copyright (C) Dean Camera, 2017.
4
5 dean [at] fourwalledcubicle [dot] com
6 www.lufa-lib.org
7*/
8
9/*
10 Copyright 2017 Dean Camera (dean [at] fourwalledcubicle [dot] com)
11 Copyright 2012 Simon Foster (simon.foster [at] inbox [dot] com)
12
13 Permission to use, copy, modify, distribute, and sell this
14 software and its documentation for any purpose is hereby granted
15 without fee, provided that the above copyright notice appear in
16 all copies and that both that the copyright notice and this
17 permission notice and warranty disclaimer appear in supporting
18 documentation, and that the name of the author not be used in
19 advertising or publicity pertaining to distribution of the
20 software without specific, written prior permission.
21
22 The author disclaims all warranties with regard to this
23 software, including all implied warranties of merchantability
24 and fitness. In no event shall the author be liable for any
25 special, indirect or consequential damages or any damages
26 whatsoever resulting from loss of use, data or profits, whether
27 in an action of contract, negligence or other tortious action,
28 arising out of or in connection with the use or performance of
29 this software.
30*/
31
32/** \file
33 *
34 * Header file for HD44780.c.
35 */
36
37#ifndef _HD44780_H_
38#define _HD44780_H_
39
40 /* Includes: */
41 #include <avr/io.h>
42 #include <util/delay.h>
43 #include <avr/power.h>
44
45 /* Macros: */
46 #define RS (1 << 4) /* PD4 */
47 #define ENABLE (1 << 7) /* PD7 */
48
49 #define HI4_MASK 0xF0
50 #define LO4_MASK 0x0F /* PD0-PD3 */
51
52 #define ALL_BITS (RS | ENABLE | LO4_MASK)
53
54 #define HI4(c) ((c & HI4_MASK) >> 4)
55 #define LO4(c) ((c & LO4_MASK) >> 0)
56
57 #define CMD_DISPLAY_ON 0x0C
58
59 /* Function Prototypes: */
60 void HD44780_Initialize(void);
61 void HD44780_WriteData(const uint8_t c);
62 void HD44780_WriteCommand(const uint8_t c);
63
64#endif