Browse Source

Some comment patches

Scott Lahteine 5 years ago
parent
commit
93adb7e944

+ 4
- 4
Marlin/src/HAL/HAL_AVR/HAL_spi_AVR.cpp View File

53
 
53
 
54
 #if NONE(SOFTWARE_SPI, FORCE_SOFT_SPI)
54
 #if NONE(SOFTWARE_SPI, FORCE_SOFT_SPI)
55
 
55
 
56
-  //------------------------------------------------------------------------------
56
+  // ------------------------
57
   // Hardware SPI
57
   // Hardware SPI
58
-  //------------------------------------------------------------------------------
58
+  // ------------------------
59
 
59
 
60
   // make sure SPCR rate is in expected bits
60
   // make sure SPCR rate is in expected bits
61
   #if (SPR0 != 0 || SPR1 != 1)
61
   #if (SPR0 != 0 || SPR1 != 1)
177
 
177
 
178
 #else // SOFTWARE_SPI || FORCE_SOFT_SPI
178
 #else // SOFTWARE_SPI || FORCE_SOFT_SPI
179
 
179
 
180
-  //------------------------------------------------------------------------------
180
+  // ------------------------
181
   // Software SPI
181
   // Software SPI
182
-  //------------------------------------------------------------------------------
182
+  // ------------------------
183
 
183
 
184
   // nop to tune soft SPI timing
184
   // nop to tune soft SPI timing
185
   #define nop asm volatile ("\tnop\n")
185
   #define nop asm volatile ("\tnop\n")

+ 2
- 2
Marlin/src/HAL/HAL_DUE/Servo_Due.cpp View File

50
 
50
 
51
 static volatile int8_t Channel[_Nbr_16timers];              // counter for the servo being pulsed for each timer (or -1 if refresh interval)
51
 static volatile int8_t Channel[_Nbr_16timers];              // counter for the servo being pulsed for each timer (or -1 if refresh interval)
52
 
52
 
53
-//------------------------------------------------------------------------------
53
+// ------------------------
54
 /// Interrupt handler for the TC0 channel 1.
54
 /// Interrupt handler for the TC0 channel 1.
55
-//------------------------------------------------------------------------------
55
+// ------------------------
56
 void Servo_Handler(timer16_Sequence_t timer, Tc *pTc, uint8_t channel);
56
 void Servo_Handler(timer16_Sequence_t timer, Tc *pTc, uint8_t channel);
57
 
57
 
58
 #ifdef _useTimer1
58
 #ifdef _useTimer1

+ 3
- 3
Marlin/src/HAL/HAL_DUE/usb/udi_cdc.c View File

458
 }
458
 }
459
 
459
 
460
 
460
 
461
-//-------------------------------------------------
461
+// ------------------------
462
 //------- Internal routines to control serial line
462
 //------- Internal routines to control serial line
463
 
463
 
464
 static uint8_t udi_cdc_setup_to_port(void)
464
 static uint8_t udi_cdc_setup_to_port(void)
579
 }
579
 }
580
 
580
 
581
 
581
 
582
-//-------------------------------------------------
582
+// ------------------------
583
 //------- Internal routines to process data transfer
583
 //------- Internal routines to process data transfer
584
 
584
 
585
 
585
 
781
 }
781
 }
782
 
782
 
783
 
783
 
784
-//---------------------------------------------
784
+// ------------------------
785
 //------- Application interface
785
 //------- Application interface
786
 
786
 
787
 
787
 

+ 5
- 5
Marlin/src/HAL/HAL_DUE/usb/udi_msc.c View File

457
 }
457
 }
458
 
458
 
459
 
459
 
460
-//---------------------------------------------
460
+// ------------------------
461
 //------- Routines to process CBW packet
461
 //------- Routines to process CBW packet
462
 
462
 
463
 static void udi_msc_cbw_invalid(void)
463
 static void udi_msc_cbw_invalid(void)
613
 }
613
 }
614
 
614
 
615
 
615
 
616
-//---------------------------------------------
616
+// ------------------------
617
 //------- Routines to process small data packet
617
 //------- Routines to process small data packet
618
 
618
 
619
 static void udi_msc_data_send(uint8_t * buffer, uint8_t buf_size)
