Re #1875 and #1849: implemented LCD initialization for low temperatures. Initialization skipped in case of watchdog reset or boot-loader exit.
This commit is contained in:
@@ -54,8 +54,8 @@ void AspiCmd(u8 Command_Byte)
|
||||
LCD_A0_LOW();
|
||||
|
||||
LCD_CLK_HIGH();
|
||||
__no_operation();
|
||||
LCD_NCS_LOW();
|
||||
LCD_CLK_HIGH();
|
||||
LCD_NCS_LOW();
|
||||
|
||||
while (i--) {
|
||||
LCD_CLK_LOW();
|
||||
@@ -66,9 +66,11 @@ void AspiCmd(u8 Command_Byte)
|
||||
LCD_MOSI_LOW();
|
||||
|
||||
Command_Byte <<= 1;
|
||||
LCD_CLK_LOW(); \
|
||||
LCD_CLK_LOW(); \
|
||||
|
||||
LCD_CLK_HIGH();
|
||||
__no_operation();
|
||||
LCD_CLK_HIGH();
|
||||
}
|
||||
|
||||
LCD_NCS_HIGH();
|
||||
@@ -104,6 +106,7 @@ void AspiData(u8 Para_data)
|
||||
{
|
||||
int i=8;
|
||||
LCD_CLK_HIGH();
|
||||
LCD_CLK_HIGH();
|
||||
LCD_A0_HIGH();
|
||||
LCD_NCS_LOW();
|
||||
while (i--) {
|
||||
@@ -113,9 +116,11 @@ void AspiData(u8 Para_data)
|
||||
else
|
||||
LCD_MOSI_LOW();
|
||||
Para_data <<= 1;
|
||||
__no_operation();
|
||||
LCD_CLK_LOW();
|
||||
LCD_CLK_LOW();
|
||||
|
||||
LCD_CLK_HIGH();
|
||||
LCD_CLK_HIGH();
|
||||
__no_operation();
|
||||
}
|
||||
LCD_NCS_HIGH();
|
||||
LCD_A0_HIGH();
|
||||
|
||||
Reference in New Issue
Block a user