浏览代码

Fix some comment formatting

Scott Lahteine 6 年前
父节点
当前提交
7a04eb3a8b

+ 2
- 2
Marlin/src/HAL/HAL_DUE/MarlinSerialUSB_Due.cpp 查看文件

@@ -143,8 +143,8 @@ void MarlinSerialUSB::write(const uint8_t c) {
143 143
 }
144 144
 
145 145
 /**
146
-* Imports from print.h
147
-*/
146
+ * Imports from print.h
147
+ */
148 148
 
149 149
 void MarlinSerialUSB::print(char c, int base) {
150 150
   print((long)c, base);

+ 17
- 18
Marlin/src/HAL/HAL_STM32/spi_pins.h 查看文件

@@ -1,26 +1,25 @@
1 1
 /**
2
-* Marlin 3D Printer Firmware
3
-* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
-*
5
-* This program is free software: you can redistribute it and/or modify
6
-* it under the terms of the GNU General Public License as published by
7
-* the Free Software Foundation, either version 3 of the License, or
8
-* (at your option) any later version.
9
-*
10
-* This program is distributed in the hope that it will be useful,
11
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
-* GNU General Public License for more details.
14
-*
15
-* You should have received a copy of the GNU General Public License
16
-* along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
-*
18
-*/
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * This program is free software: you can redistribute it and/or modify
6
+ * it under the terms of the GNU General Public License as published by
7
+ * the Free Software Foundation, either version 3 of the License, or
8
+ * (at your option) any later version.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+ * GNU General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU General Public License
16
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
+ *
18
+ */
19 19
 #pragma once
20 20
 
21 21
 /**
22 22
  * Define SPI Pins: SCK, MISO, MOSI, SS
23
- *
24 23
  */
25 24
 #ifndef SCK_PIN
26 25
   #define SCK_PIN   13

+ 22
- 28
Marlin/src/HAL/HAL_STM32F4/spi_pins.h 查看文件

@@ -1,41 +1,35 @@
1 1
 /**
2
-* Marlin 3D Printer Firmware
3
-* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
-*
5
-* This program is free software: you can redistribute it and/or modify
6
-* it under the terms of the GNU General Public License as published by
7
-* the Free Software Foundation, either version 3 of the License, or
8
-* (at your option) any later version.
9
-*
10
-* This program is distributed in the hope that it will be useful,
11
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
-* GNU General Public License for more details.
14
-*
15
-* You should have received a copy of the GNU General Public License
16
-* along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
-*
18
-*/
19
-
20
-#ifndef SPI_PINS_H_
21
-#define SPI_PINS_H_
22
-
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * This program is free software: you can redistribute it and/or modify
6
+ * it under the terms of the GNU General Public License as published by
7
+ * the Free Software Foundation, either version 3 of the License, or
8
+ * (at your option) any later version.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+ * GNU General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU General Public License
16
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
+ *
18
+ */
19
+#pragma once
23 20
 
24 21
 /**
25 22
  * Define SPI Pins: SCK, MISO, MOSI, SS
26
- *
27 23
  */
28 24
 #ifndef SCK_PIN
29
-    #define SCK_PIN   PA5
25
+  #define SCK_PIN   PA5
30 26
 #endif
31 27
 #ifndef MISO_PIN
32
-    #define MISO_PIN  PA6
28
+  #define MISO_PIN  PA6
33 29
 #endif
34 30
 #ifndef MOSI_PIN
35
-    #define MOSI_PIN  PA7
31
+  #define MOSI_PIN  PA7
36 32
 #endif
37 33
 #ifndef SS_PIN
38
-    #define SS_PIN    PA8
34
+  #define SS_PIN    PA8
39 35
 #endif
40
-
41
-#endif // SPI_PINS_H_

+ 18
- 23
Marlin/src/HAL/HAL_STM32F7/spi_pins.h 查看文件

@@ -1,32 +1,27 @@
1 1
 /**
2
-* Marlin 3D Printer Firmware
3
-* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
-*
5
-* This program is free software: you can redistribute it and/or modify
6
-* it under the terms of the GNU General Public License as published by
7
-* the Free Software Foundation, either version 3 of the License, or
8
-* (at your option) any later version.
9
-*
10
-* This program is distributed in the hope that it will be useful,
11
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
-* GNU General Public License for more details.
14
-*
15
-* You should have received a copy of the GNU General Public License
16
-* along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
-*
18
-*/
19
-
20
-#ifndef SPI_PINS_H_
21
-#define SPI_PINS_H_
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * This program is free software: you can redistribute it and/or modify
6
+ * it under the terms of the GNU General Public License as published by
7
+ * the Free Software Foundation, either version 3 of the License, or
8
+ * (at your option) any later version.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+ * GNU General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU General Public License
16
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
+ *
18
+ */
19
+#pragma once
22 20
 
23 21
 /**
24 22
  * Define SPI Pins: SCK, MISO, MOSI, SS
25
- *
26 23
  */
27 24
 #define SCK_PIN   PA5
28 25
 #define MISO_PIN  PA6
29 26
 #define MOSI_PIN  PA7
30 27
 #define SS_PIN    PA8
31
-
32
-#endif // SPI_PINS_H_

+ 10
- 10
Marlin/src/lcd/lcdprint_hd44780.cpp 查看文件

@@ -1010,16 +1010,16 @@ int lcd_put_wchar_max(wchar_t c, pixel_len_t max_length) {
1010 1010
 }
1011 1011
 
1012 1012
 /**
1013
-* @brief Draw a UTF-8 string
1014
-*
1015
-* @param utf8_str : the UTF-8 string
1016
-* @param cb_read_byte : the callback function to read one byte from the utf8_str (from RAM or ROM)
1017
-* @param max_length : the pixel length of the string allowed (or number of slots in HD44780)
1018
-*
1019
-* @return the number of pixels advanced
1020
-*
1021
-* Draw a UTF-8 string
1022
-*/
1013
+ * @brief Draw a UTF-8 string
1014
+ *
1015
+ * @param utf8_str : the UTF-8 string
1016
+ * @param cb_read_byte : the callback function to read one byte from the utf8_str (from RAM or ROM)
1017
+ * @param max_length : the pixel length of the string allowed (or number of slots in HD44780)
1018
+ *
1019
+ * @return the number of pixels advanced
1020
+ *
1021
+ * Draw a UTF-8 string
1022
+ */
1023 1023
 static int lcd_put_u8str_max_cb(const char * utf8_str, uint8_t (*cb_read_byte)(uint8_t * str), pixel_len_t max_length) {
1024 1024
   pixel_len_t ret = 0;
1025 1025
   uint8_t *p = (uint8_t *)utf8_str;

正在加载...
取消
保存