Browse Source

Misc general spacing cleanup

Scott Lahteine 7 years ago
parent
commit
9fe7f53216

+ 1
- 1
Marlin/Configuration.h View File

1238
  * Enable one of the following items for a slower SPI transfer speed.
1238
  * Enable one of the following items for a slower SPI transfer speed.
1239
  * This may be required to resolve "volume init" errors or LCD issues.
1239
  * This may be required to resolve "volume init" errors or LCD issues.
1240
  */
1240
  */
1241
- 
1241
+
1242
 //#define SPI_SPEED SPI_HALF_SPEED
1242
 //#define SPI_SPEED SPI_HALF_SPEED
1243
 //#define SPI_SPEED SPI_QUARTER_SPEED
1243
 //#define SPI_SPEED SPI_QUARTER_SPEED
1244
 //#define SPI_SPEED SPI_EIGHTH_SPEED
1244
 //#define SPI_SPEED SPI_EIGHTH_SPEED

+ 1
- 1
Marlin/src/HAL/HAL_AVR/MarlinSerial.cpp View File

496
     }
496
     }
497
 
497
 
498
     void MarlinSerial::writeNoHandshake(const uint8_t c) {
498
     void MarlinSerial::writeNoHandshake(const uint8_t c) {
499
-      while (!TEST(M_UCSRxA, M_UDREx)) ;
499
+      while (!TEST(M_UCSRxA, M_UDREx)) { /* nada */ }
500
       M_UDRx = c;
500
       M_UDRx = c;
501
     }
501
     }
502
 
502
 

+ 4
- 4
Marlin/src/HAL/HAL_AVR/MarlinSerial.h View File

107
   #else
107
   #else
108
     typedef uint8_t ring_buffer_pos_t;
108
     typedef uint8_t ring_buffer_pos_t;
109
   #endif
109
   #endif
110
-  
110
+
111
   #if ENABLED(SERIAL_STATS_DROPPED_RX)
111
   #if ENABLED(SERIAL_STATS_DROPPED_RX)
112
     extern uint8_t rx_dropped_bytes;
112
     extern uint8_t rx_dropped_bytes;
113
   #endif
113
   #endif
114
 
114
 
115
   #if ENABLED(SERIAL_STATS_MAX_RX_QUEUED)
115
   #if ENABLED(SERIAL_STATS_MAX_RX_QUEUED)
116
     extern ring_buffer_pos_t rx_max_enqueued;
116
     extern ring_buffer_pos_t rx_max_enqueued;
117
-  #endif  
118
-  
117
+  #endif
118
+
119
   class MarlinSerial { //: public Stream
119
   class MarlinSerial { //: public Stream
120
 
120
 
121
     public:
121
     public:
140
 
140
 
141
       #if ENABLED(SERIAL_STATS_MAX_RX_QUEUED)
141
       #if ENABLED(SERIAL_STATS_MAX_RX_QUEUED)
142
         FORCE_INLINE static ring_buffer_pos_t rxMaxEnqueued() { return rx_max_enqueued; }
142
         FORCE_INLINE static ring_buffer_pos_t rxMaxEnqueued() { return rx_max_enqueued; }
143
-      #endif  
143
+      #endif
144
 
144
 
145
       static FORCE_INLINE void write(const char* str) { while (*str) write(*str++); }
145
       static FORCE_INLINE void write(const char* str) { while (*str) write(*str++); }
146
       static FORCE_INLINE void write(const uint8_t* buffer, size_t size) { while (size--) write(*buffer++); }
146
       static FORCE_INLINE void write(const uint8_t* buffer, size_t size) { while (size--) write(*buffer++); }

+ 1
- 1
Marlin/src/HAL/HAL_LPC1768/LPC1768_PWM.h View File

431
     ISR_table = active_table;                    // MR0 means new values could have been loaded so set everything
431
     ISR_table = active_table;                    // MR0 means new values could have been loaded so set everything
432
     if (PWM_table_swap) LPC_PWM1->MCR = LPC1768_PWM_interrupt_mask; // enable new PWM individual channel interrupts
432
     if (PWM_table_swap) LPC_PWM1->MCR = LPC1768_PWM_interrupt_mask; // enable new PWM individual channel interrupts
433
 
433
 
434
-    for (uint8_t i = 0; (i < NUM_PWMS) ; i++) {
434
+    for (uint8_t i = 0; i < NUM_PWMS; i++) {
435
       if(ISR_table[i].active_flag && !((ISR_table[i].logical_pin ==  11) ||
435
       if(ISR_table[i].active_flag && !((ISR_table[i].logical_pin ==  11) ||
436
                                        (ISR_table[i].logical_pin ==  4) ||
436
                                        (ISR_table[i].logical_pin ==  4) ||
437
                                        (ISR_table[i].logical_pin ==  6)))
437
                                        (ISR_table[i].logical_pin ==  6)))

+ 1
- 1
Marlin/src/HAL/persistent_store_api.h View File

10
 bool access_start();
10
 bool access_start();
11
 bool access_finish();
11
 bool access_finish();
12
 bool write_data(int &pos, const uint8_t *value, uint16_t size, uint16_t *crc);
12
 bool write_data(int &pos, const uint8_t *value, uint16_t size, uint16_t *crc);
13
-void read_data(int &pos, uint8_t* value, uint16_t size, uint16_t *crc) ;
13
+void read_data(int &pos, uint8_t* value, uint16_t size, uint16_t *crc);
14
 
14
 
15
 } // PersistentStore
15
 } // PersistentStore
16
 } // HAL
16
 } // HAL

+ 2
- 2
frameworks/CMSIS/LPC1768/driver/lpc17xx_systick.c View File

73
 	 * 1/SystemCoreClock * (2^24) * 1000 (ms)
73
 	 * 1/SystemCoreClock * (2^24) * 1000 (ms)
74
 	 */
74
 	 */
75
 	//check time value is available or not
75
 	//check time value is available or not
76
-	maxtime = (1<<24)/(SystemCoreClock / 1000) ;
76
+	maxtime = (1<<24)/(SystemCoreClock / 1000);
77
 	if(time > maxtime)
77
 	if(time > maxtime)
78
 		//Error loop
78
 		//Error loop
79
 		while(1);
79
 		while(1);
105
 	 * 1/freq * (2^24) * 1000 (ms)
105
 	 * 1/freq * (2^24) * 1000 (ms)
106
 	 */
106
 	 */
107
 	//check time value is available or not
107
 	//check time value is available or not
108
-	maxtime = (1<<24)/(freq / 1000) ;
108
+	maxtime = (1<<24)/(freq / 1000);
109
 	if (time>maxtime)
109
 	if (time>maxtime)
110
 		//Error Loop
110
 		//Error Loop
111
 		while(1);
111
 		while(1);

Loading…
Cancel
Save