projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix up some missing target dependencies and output messages in the LUFA build system...
[pub/USBasp.git]
/
Projects
/
SerialToLCD
/
Lib
/
HD44780.h
diff --git
a/Projects/SerialToLCD/Lib/HD44780.h
b/Projects/SerialToLCD/Lib/HD44780.h
index
a800ae7
..
165e32a
100644
(file)
--- a/
Projects/SerialToLCD/Lib/HD44780.h
+++ b/
Projects/SerialToLCD/Lib/HD44780.h
@@
-43,21
+43,21
@@
#include <avr/power.h>
/* Macros: */
#include <avr/power.h>
/* Macros: */
- #define RS (
0x10) // PD4
- #define ENABLE (
0x80) // PD7
+ #define RS (
1 << 4) /* PD4 */
+ #define ENABLE (
1 << 7) /* PD7 */
- #define HI4_MASK
(0xF0)
- #define LO4_MASK
(0x0F) // PD0..3
+ #define HI4_MASK
0xF0
+ #define LO4_MASK
0x0F /* PD0-PD3 */
- #define ALL_BITS (RS
|ENABLE|
LO4_MASK)
+ #define ALL_BITS (RS
| ENABLE |
LO4_MASK)
- #define HI4(
c ) (( c & HI4_MASK ) >> 4
)
- #define LO4(
c ) (( c & LO4_MASK ) >> 0
)
+ #define HI4(
c) ((c & HI4_MASK) >> 4
)
+ #define LO4(
c) ((c & LO4_MASK) >> 0
)
#define CMD_DISPLAY_ON 0x0C
/* Function Prototypes: */
#define CMD_DISPLAY_ON 0x0C
/* Function Prototypes: */
- void HD44780_Initiali
s
e(void);
+ void HD44780_Initiali
z
e(void);
void HD44780_WriteData(const uint8_t c);
void HD44780_WriteCommand(const uint8_t c);
void HD44780_WriteData(const uint8_t c);
void HD44780_WriteCommand(const uint8_t c);