Kaynağa Gözat

Tweak HAL_adc_start_conversion

Scott Lahteine 7 yıl önce
ebeveyn
işleme
358656acc3

+ 1
- 1
Marlin/src/HAL/HAL_DUE/HAL_Due.cpp Dosyayı Görüntüle

@@ -112,7 +112,7 @@ int freeMemory() {
112 112
 // ADC
113 113
 // --------------------------------------------------------------------------
114 114
 
115
-void HAL_adc_start_conversion(uint8_t adc_pin) {
115
+void HAL_adc_start_conversion(const uint8_t adc_pin) {
116 116
   HAL_adc_result = analogRead(adc_pin);
117 117
 }
118 118
 

+ 1
- 1
Marlin/src/HAL/HAL_DUE/HAL_Due.h Dosyayı Görüntüle

@@ -150,7 +150,7 @@ inline void HAL_adc_init(void) {}//todo
150 150
 #define HAL_READ_ADC        HAL_adc_result
151 151
 
152 152
 
153
-void HAL_adc_start_conversion (uint8_t adc_pin);
153
+void HAL_adc_start_conversion(const uint8_t adc_pin);
154 154
 
155 155
 uint16_t HAL_adc_get_result(void);
156 156
 

+ 1
- 1
Marlin/src/HAL/HAL_LPC1768/HAL.cpp Dosyayı Görüntüle

@@ -113,7 +113,7 @@ void HAL_adc_enable_channel(int pin) {
113 113
   };
114 114
 }
115 115
 
116
-void HAL_adc_start_conversion(uint8_t adc_pin) {
116
+void HAL_adc_start_conversion(const uint8_t adc_pin) {
117 117
   if (adc_pin >= (NUM_ANALOG_INPUTS) || adc_pin_map[adc_pin].port == 0xFF) {
118 118
     usb_serial.printf("HAL: HAL_adc_start_conversion: no pinmap for %d\n", adc_pin);
119 119
     return;

+ 1
- 1
Marlin/src/HAL/HAL_LPC1768/HAL.h Dosyayı Görüntüle

@@ -91,7 +91,7 @@ uint8_t spiRec(uint32_t chan);
91 91
 
92 92
 void HAL_adc_init(void);
93 93
 void HAL_adc_enable_channel(int pin);
94
-void HAL_adc_start_conversion (uint8_t adc_pin);
94
+void HAL_adc_start_conversion(const uint8_t adc_pin);
95 95
 uint16_t HAL_adc_get_result(void);
96 96
 
97 97
 #endif // _HAL_LPC1768_H

+ 1
- 1
Marlin/src/HAL/HAL_TEENSY35_36/HAL_Teensy.h Dosyayı Görüntüle

@@ -122,7 +122,7 @@ void HAL_adc_init();
122 122
 
123 123
 #define HAL_ANALOG_SELECT(pin) NOOP;
124 124
 
125
-void HAL_adc_start_conversion(uint8_t adc_pin);
125
+void HAL_adc_start_conversion(const uint8_t adc_pin);
126 126
 
127 127
 uint16_t HAL_adc_get_result(void);
128 128
 

Loading…
İptal
Kaydet