Sfoglia il codice sorgente

Cleanup trailing whitespace

@Bob-the-Kuhn — Please set your git options to remove trailing whitespace on commit.
Scott Lahteine 6 anni fa
parent
commit
dd19e74476

+ 13
- 13
Marlin/src/HAL/HAL_DUE/HAL_spi_Due.cpp Vedi File

@@ -532,7 +532,7 @@
532 532
       (void) spiTransferTx(token);
533 533
       spiTxBlock(buf,512);
534 534
       WRITE(SS_PIN, HIGH);
535
-      
535
+
536 536
   #else   // let calling routine control SDSS
537 537
     void spiBegin() {
538 538
       SET_OUTPUT(SS_PIN);
@@ -564,7 +564,7 @@
564 564
       spiTxBlock(buf,512);
565 565
 
566 566
     #endif
567
-  
567
+
568 568
   }
569 569
 
570 570
   /**
@@ -602,7 +602,7 @@
602 602
 
603 603
     #if MB(ALLIGATOR)
604 604
       WRITE(SS_PIN, HIGH);
605
-    #endif  
605
+    #endif
606 606
     WRITE(MOSI_PIN, HIGH);
607 607
     WRITE(SCK_PIN, LOW);
608 608
   }
@@ -616,11 +616,11 @@
616 616
 
617 617
 #else
618 618
 
619
-  #if MB(ALLIGATOR)  
620
-    
619
+  #if MB(ALLIGATOR)
620
+
621 621
     // slave selects controlled by SPI controller
622 622
     // doesn't support changing SPI speeds for SD card
623
-      
623
+
624 624
     // --------------------------------------------------------------------------
625 625
     // hardware SPI
626 626
     // --------------------------------------------------------------------------
@@ -666,15 +666,15 @@
666 666
           WRITE(SPI_FLASH_CS, HIGH );
667 667
           WRITE(SS_PIN, HIGH );
668 668
         #endif // MB(ALLIGATOR)
669
-        
669
+
670 670
         OUT_WRITE(SDSS,0);
671
-  
671
+
672 672
         PIO_Configure(
673 673
           g_APinDescription[SPI_PIN].pPort,
674 674
           g_APinDescription[SPI_PIN].ulPinType,
675 675
           g_APinDescription[SPI_PIN].ulPin,
676 676
           g_APinDescription[SPI_PIN].ulPinConfiguration);
677
-         
677
+
678 678
         spiInit(1);
679 679
         spiInitMaded = true;
680 680
       }
@@ -824,7 +824,7 @@
824 824
     }
825 825
 
826 826
   #else  // U8G compatible hardware SPI
827
- 
827
+
828 828
     void spiInit(uint8_t spiRate = 6 ) {  // default to slowest rate if not specified)
829 829
       // 8.4 MHz, 4 MHz, 2 MHz, 1 MHz, 0.5 MHz, 0.329 MHz, 0.329 MHz
830 830
       int spiDueDividors[] = { 10, 21, 42, 84, 168, 255, 255 };
@@ -849,7 +849,7 @@
849 849
 
850 850
       /* SPI mode 0, 8 Bit data transfer, baud rate */
851 851
       SPI0->SPI_CSR[0] = SPI_CSR_SCBR(spiDueDividors[spiRate]) | 1;
852
-    }     
852
+    }
853 853
 
854 854
     static uint8_t spiTransfer(uint8_t data) {
855 855
 
@@ -897,8 +897,8 @@
897 897
       spiTransfer(token);
898 898
       for (uint16_t i = 0; i < 512; i++)
899 899
         spiTransfer(buf[i]);
900
-    }  
901
-      
900
+    }
901
+
902 902
   #endif  //MB(ALLIGATOR)
903 903
 #endif // ENABLED(SOFTWARE_SPI)
904 904
 

+ 2
- 2
Marlin/src/pins/pins_DUE3DOM_MINI.h Vedi File

@@ -156,7 +156,7 @@
156 156
     #define BTN_ENC         37
157 157
 
158 158
     #define BEEPER_PIN      -1
159
-    
159
+
160 160
    #elif ENABLED(MINIPANEL)
161 161
     #define BTN_EN1         52
162 162
     #define BTN_EN2         50
@@ -166,6 +166,6 @@
166 166
     #define BEEPER_PIN      41
167 167
     #define DOGLCD_A0       46
168 168
     #define DOGLCD_CS       45
169
-    
169
+
170 170
   #endif // SPARK_FULL_GRAPHICS
171 171
 #endif // ULTRA_LCD

+ 3
- 5
Marlin/src/pins/pins_RAMPS_FD_V1.h Vedi File

@@ -141,15 +141,13 @@
141 141
 //
142 142
 #if ENABLED(ULTRA_LCD)
143 143
   // ramps-fd lcd adaptor
144
-  
145
-  
144
+
146 145
   #define BEEPER_PIN          37
147 146
   #define BTN_EN1             33
148 147
   #define BTN_EN2             31
149 148
   #define BTN_ENC             35
150 149
   #define SD_DETECT_PIN       49
151 150
 
152
-  
153 151
   #if ENABLED(NEWPANEL)
154 152
     #define LCD_PINS_RS         16
155 153
     #define LCD_PINS_ENABLE     17
@@ -158,11 +156,11 @@
158 156
     #define LCD_PINS_D6         27
159 157
     #define LCD_PINS_D7         29
160 158
   #endif
161
-  
159
+
162 160
   #if ENABLED(MINIPANEL)
163 161
     #define DOGLCD_CS           25
164 162
     #define DOGLCD_A0           27
165
-  #endif  
163
+  #endif
166 164
 #endif // ULTRA_LCD
167 165
 
168 166
 #if ENABLED(HAVE_TMC2208)

Loading…
Annulla
Salva