소스 검색

Some comment patches

Scott Lahteine 5 년 전
부모
커밋
93adb7e944

+ 4
- 4
Marlin/src/HAL/HAL_AVR/HAL_spi_AVR.cpp 파일 보기

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

+ 2
- 2
Marlin/src/HAL/HAL_DUE/Servo_Due.cpp 파일 보기

@@ -50,9 +50,9 @@
50 50
 
51 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 54
 /// Interrupt handler for the TC0 channel 1.
55
-//------------------------------------------------------------------------------
55
+// ------------------------
56 56
 void Servo_Handler(timer16_Sequence_t timer, Tc *pTc, uint8_t channel);
57 57
 
58 58
 #ifdef _useTimer1

+ 3
- 3
Marlin/src/HAL/HAL_DUE/usb/udi_cdc.c 파일 보기

@@ -458,7 +458,7 @@ void udi_cdc_data_sof_notify(void)
458 458
 }
459 459
 
460 460
 
461
-//-------------------------------------------------
461
+// ------------------------
462 462
 //------- Internal routines to control serial line
463 463
 
464 464
 static uint8_t udi_cdc_setup_to_port(void)
@@ -579,7 +579,7 @@ static void udi_cdc_serial_state_msg_sent(udd_ep_status_t status, iram_size_t n,
579 579
 }
580 580
 
581 581
 
582
-//-------------------------------------------------
582
+// ------------------------
583 583
 //------- Internal routines to process data transfer
584 584
 
585 585
 
@@ -781,7 +781,7 @@ static void udi_cdc_tx_send(uint8_t port)
781 781
 }
782 782
 
783 783
 
784
-//---------------------------------------------
784
+// ------------------------
785 785
 //------- Application interface
786 786
 
787 787
 

+ 5
- 5
Marlin/src/HAL/HAL_DUE/usb/udi_msc.c 파일 보기

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

+ 3
- 3
Marlin/src/HAL/HAL_DUE/usb/uotghs_device_due.c 파일 보기

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

+ 2
- 1
Marlin/src/HAL/HAL_ESP32/HAL.cpp 파일 보기

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

Loading…
취소
저장