619
 static void udi_msc_data_send(uint8_t * buffer, uint8_t buf_size)
645
 }
645
 }
646
 
646
 
647
 
647
 
648
-//---------------------------------------------
648
+// ------------------------
649
 //------- Routines to process CSW packet
649
 //------- Routines to process CSW packet
650
 
650
 
651
 static void udi_msc_csw_process(void)
651
 static void udi_msc_csw_process(void)
691
 }
691
 }
692
 
692
 
693
 
693
 
694
-//---------------------------------------------
694
+// ------------------------
695
 //------- Routines manage sense data
695
 //------- Routines manage sense data
696
 
696
 
697
 static void udi_msc_clear_sense(void)
697
 static void udi_msc_clear_sense(void)
757
 }
757
 }
758
 
758
 
759
 
759
 
760
-//---------------------------------------------
760
+// ------------------------
761
 //------- Routines manage SCSI Commands
761
 //------- Routines manage SCSI Commands
762
 
762
 
763
 static void udi_msc_spc_requestsense(void)
763
 static void udi_msc_spc_requestsense(void)

+ 3
- 3
Marlin/src/HAL/HAL_DUE/usb/uotghs_device_due.c View File

506
 //@}
506
 //@}
507
 
507
 
508
 
508
 
509
-//--------------------------------------------------------
509
+// ------------------------
510
 //--- INTERNAL ROUTINES TO MANAGED GLOBAL EVENTS
510
 //--- INTERNAL ROUTINES TO MANAGED GLOBAL EVENTS
511
 
511
 
512
 /**
512
 /**
1307
 
1307
 
1308
 
1308
 
1309
 
1309
 
1310
-//--------------------------------------------------------
1310
+// ------------------------
1311
 //--- INTERNAL ROUTINES TO MANAGED THE CONTROL ENDPOINT
1311
 //--- INTERNAL ROUTINES TO MANAGED THE CONTROL ENDPOINT
1312
 
1312
 
1313
 static void udd_reset_ep_ctrl(void)
1313
 static void udd_reset_ep_ctrl(void)
1729
 }
1729
 }
1730
 
1730
 
1731
 
1731
 
1732
-//--------------------------------------------------------
1732
+// ------------------------
1733
 //--- INTERNAL ROUTINES TO MANAGED THE BULK/INTERRUPT/ISOCHRONOUS ENDPOINTS
1733
 //--- INTERNAL ROUTINES TO MANAGED THE BULK/INTERRUPT/ISOCHRONOUS ENDPOINTS
1734
 
1734
 
1735
 #if (0 != USB_DEVICE_MAX_EP)
1735
 #if (0 != USB_DEVICE_MAX_EP)

+ 2
- 1
Marlin/src/HAL/HAL_ESP32/HAL.cpp View File

46
 #endif
46
 #endif
47
 
47
 
48
 // ------------------------
48
 // ------------------------
49
-// Externals
49
+// Externs
50
 // ------------------------
50
 // ------------------------
51
 
51
 
52
 portMUX_TYPE spinlock = portMUX_INITIALIZER_UNLOCKED;
52
 portMUX_TYPE spinlock = portMUX_INITIALIZER_UNLOCKED;
177
   // Calculate ADC characteristics (i.e., gain and offset factors for each attenuation level)
177
   // Calculate ADC characteristics (i.e., gain and offset factors for each attenuation level)
178
   for (int i = 0; i < ADC_ATTEN_MAX; i++) {
178
   for (int i = 0; i < ADC_ATTEN_MAX; i++) {
179
     esp_adc_cal_characterize(ADC_UNIT_1, (adc_atten_t)i, ADC_WIDTH_BIT_12, V_REF, &characteristics[i]);
179
     esp_adc_cal_characterize(ADC_UNIT_1, (adc_atten_t)i, ADC_WIDTH_BIT_12, V_REF, &characteristics[i]);
180
+
180
     // Change attenuation 100mV below the calibrated threshold
181
     // Change attenuation 100mV below the calibrated threshold
181
     thresholds[i] = esp_adc_cal_raw_to_voltage(4095, &characteristics[i]);
182
     thresholds[i] = esp_adc_cal_raw_to_voltage(4095, &characteristics[i]);
182
   }
183
   }

Loading…
Cancel
Save