Cosmetics

This commit is contained in:
bsongis@gmail.com
2013-05-07 16:20:20 +00:00
parent 20a9369f2f
commit 1f97f644e9
2 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -624,7 +624,7 @@ ifeq ($(PCB), TARANIS)
ifeq ($(HUBSAN), YES) ifeq ($(HUBSAN), YES)
CPPDEFS += -DHUBSAN CPPDEFS += -DHUBSAN
CPPSRC += protocols/hubsan.cpp CPPSRC += protocols/hubsan.cpp
# SRC += targets/sky9x/syscalls.c CPPSRC += targets/taranis/a7105_driver.cpp
endif endif
endif endif
+17 -17
View File
@@ -40,18 +40,19 @@ void AspiCmd(u8 Command_Byte)
LCD_CLK_HIGH(); LCD_CLK_HIGH();
LCD_NCS_LOW(); LCD_NCS_LOW();
while (i--) while (i--) {
{ LCD_CLK_LOW();
LCD_CLK_LOW();
if(Command_Byte&0x80)
{
LCD_MOSI_HIGH();
}
else LCD_MOSI_LOW();
Command_Byte=Command_Byte<<1; if (Command_Byte&0x80)
LCD_CLK_HIGH(); LCD_MOSI_HIGH();
else
LCD_MOSI_LOW();
Command_Byte <<= 1;
LCD_CLK_HIGH();
} }
LCD_NCS_HIGH(); LCD_NCS_HIGH();
LCD_A0_HIGH(); LCD_A0_HIGH();
} }
@@ -86,13 +87,12 @@ void AspiData(u8 Para_data)
LCD_CLK_HIGH(); LCD_CLK_HIGH();
LCD_A0_HIGH(); LCD_A0_HIGH();
LCD_NCS_LOW(); LCD_NCS_LOW();
while (i--) while (i--) {
{ if (Para_data&0x80)
if(Para_data&0x80) LCD_MOSI_HIGH();
{ else
LCD_MOSI_HIGH(); LCD_MOSI_LOW();
}else LCD_MOSI_LOW(); Para_data <<= 1;
Para_data<<=1;
LCD_CLK_LOW(); LCD_CLK_LOW();
__no_operation(); __no_operation();
LCD_CLK_HIGH(); LCD_CLK_HIGH();