Sfoglia il codice sorgente

Fix some comment formatting

Scott Lahteine 6 anni fa
parent
commit
7a04eb3a8b

+ 2
- 2
Marlin/src/HAL/HAL_DUE/MarlinSerialUSB_Due.cpp Vedi File

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

+ 17
- 18
Marlin/src/HAL/HAL_STM32/spi_pins.h Vedi File

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
 #pragma once
19
 #pragma once
20
 
20
 
21
 /**
21
 /**
22
  * Define SPI Pins: SCK, MISO, MOSI, SS
22
  * Define SPI Pins: SCK, MISO, MOSI, SS
23
- *
24
  */
23
  */
25
 #ifndef SCK_PIN
24
 #ifndef SCK_PIN
26
   #define SCK_PIN   13
25
   #define SCK_PIN   13

+ 22
- 28
Marlin/src/HAL/HAL_STM32F4/spi_pins.h Vedi File

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
  * Define SPI Pins: SCK, MISO, MOSI, SS
22
  * Define SPI Pins: SCK, MISO, MOSI, SS
26
- *
27
  */
23
  */
28
 #ifndef SCK_PIN
24
 #ifndef SCK_PIN
29
-    #define SCK_PIN   PA5
25
+  #define SCK_PIN   PA5
30
 #endif
26
 #endif
31
 #ifndef MISO_PIN
27
 #ifndef MISO_PIN
32
-    #define MISO_PIN  PA6
28
+  #define MISO_PIN  PA6
33
 #endif
29
 #endif
34
 #ifndef MOSI_PIN
30
 #ifndef MOSI_PIN
35
-    #define MOSI_PIN  PA7
31
+  #define MOSI_PIN  PA7
36
 #endif
32
 #endif
37
 #ifndef SS_PIN
33
 #ifndef SS_PIN
38
-    #define SS_PIN    PA8
34
+  #define SS_PIN    PA8
39
 #endif
35
 #endif
40
-
41
-#endif // SPI_PINS_H_

+ 18
- 23
Marlin/src/HAL/HAL_STM32F7/spi_pins.h Vedi File

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
  * Define SPI Pins: SCK, MISO, MOSI, SS
22
  * Define SPI Pins: SCK, MISO, MOSI, SS
25
- *
26
  */
23
  */
27
 #define SCK_PIN   PA5
24
 #define SCK_PIN   PA5
28
 #define MISO_PIN  PA6
25
 #define MISO_PIN  PA6
29
 #define MOSI_PIN  PA7
26
 #define MOSI_PIN  PA7
30
 #define SS_PIN    PA8
27
 #define SS_PIN    PA8
31
-
32
-#endif // SPI_PINS_H_

+ 10
- 10
Marlin/src/lcd/lcdprint_hd44780.cpp Vedi File

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
 static int lcd_put_u8str_max_cb(const char * utf8_str, uint8_t (*cb_read_byte)(uint8_t * str), pixel_len_t max_length) {
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
   pixel_len_t ret = 0;
1024
   pixel_len_t ret = 0;
1025
   uint8_t *p = (uint8_t *)utf8_str;
1025
   uint8_t *p = (uint8_t *)utf8_str;

Loading…
Annulla
Salva