Browse Source

Fix some spacing

Scott Lahteine 5 years ago
parent
commit
b18316dd37

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

@@ -117,7 +117,7 @@ void HAL_idletask(void) {
117 117
 
118 118
 void HAL_clear_reset_source(void) { }
119 119
 
120
-uint8_t HAL_get_reset_source (void) {
120
+uint8_t HAL_get_reset_source(void) {
121 121
   return rtc_get_reset_reason(1);
122 122
 }
123 123
 
@@ -154,7 +154,7 @@ void HAL_adc_init() {
154 154
   esp_adc_cal_characterize(ADC_UNIT_1, ADC_ATTEN_DB_11, ADC_WIDTH_BIT_12, V_REF, &characteristics);
155 155
 }
156 156
 
157
-void HAL_adc_start_conversion (uint8_t adc_pin) {
157
+void HAL_adc_start_conversion(uint8_t adc_pin) {
158 158
   uint32_t mv;
159 159
   esp_adc_cal_get_voltage((adc_channel_t)get_channel(adc_pin), &characteristics, &mv);
160 160
 

+ 2
- 2
Marlin/src/HAL/HAL_ESP32/HAL.h View File

@@ -97,7 +97,7 @@ extern uint16_t HAL_adc_result;
97 97
 void HAL_clear_reset_source (void);
98 98
 
99 99
 // reset reason
100
-uint8_t HAL_get_reset_source (void);
100
+uint8_t HAL_get_reset_source(void);
101 101
 
102 102
 void _delay_ms(int delay);
103 103
 
@@ -120,7 +120,7 @@ void HAL_adc_init(void);
120 120
 #define HAL_READ_ADC()      HAL_adc_result
121 121
 #define HAL_ADC_READY()     true
122 122
 
123
-void HAL_adc_start_conversion (uint8_t adc_pin);
123
+void HAL_adc_start_conversion(uint8_t adc_pin);
124 124
 
125 125
 #define GET_PIN_MAP_PIN(index) index
126 126
 #define GET_PIN_MAP_INDEX(pin) pin

+ 1
- 1
Marlin/src/HAL/HAL_STM32/HAL.cpp View File

@@ -120,7 +120,7 @@ void HAL_init(void) {
120 120
 
121 121
 void HAL_clear_reset_source(void) { __HAL_RCC_CLEAR_RESET_FLAGS(); }
122 122
 
123
-uint8_t HAL_get_reset_source (void) {
123
+uint8_t HAL_get_reset_source(void) {
124 124
   if (__HAL_RCC_GET_FLAG(RCC_FLAG_IWDGRST) != RESET) return RST_WATCHDOG;
125 125
   if (__HAL_RCC_GET_FLAG(RCC_FLAG_SFTRST) != RESET)  return RST_SOFTWARE;
126 126
   if (__HAL_RCC_GET_FLAG(RCC_FLAG_PINRST) != RESET)  return RST_EXTERNAL;

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

@@ -165,7 +165,7 @@ void HAL_init(void);
165 165
 void HAL_clear_reset_source (void);
166 166
 
167 167
 /** reset reason */
168
-uint8_t HAL_get_reset_source (void);
168
+uint8_t HAL_get_reset_source(void);
169 169
 
170 170
 void _delay_ms(const int delay);
171 171
 

+ 1
- 1
Marlin/src/HAL/HAL_STM32F4/HAL.cpp View File

@@ -79,7 +79,7 @@ void sei(void) { interrupts(); }
79 79
 
80 80
 void HAL_clear_reset_source(void) { __HAL_RCC_CLEAR_RESET_FLAGS(); }
81 81
 
82
-uint8_t HAL_get_reset_source (void) {
82
+uint8_t HAL_get_reset_source(void) {
83 83
   if (__HAL_RCC_GET_FLAG(RCC_FLAG_IWDGRST) != RESET) return RST_WATCHDOG;
84 84
 
85 85
   if (__HAL_RCC_GET_FLAG(RCC_FLAG_SFTRST) != RESET)  return RST_SOFTWARE;

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

@@ -170,7 +170,7 @@ extern uint16_t HAL_adc_result;
170 170
 void HAL_clear_reset_source (void);
171 171
 
172 172
 /** reset reason */
173
-uint8_t HAL_get_reset_source (void);
173
+uint8_t HAL_get_reset_source(void);
174 174
 
175 175
 void _delay_ms(const int delay);
176 176
 

+ 1
- 1
Marlin/src/HAL/HAL_STM32F7/HAL.cpp View File

@@ -79,7 +79,7 @@ void sei(void) { interrupts(); }
79 79
 
80 80
 void HAL_clear_reset_source(void) { __HAL_RCC_CLEAR_RESET_FLAGS(); }
81 81
 
82
-uint8_t HAL_get_reset_source (void) {
82
+uint8_t HAL_get_reset_source(void) {
83 83
   if (__HAL_RCC_GET_FLAG(RCC_FLAG_IWDGRST) != RESET)
84 84
     return RST_WATCHDOG;
85 85
 

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

@@ -157,7 +157,7 @@ extern uint16_t HAL_adc_result;
157 157
 void HAL_clear_reset_source (void);
158 158
 
159 159
 /** reset reason */
160
-uint8_t HAL_get_reset_source (void);
160
+uint8_t HAL_get_reset_source(void);
161 161
 
162 162
 void _delay_ms(const int delay);
163 163
 

Loading…
Cancel
Save