From 6ec920da09a91594581c6d1a8931e72792b73525 Mon Sep 17 00:00:00 2001 From: batt Date: Mon, 1 Oct 2007 18:59:27 +0000 Subject: [PATCH] Set to const col_address; add static assert check on array dimension. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@822 38d2e660-2303-0410-9eaa-f027e97ec537 --- drv/lcd_hd44.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drv/lcd_hd44.c b/drv/lcd_hd44.c index 01bd423d..31f2335d 100755 --- a/drv/lcd_hd44.c +++ b/drv/lcd_hd44.c @@ -14,6 +14,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 +112,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 +121,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 */ -- 2.25.1