X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Flcd_hd44.c;h=9c5c47797825685fe5081b485b3731187ee94daf;hb=950d7eddec58ba6c9cd82dc129e206c89be16e81;hp=01bd423d26214906c932785e4c6beef23814da75;hpb=398cd448c1dec51b2206e8485c9ed3a575949cb1;p=bertos.git diff --git a/drv/lcd_hd44.c b/drv/lcd_hd44.c old mode 100755 new mode 100644 index 01bd423d..9c5c4779 --- a/drv/lcd_hd44.c +++ b/drv/lcd_hd44.c @@ -1,8 +1,33 @@ /** * \file * * * \brief LM044L type LCD hardware module (impl.) @@ -14,6 +39,9 @@ /*#* *#* $Log$ + *#* Revision 1.5 2007/10/01 18:59:27 batt + *#* Set to const col_address; add static assert check on array dimension. + *#* *#* Revision 1.4 2007/10/01 10:46:09 batt *#* Add light LCD position computation. *#* @@ -109,7 +137,7 @@ static const uint8_t lcd_address[] = STATIC_ASSERT(countof(lcd_address) == LCD_ROWS * LCD_COLS); #else /* CONFIG_LCD_ADDRESS_FAST == 0 */ -static uint8_t col_address[] = +static const uint8_t col_address[] = { 0x80, 0xC0, @@ -118,7 +146,7 @@ static uint8_t col_address[] = 0xD4 #endif }; - +STATIC_ASSERT(countof(col_address) == LCD_ROWS); /** * Addresses of LCD display character positions, calculated runtime to save RAM */