Quellcode durchsuchen

🩹 Use `#pragma once` in pins files

Scott Lahteine vor 3 Jahren
Ursprung
Commit
9bf5cddb46

+ 1
- 0
Marlin/src/pins/mega/pins_PICA.h Datei anzeigen

19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
  *
20
  *
21
  */
21
  */
22
+#pragma once
22
 
23
 
23
 /**
24
 /**
24
  * Arduino Mega with PICA pin assignments
25
  * Arduino Mega with PICA pin assignments

+ 1
- 0
Marlin/src/pins/mega/pins_PICAOLD.h Datei anzeigen

19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
  *
20
  *
21
  */
21
  */
22
+#pragma once
22
 
23
 
23
 #define HEATER_0_PIN                          9   // E0
24
 #define HEATER_0_PIN                          9   // E0
24
 #define HEATER_1_PIN                         10   // E1
25
 #define HEATER_1_PIN                         10   // E1

+ 1
- 0
Marlin/src/pins/ramps/pins_K8600.h Datei anzeigen

19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
  *
20
  *
21
  */
21
  */
22
+#pragma once
22
 
23
 
23
 /**
24
 /**
24
  * VERTEX NANO Arduino Mega with RAMPS EFB v1.4 pin assignments.
25
  * VERTEX NANO Arduino Mega with RAMPS EFB v1.4 pin assignments.

+ 1
- 0
Marlin/src/pins/ramps/pins_TT_OSCAR.h Datei anzeigen

19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
  *
20
  *
21
  */
21
  */
22
+#pragma once
22
 
23
 
23
 #include "env_validate.h"
24
 #include "env_validate.h"
24
 
25
 

+ 1
- 0
Marlin/src/pins/sam/pins_CNCONTROLS_15D.h Datei anzeigen

19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
  *
20
  *
21
  */
21
  */
22
+#pragma once
22
 
23
 
23
 /**
24
 /**
24
  * CNControls V15 for HMS434 with DUE pin assignments
25
  * CNControls V15 for HMS434 with DUE pin assignments

+ 1
- 0
Marlin/src/pins/sam/pins_RURAMPS4D_11.h Datei anzeigen

20
  *
20
  *
21
  * Ported sys0724 & Vynt
21
  * Ported sys0724 & Vynt
22
  */
22
  */
23
+#pragma once
23
 
24
 
24
 /**
25
 /**
25
  * Arduino Mega? or Due with RuRAMPS4DUE pin assignments
26
  * Arduino Mega? or Due with RuRAMPS4DUE pin assignments

+ 1
- 0
Marlin/src/pins/sam/pins_RURAMPS4D_13.h Datei anzeigen

20
  *
20
  *
21
  * Ported sys0724 & Vynt
21
  * Ported sys0724 & Vynt
22
  */
22
  */
23
+#pragma once
23
 
24
 
24
 /**
25
 /**
25
  * Arduino Mega? or Due with RuRAMPS4DUE pin assignments
26
  * Arduino Mega? or Due with RuRAMPS4DUE pin assignments

+ 1
- 0
Marlin/src/pins/stm32f1/pins_CREALITY_V4.h Datei anzeigen

19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
  *
20
  *
21
  */
21
  */
22
+#pragma once
22
 
23
 
23
 /**
24
 /**
24
  * Creality 4.2.x (STM32F103RET6) board pin assignments
25
  * Creality 4.2.x (STM32F103RET6) board pin assignments

+ 1
- 0
Marlin/src/pins/stm32f1/pins_CREALITY_V4210.h Datei anzeigen

19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
  *
20
  *
21
  */
21
  */
22
+#pragma once
22
 
23
 
23
 /**
24
 /**
24
  * CREALITY 4.2.10 (STM32F103) board pin assignments
25
  * CREALITY 4.2.10 (STM32F103) board pin assignments

+ 1
- 0
Marlin/src/pins/stm32f1/pins_CREALITY_V427.h Datei anzeigen

19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
  *
20
  *
21
  */
21
  */
22
+#pragma once
22
 
23
 
23
 /**
24
 /**
24
  * CREALITY v4.2.7 (STM32F103) board pin assignments
25
  * CREALITY v4.2.7 (STM32F103) board pin assignments

+ 1
- 0
Marlin/src/pins/stm32f1/pins_CREALITY_V431.h Datei anzeigen

19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
  *
20
  *
21
  */
21
  */
22
+#pragma once
22
 
23
 
23
 /**
24
 /**
24
  * CREALITY v4.3.1 (STM32F103) board pin assignments
25
  * CREALITY v4.3.1 (STM32F103) board pin assignments

+ 1
- 0
Marlin/src/pins/stm32f1/pins_CREALITY_V452.h Datei anzeigen

19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
  *
20
  *
21
  */
21
  */
22
+#pragma once
22
 
23
 
23
 /**
24
 /**
24
  * Creality v4.5.2 (STM32F103RET6) board pin assignments
25
  * Creality v4.5.2 (STM32F103RET6) board pin assignments

+ 1
- 0
Marlin/src/pins/stm32f1/pins_CREALITY_V453.h Datei anzeigen

19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
  *
20
  *
21
  */
21
  */
22
+#pragma once
22
 
23
 
23
 /**
24
 /**
24
  * Creality v4.5.3 (STM32F103RET6) board pin assignments
25
  * Creality v4.5.3 (STM32F103RET6) board pin assignments

+ 1
- 0
Marlin/src/pins/stm32f1/pins_CREALITY_V45x.h Datei anzeigen

19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
  *
20
  *
21
  */
21
  */
22
+#pragma once
22
 
23
 
23
 /**
24
 /**
24
  * Creality v4.5.2 and v4.5.3 (STM32F103RET6) board pin assignments
25
  * Creality v4.5.2 and v4.5.3 (STM32F103RET6) board pin assignments

+ 1
- 0
Marlin/src/pins/teensy2/pins_TEENSYLU.h Datei anzeigen

18
  * You should have received a copy of the GNU General Public License
18
  * You should have received a copy of the GNU General Public License
19
  * along with this program.   If not, see <https://www.gnu.org/licenses/>.
19
  * along with this program.   If not, see <https://www.gnu.org/licenses/>.
20
  */
20
  */
21
+#pragma once
21
 
22
 
22
 /**
23
 /**
23
  *  Rev C  2 JUN 2017
24
  *  Rev C  2 JUN 2017

Laden…
Abbrechen
Speichern