[Taranis] Last minute LCD driver major change!!! Not tested at all by me!

This commit is contained in:
bsongis@gmail.com
2013-07-05 10:06:43 +00:00
parent 0f2d097a43
commit 7501f9c403
3 changed files with 105 additions and 38 deletions
+4 -1
View File
@@ -11,6 +11,7 @@
*/
#include "../opentx.h"
#include "./STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/STM32F2xx_StdPeriph_Driver/inc/stm32f2xx_gpio.h"
/**
**********send command to lcd**************
@@ -38,6 +39,7 @@ void AspiCmd(u8 Command_Byte)
LCD_A0_LOW();
LCD_CLK_HIGH();
__no_operation();
LCD_NCS_LOW();
while (i--) {
@@ -51,6 +53,7 @@ void AspiCmd(u8 Command_Byte)
Command_Byte <<= 1;
LCD_CLK_HIGH();
__no_operation();
}
LCD_NCS_HIGH();
@@ -88,12 +91,12 @@ void AspiData(u8 Para_data)
LCD_A0_HIGH();
LCD_NCS_LOW();
while (i--) {
LCD_CLK_LOW();
if (Para_data&0x80)
LCD_MOSI_HIGH();
else
LCD_MOSI_LOW();
Para_data <<= 1;
LCD_CLK_LOW();
__no_operation();
LCD_CLK_HIGH();
__no_operation();