Browse Source

Cleanup trailing whitespace

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

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

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

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

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

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

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

Loading…
Cancel
Save