Get rid of the redundant ATTR_NEVER_INLINE macro which translated to the same as...
[pub/USBasp.git] / Projects / SerialToLCD / Lib / HD44780.c
index d67dc6d..cd825f8 100644 (file)
@@ -1,13 +1,13 @@
 /*
              LUFA Library
 /*
              LUFA Library
-     Copyright (C) Dean Camera, 2012.
+     Copyright (C) Dean Camera, 2013.
 
   dean [at] fourwalledcubicle [dot] com
            www.lufa-lib.org
 */
 
 /*
 
   dean [at] fourwalledcubicle [dot] com
            www.lufa-lib.org
 */
 
 /*
-  Copyright 2012  Dean Camera (dean [at] fourwalledcubicle [dot] com)
+  Copyright 2013  Dean Camera (dean [at] fourwalledcubicle [dot] com)
   Copyright 2012  Simon Foster (simon.foster [at] inbox [dot] com)
 
   Permission to use, copy, modify, distribute, and sell this
   Copyright 2012  Simon Foster (simon.foster [at] inbox [dot] com)
 
   Permission to use, copy, modify, distribute, and sell this
@@ -19,7 +19,7 @@
   advertising or publicity pertaining to distribution of the
   software without specific, written prior permission.
 
   advertising or publicity pertaining to distribution of the
   software without specific, written prior permission.
 
-  The author disclaim all warranties with regard to this
+  The author disclaims all warranties with regard to this
   software, including all implied warranties of merchantability
   and fitness.  In no event shall the author be liable for any
   special, indirect or consequential damages or any damages
   software, including all implied warranties of merchantability
   and fitness.  In no event shall the author be liable for any
   special, indirect or consequential damages or any damages
@@ -83,11 +83,11 @@ static void HD44780_WriteByte(const uint8_t c)
 
 static void HD44780_PowerUp4Bit(void)
 {
 
 static void HD44780_PowerUp4Bit(void)
 {
-       /*  Wait for more than 40 ms after VCC rises to 2.7 V */
+       /* Wait for more than 40 ms after VCC rises to 2.7 V */
        _delay_ms(40);
        HD44780_WriteNibble(0x03);        // FN_SET 8-bit
 
        _delay_ms(40);
        HD44780_WriteNibble(0x03);        // FN_SET 8-bit
 
-       /*  Wait for more than 4.1 ms */
+       /* Wait for more than 4.1 ms */
        _delay_ms(5);
        HD44780_WriteNibble(0x03);        // FN_SET 8-bit
        
        _delay_ms(5);
        HD44780_WriteNibble(0x03);        // FN_SET 8-bit
        
@@ -95,16 +95,16 @@ static void HD44780_PowerUp4Bit(void)
        _delay_us(100);
        HD44780_WriteNibble(0x03);        // FN_SET 8-bit
        
        _delay_us(100);
        HD44780_WriteNibble(0x03);        // FN_SET 8-bit
        
-       /*  From now on we must allow 40us for each command */
+       /* From now on we must allow 40us for each command */
        _delay_us(50);
        HD44780_WriteNibble(0x02);        // FN_SET 4-bit
 
        _delay_us(50);
        HD44780_WriteNibble(0x02);        // FN_SET 4-bit
 
-       /*  The LCD is now in 4-bit mode so we can continue
-               using the 4-bit API */
+       /* The LCD is now in 4-bit mode so we can continue
+          using the 4-bit API */
        _delay_us(50);
 }
 
        _delay_us(50);
 }
 
-void HD44780_Initialise(void)
+void HD44780_Initialize(void)
 {
        PORTD &= ~ALL_BITS;
        DDRD  |=  ALL_BITS;
 {
        PORTD &= ~ALL_BITS;
        DDRD  |=  ALL_BITS;