From 7bd852c98c52c306e3628acedc33149ebee3cff6 Mon Sep 17 00:00:00 2001
From: guanjiao <sqrgj@163.com>
Date: 星期六, 12 五月 2018 23:35:39 +0800
Subject: [PATCH] format all the code

---
 源码/核心板/Src/platform/lcd.c |   66 ++++++++++++++++----------------
 1 files changed, 33 insertions(+), 33 deletions(-)

diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/platform/lcd.c" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/platform/lcd.c"
index 00a8f8b..dd56657 100644
--- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/platform/lcd.c"
+++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/platform/lcd.c"
@@ -30,44 +30,44 @@
     int sleep = 0;
     //int j = 10000;
 
-//    if(rs_enable)
-//    {
-//        port_LCD_RS_set();
-//    }
-//    else
-//    {
-//        if(bodylength == 1)
-//        {
-//            if(bodyBuffer[0] & 0x3) //if this is command = 1 or 2 - exsecution time is > 1ms
-//                sleep = 1 ;
-//        }
-//        port_LCD_RS_clear();
-//    }
+    //    if(rs_enable)
+    //    {
+    //        port_LCD_RS_set();
+    //    }
+    //    else
+    //    {
+    //        if(bodylength == 1)
+    //        {
+    //            if(bodyBuffer[0] & 0x3) //if this is command = 1 or 2 - exsecution time is > 1ms
+    //                sleep = 1 ;
+    //        }
+    //        port_LCD_RS_clear();
+    //    }
 
-//    port_SPIy_clear_chip_select();  //CS low
+    //    port_SPIy_clear_chip_select();  //CS low
 
 
-//    //while(j--); //delay
+    //    //while(j--); //delay
 
-//    for(i=0; i<bodylength; i++)
-//    {
-//        port_SPIy_send_data(bodyBuffer[i]); //send data on the SPI
+    //    for(i=0; i<bodylength; i++)
+    //    {
+    //        port_SPIy_send_data(bodyBuffer[i]); //send data on the SPI
 
-//        while (port_SPIy_no_data()); //wait for rx buffer to fill
+    //        while (port_SPIy_no_data()); //wait for rx buffer to fill
 
-//        port_SPIy_receive_data(); //this clears RXNE bit
-//    }
+    //        port_SPIy_receive_data(); //this clears RXNE bit
+    //    }
 
-//    //j = 10000;
+    //    //j = 10000;
 
-//    port_LCD_RS_clear();
+    //    port_LCD_RS_clear();
 
-//    //while(j--); //delay
+    //    //while(j--); //delay
 
-//    port_SPIy_set_chip_select();  //CS high
+    //    port_SPIy_set_chip_select();  //CS high
 
-//    if(sleep)
-//        deca_sleep(2);
+    //    if(sleep)
+    //        deca_sleep(2);
 } // end writetoLCD()
 
 /*! ------------------------------------------------------------------------------------------------------------------
@@ -84,12 +84,12 @@
 {
     uint8 command;
     /* Return cursor home and clear screen. */
-//    command = 0x2;
-//    writetoLCD(1, 0, &command);
-//    command = 0x1;
-//    writetoLCD(1, 0, &command);
-//    /* Write the string to display. */
-//    writetoLCD(strlen(string), 1, (const uint8 *)string);
+    //    command = 0x2;
+    //    writetoLCD(1, 0, &command);
+    //    command = 0x1;
+    //    writetoLCD(1, 0, &command);
+    //    /* Write the string to display. */
+    //    writetoLCD(strlen(string), 1, (const uint8 *)string);
 }
 
 #endif

--
Gitblit v1.9.3