소스 검색

Reorganize HAL (#14832)

Scott Lahteine 5 년 전
부모
커밋
75efa3cdac
No account linked to committer's email address
100개의 변경된 파일420개의 추가작업 그리고 309개의 파일을 삭제
  1. 3
    3
      .circleci/config.yml
  2. 28
    19
      .travis.yml
  3. 3
    3
      Marlin/src/HAL/HAL_AVR/HAL.h
  4. 0
    0
      Marlin/src/HAL/HAL_AVR/HAL_SPI.cpp
  5. 0
    0
      Marlin/src/HAL/HAL_AVR/Servo.cpp
  6. 1
    1
      Marlin/src/HAL/HAL_AVR/fastio.cpp
  7. 0
    0
      Marlin/src/HAL/HAL_AVR/fastio.h
  8. 1
    1
      Marlin/src/HAL/HAL_AVR/fastio/fastio_1280.h
  9. 1
    1
      Marlin/src/HAL/HAL_AVR/fastio/fastio_1281.h
  10. 1
    1
      Marlin/src/HAL/HAL_AVR/fastio/fastio_168.h
  11. 1
    1
      Marlin/src/HAL/HAL_AVR/fastio/fastio_644.h
  12. 1
    1
      Marlin/src/HAL/HAL_AVR/fastio/fastio_AT90USB.h
  13. 0
    0
      Marlin/src/HAL/HAL_AVR/math.h
  14. 1
    1
      Marlin/src/HAL/HAL_AVR/watchdog.cpp
  15. 0
    0
      Marlin/src/HAL/HAL_AVR/watchdog.h
  16. 0
    0
      Marlin/src/HAL/HAL_DUE/DebugMonitor.cpp
  17. 0
    0
      Marlin/src/HAL/HAL_DUE/EepromEmulation.cpp
  18. 5
    5
      Marlin/src/HAL/HAL_DUE/HAL.h
  19. 0
    0
      Marlin/src/HAL/HAL_DUE/HAL_SPI.cpp
  20. 1
    1
      Marlin/src/HAL/HAL_DUE/InterruptVectors.cpp
  21. 0
    0
      Marlin/src/HAL/HAL_DUE/InterruptVectors.h
  22. 2
    2
      Marlin/src/HAL/HAL_DUE/MarlinSerial.cpp
  23. 0
    0
      Marlin/src/HAL/HAL_DUE/MarlinSerial.h
  24. 1
    1
      Marlin/src/HAL/HAL_DUE/MarlinSerialUSB.cpp
  25. 0
    0
      Marlin/src/HAL/HAL_DUE/MarlinSerialUSB.h
  26. 0
    0
      Marlin/src/HAL/HAL_DUE/Servo.cpp
  27. 1
    1
      Marlin/src/HAL/HAL_DUE/Tone.cpp
  28. 1
    1
      Marlin/src/HAL/HAL_DUE/dogm/u8g_com_HAL_DUE_shared_hw_spi.cpp
  29. 0
    0
      Marlin/src/HAL/HAL_DUE/fastio.h
  30. 1
    1
      Marlin/src/HAL/HAL_DUE/timers.cpp
  31. 0
    0
      Marlin/src/HAL/HAL_DUE/timers.h
  32. 1
    1
      Marlin/src/HAL/HAL_DUE/watchdog.cpp
  33. 0
    0
      Marlin/src/HAL/HAL_DUE/watchdog.h
  34. 1
    1
      Marlin/src/HAL/HAL_ESP32/HAL.cpp
  35. 3
    3
      Marlin/src/HAL/HAL_ESP32/HAL.h
  36. 0
    0
      Marlin/src/HAL/HAL_ESP32/HAL_SPI.cpp
  37. 1
    1
      Marlin/src/HAL/HAL_ESP32/Servo.cpp
  38. 0
    0
      Marlin/src/HAL/HAL_ESP32/Servo.h
  39. 0
    0
      Marlin/src/HAL/HAL_ESP32/fastio.h
  40. 1
    1
      Marlin/src/HAL/HAL_ESP32/timers.cpp
  41. 0
    0
      Marlin/src/HAL/HAL_ESP32/timers.h
  42. 1
    1
      Marlin/src/HAL/HAL_ESP32/watchdog.cpp
  43. 0
    0
      Marlin/src/HAL/HAL_ESP32/watchdog.h
  44. 1
    1
      Marlin/src/HAL/HAL_LINUX/HAL.h
  45. 1
    1
      Marlin/src/HAL/HAL_LINUX/arduino.cpp
  46. 3
    3
      Marlin/src/HAL/HAL_LINUX/include/Arduino.h
  47. 1
    1
      Marlin/src/HAL/HAL_LINUX/timers.cpp
  48. 0
    0
      Marlin/src/HAL/HAL_LINUX/timers.h
  49. 0
    0
      Marlin/src/HAL/HAL_LPC1768/DebugMonitor.cpp
  50. 1
    1
      Marlin/src/HAL/HAL_LPC1768/HAL.h
  51. 0
    0
      Marlin/src/HAL/HAL_LPC1768/HAL_SPI.cpp
  52. 0
    0
      Marlin/src/HAL/HAL_LPC1768/Servo.h
  53. 1
    1
      Marlin/src/HAL/HAL_LPC1768/main.cpp
  54. 1
    1
      Marlin/src/HAL/HAL_LPC1768/timers.cpp
  55. 0
    0
      Marlin/src/HAL/HAL_LPC1768/timers.h
  56. 3
    3
      Marlin/src/HAL/HAL_SAMD51/HAL.h
  57. 0
    0
      Marlin/src/HAL/HAL_SAMD51/HAL_SPI.cpp
  58. 1
    1
      Marlin/src/HAL/HAL_SAMD51/Servo.cpp
  59. 0
    0
      Marlin/src/HAL/HAL_SAMD51/fastio.h
  60. 1
    1
      Marlin/src/HAL/HAL_SAMD51/timers.cpp
  61. 0
    0
      Marlin/src/HAL/HAL_SAMD51/timers.h
  62. 1
    1
      Marlin/src/HAL/HAL_SAMD51/watchdog.cpp
  63. 0
    0
      Marlin/src/HAL/HAL_SAMD51/watchdog.h
  64. 3
    3
      Marlin/src/HAL/HAL_STM32/HAL.h
  65. 0
    0
      Marlin/src/HAL/HAL_STM32/HAL_SPI.cpp
  66. 1
    1
      Marlin/src/HAL/HAL_STM32/Servo.cpp
  67. 0
    0
      Marlin/src/HAL/HAL_STM32/Servo.h
  68. 0
    0
      Marlin/src/HAL/HAL_STM32/fastio.cpp
  69. 0
    0
      Marlin/src/HAL/HAL_STM32/fastio.h
  70. 4
    2
      Marlin/src/HAL/HAL_STM32/pinsDebug_STM32GENERIC.h
  71. 1
    1
      Marlin/src/HAL/HAL_STM32/timers.cpp
  72. 0
    0
      Marlin/src/HAL/HAL_STM32/timers.h
  73. 1
    1
      Marlin/src/HAL/HAL_STM32/watchdog.cpp
  74. 0
    0
      Marlin/src/HAL/HAL_STM32/watchdog.h
  75. 3
    3
      Marlin/src/HAL/HAL_STM32F1/HAL.h
  76. 1
    1
      Marlin/src/HAL/HAL_STM32F1/HAL_SPI.cpp
  77. 1
    1
      Marlin/src/HAL/HAL_STM32F1/SPI.cpp
  78. 2
    2
      Marlin/src/HAL/HAL_STM32F1/Servo.cpp
  79. 0
    0
      Marlin/src/HAL/HAL_STM32F1/Servo.h
  80. 0
    0
      Marlin/src/HAL/HAL_STM32F1/build_flags.py
  81. 0
    0
      Marlin/src/HAL/HAL_STM32F1/fastio.h
  82. 1
    1
      Marlin/src/HAL/HAL_STM32F1/sdio.cpp
  83. 0
    0
      Marlin/src/HAL/HAL_STM32F1/sdio.h
  84. 1
    1
      Marlin/src/HAL/HAL_STM32F1/timers.cpp
  85. 0
    0
      Marlin/src/HAL/HAL_STM32F1/timers.h
  86. 1
    1
      Marlin/src/HAL/HAL_STM32F1/watchdog.cpp
  87. 0
    0
      Marlin/src/HAL/HAL_STM32F1/watchdog.h
  88. 3
    3
      Marlin/src/HAL/HAL_STM32_F4_F7/HAL.h
  89. 5
    5
      Marlin/src/HAL/HAL_STM32_F4_F7/HAL_SPI.cpp
  90. 1
    1
      Marlin/src/HAL/HAL_STM32_F4_F7/STM32F4/timers.cpp
  91. 0
    0
      Marlin/src/HAL/HAL_STM32_F4_F7/STM32F4/timers.h
  92. 1
    1
      Marlin/src/HAL/HAL_STM32_F4_F7/STM32F7/timers.cpp
  93. 0
    0
      Marlin/src/HAL/HAL_STM32_F4_F7/STM32F7/timers.h
  94. 1
    1
      Marlin/src/HAL/HAL_STM32_F4_F7/Servo.cpp
  95. 0
    0
      Marlin/src/HAL/HAL_STM32_F4_F7/Servo.h
  96. 310
    0
      Marlin/src/HAL/HAL_STM32_F4_F7/fastio.h
  97. 0
    210
      Marlin/src/HAL/HAL_STM32_F4_F7/fastio_STM32_F4_F7.h
  98. 2
    2
      Marlin/src/HAL/HAL_STM32_F4_F7/timers.h
  99. 1
    1
      Marlin/src/HAL/HAL_STM32_F4_F7/watchdog.cpp
  100. 0
    0
      Marlin/src/HAL/HAL_STM32_F4_F7/watchdog.h

+ 3
- 3
.circleci/config.yml 파일 보기

@@ -240,10 +240,10 @@ jobs:
240 240
             build_marlin_pio ./ ${TEST_PLATFORM}
241 241
             restore_configs
242 242
             echo testing STM32F1 targets...
243
-            export TEST_PLATFORM="-e STM32F1"
243
+            export TEST_PLATFORM="-e STM32F103R"
244 244
             restore_configs
245
-            echo use_example_configs STM32/STM32F10
246
-            use_example_configs STM32/STM32F10
245
+            echo use_example_configs STM32/STM32F103R
246
+            use_example_configs STM32/STM32F103R
247 247
             build_marlin_pio ./ ${TEST_PLATFORM}
248 248
             restore_configs
249 249
             echo use_example_configs STM32/stm32f103ret6

+ 28
- 19
.travis.yml 파일 보기

@@ -9,37 +9,46 @@ notifications:
9 9
   email: false
10 10
 
11 11
 env:
12
-  - TEST_PLATFORM="ARMED"
13
-  #- TEST_PLATFORM="at90usb1286_cdc"
14
-  #- TEST_PLATFORM="at90usb1286_dfu"
12
+  # Base Environments
15 13
   - TEST_PLATFORM="DUE"
16 14
   - TEST_PLATFORM="esp32"
17
-  - TEST_PLATFORM="fysetc_f6_13"
18
-  - TEST_PLATFORM="jgaurora_a5s_a1"
19 15
   - TEST_PLATFORM="linux_native"
20 16
   - TEST_PLATFORM="LPC1768"
21 17
   - TEST_PLATFORM="LPC1769"
22
-  #- TEST_PLATFORM="malyanm200"
23
-  - TEST_PLATFORM="megaatmega1280"
24 18
   - TEST_PLATFORM="megaatmega2560"
19
+  - TEST_PLATFORM="SAMD51_grandcentral_m4"
20
+  - TEST_PLATFORM="STM32F103R"
21
+  - TEST_PLATFORM="teensy31"
22
+  - TEST_PLATFORM="teensy35"
23
+
24
+  # Extended AVR Environments
25
+  - TEST_PLATFORM="fysetc_f6_13"
26
+  - TEST_PLATFORM="megaatmega1280"
27
+  - TEST_PLATFORM="rambo"
28
+  - TEST_PLATFORM="sanguino_atmega1284p"
29
+  - TEST_PLATFORM="sanguino_atmega644p"
30
+
31
+  # Extended STM32 Environments
32
+  - TEST_PLATFORM="ARMED"
33
+  - TEST_PLATFORM="BIGTREE_BTT002"
34
+  - TEST_PLATFORM="BIGTREE_SKR_PRO"
35
+  - TEST_PLATFORM="STM32F103R_bigtree"
36
+  - TEST_PLATFORM="jgaurora_a5s_a1"
37
+  - TEST_PLATFORM="STM32F103V_longer"
38
+  - TEST_PLATFORM="STM32F407VE_black"
39
+
40
+  # Non-working environment tests
41
+  #- TEST_PLATFORM="at90usb1286_cdc"
42
+  #- TEST_PLATFORM="at90usb1286_dfu"
43
+  #- TEST_PLATFORM="malyanm200"
25 44
   #- TEST_PLATFORM="mks_robin"
26 45
   #- TEST_PLATFORM="mks_robin_lite"
27 46
   #- TEST_PLATFORM="mks_robin_mini"
28 47
   #- TEST_PLATFORM="mks_robin_nano"
29
-  - TEST_PLATFORM="rambo"
30
-  - TEST_PLATFORM="adafruit_grandcentral_m4"
31
-  - TEST_PLATFORM="sanguino_atmega1284p"
32
-  - TEST_PLATFORM="sanguino_atmega644p"
33
-  - TEST_PLATFORM="STM32F1"
34
-  - TEST_PLATFORM="BIGTREE_SKR_MINI"
35
-  #- TEST_PLATFORM="fysetc_STM32F1"
36
-  - TEST_PLATFORM="alfawise_U20"
48
+  #- TEST_PLATFORM="STM32F103R_bigtree"
49
+  #- TEST_PLATFORM="STM32F103R_fysetc"
37 50
   #- TEST_PLATFORM="STM32F4"
38
-  - TEST_PLATFORM="black_stm32f407ve"
39
-  - TEST_PLATFORM="BIGTREE_SKR_PRO"
40 51
   #- TEST_PLATFORM="STM32F7"
41
-  - TEST_PLATFORM="teensy31"
42
-  - TEST_PLATFORM="teensy35"
43 52
 
44 53
 before_install:
45 54
   #

+ 3
- 3
Marlin/src/HAL/HAL_AVR/HAL.h 파일 보기

@@ -20,9 +20,9 @@
20 20
 
21 21
 #include "../shared/Marduino.h"
22 22
 #include "../shared/HAL_SPI.h"
23
-#include "fastio_AVR.h"
24
-#include "watchdog_AVR.h"
25
-#include "math_AVR.h"
23
+#include "fastio.h"
24
+#include "watchdog.h"
25
+#include "math.h"
26 26
 
27 27
 #ifdef USBCON
28 28
   #include "HardwareSerial.h"

Marlin/src/HAL/HAL_AVR/HAL_spi_AVR.cpp → Marlin/src/HAL/HAL_AVR/HAL_SPI.cpp 파일 보기


Marlin/src/HAL/HAL_AVR/servo_AVR.cpp → Marlin/src/HAL/HAL_AVR/Servo.cpp 파일 보기


Marlin/src/HAL/HAL_AVR/fastio_AVR.cpp → Marlin/src/HAL/HAL_AVR/fastio.cpp 파일 보기

@@ -26,7 +26,7 @@
26 26
 
27 27
 #ifdef __AVR__
28 28
 
29
-#include "fastio_AVR.h"
29
+#include "fastio.h"
30 30
 
31 31
 #ifdef FASTIO_EXT_START
32 32
 

Marlin/src/HAL/HAL_AVR/fastio_AVR.h → Marlin/src/HAL/HAL_AVR/fastio.h 파일 보기


+ 1
- 1
Marlin/src/HAL/HAL_AVR/fastio/fastio_1280.h 파일 보기

@@ -29,7 +29,7 @@
29 29
  *   Logical Pin   : 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | 78 79 80 xx xx 84 85 71 70 xx xx xx xx xx 81 82 83 xx xx 72 72 75 76 77 74 xx xx xx xx xx
30 30
  */
31 31
 
32
-#include "../fastio_AVR.h"
32
+#include "../fastio.h"
33 33
 
34 34
 // change for your board
35 35
 #define DEBUG_LED   DIO21

+ 1
- 1
Marlin/src/HAL/HAL_AVR/fastio/fastio_1281.h 파일 보기

@@ -28,7 +28,7 @@
28 28
  *   Port:        A0 A1 A2 A3 A4 A5 A6 A7 B0 B1 B2 B3 B4 B5 B6 B7 C0 C1 C2 C3 C4 C5 C6 C7 D0 D1 D2 D3 D4 D5 D6 D7 E0 E1 E2 E3 E4 E5 E6 E7 F0 F1 F2 F3 F4 F5 F6 F7 G0 G1 G2 G3 G4 G5
29 29
  */
30 30
 
31
-#include "../fastio_AVR.h"
31
+#include "../fastio.h"
32 32
 
33 33
 // change for your board
34 34
 #define DEBUG_LED   DIO46

+ 1
- 1
Marlin/src/HAL/HAL_AVR/fastio/fastio_168.h 파일 보기

@@ -28,7 +28,7 @@
28 28
  *   Port:        B0 B1 B2 B3 B4 B5 C0 C1 C2 C3 C4 C5 C6 C7 D0 D1 D2 D3 D4 D5 D6 D7
29 29
  */
30 30
 
31
-#include "../fastio_AVR.h"
31
+#include "../fastio.h"
32 32
 
33 33
 #define DEBUG_LED   AIO5
34 34
 

+ 1
- 1
Marlin/src/HAL/HAL_AVR/fastio/fastio_644.h 파일 보기

@@ -54,7 +54,7 @@
54 54
  *                        +--------+
55 55
  */
56 56
 
57
-#include "../fastio_AVR.h"
57
+#include "../fastio.h"
58 58
 
59 59
 #define DEBUG_LED   DIO0
60 60
 

+ 1
- 1
Marlin/src/HAL/HAL_AVR/fastio/fastio_AT90USB.h 파일 보기

@@ -29,7 +29,7 @@
29 29
  *            The logical pins 46 and 47 are not supported by Teensyduino, but are supported below as E2 and E3
30 30
  */
31 31
 
32
-#include "../fastio_AVR.h"
32
+#include "../fastio.h"
33 33
 
34 34
 // change for your board
35 35
 #define DEBUG_LED   DIO31 /* led D5 red */

Marlin/src/HAL/HAL_AVR/math_AVR.h → Marlin/src/HAL/HAL_AVR/math.h 파일 보기


Marlin/src/HAL/HAL_AVR/watchdog_AVR.cpp → Marlin/src/HAL/HAL_AVR/watchdog.cpp 파일 보기

@@ -26,7 +26,7 @@
26 26
 
27 27
 #if ENABLED(USE_WATCHDOG)
28 28
 
29
-#include "watchdog_AVR.h"
29
+#include "watchdog.h"
30 30
 
31 31
 #include "../../Marlin.h"
32 32
 

Marlin/src/HAL/HAL_AVR/watchdog_AVR.h → Marlin/src/HAL/HAL_AVR/watchdog.h 파일 보기


Marlin/src/HAL/HAL_DUE/DebugMonitor_Due.cpp → Marlin/src/HAL/HAL_DUE/DebugMonitor.cpp 파일 보기


Marlin/src/HAL/HAL_DUE/EepromEmulation_Due.cpp → Marlin/src/HAL/HAL_DUE/EepromEmulation.cpp 파일 보기


+ 5
- 5
Marlin/src/HAL/HAL_DUE/HAL.h 파일 보기

@@ -32,9 +32,9 @@
32 32
 #include "../shared/Marduino.h"
33 33
 #include "../shared/math_32bit.h"
34 34
 #include "../shared/HAL_SPI.h"
35
-#include "fastio_Due.h"
36
-#include "watchdog_Due.h"
37
-#include "HAL_timers_Due.h"
35
+#include "fastio.h"
36
+#include "watchdog.h"
37
+#include "timers.h"
38 38
 
39 39
 #include <stdint.h>
40 40
 
@@ -58,8 +58,8 @@
58 58
   #define NUM_SERIAL 1
59 59
 #endif
60 60
 
61
-#include "MarlinSerial_Due.h"
62
-#include "MarlinSerialUSB_Due.h"
61
+#include "MarlinSerial.h"
62
+#include "MarlinSerialUSB.h"
63 63
 
64 64
 // On AVR this is in math.h?
65 65
 #define square(x) ((x)*(x))

Marlin/src/HAL/HAL_DUE/HAL_spi_Due.cpp → Marlin/src/HAL/HAL_DUE/HAL_SPI.cpp 파일 보기


Marlin/src/HAL/HAL_DUE/InterruptVectors_Due.cpp → Marlin/src/HAL/HAL_DUE/InterruptVectors.cpp 파일 보기

@@ -34,7 +34,7 @@
34 34
 
35 35
 #include "../../inc/MarlinConfig.h"
36 36
 #include "HAL.h"
37
-#include "InterruptVectors_Due.h"
37
+#include "InterruptVectors.h"
38 38
 
39 39
 /* The relocated Exception/Interrupt Table - According to the ARM
40 40
    reference manual, alignment to 128 bytes should suffice, but in

Marlin/src/HAL/HAL_DUE/InterruptVectors_Due.h → Marlin/src/HAL/HAL_DUE/InterruptVectors.h 파일 보기


Marlin/src/HAL/HAL_DUE/MarlinSerial_Due.cpp → Marlin/src/HAL/HAL_DUE/MarlinSerial.cpp 파일 보기

@@ -29,8 +29,8 @@
29 29
 
30 30
 #include "../../inc/MarlinConfig.h"
31 31
 
32
-#include "MarlinSerial_Due.h"
33
-#include "InterruptVectors_Due.h"
32
+#include "MarlinSerial.h"
33
+#include "InterruptVectors.h"
34 34
 #include "../../Marlin.h"
35 35
 
36 36
 template<typename Cfg> typename MarlinSerial<Cfg>::ring_buffer_r MarlinSerial<Cfg>::rx_buffer = { 0, 0, { 0 } };

Marlin/src/HAL/HAL_DUE/MarlinSerial_Due.h → Marlin/src/HAL/HAL_DUE/MarlinSerial.h 파일 보기


Marlin/src/HAL/HAL_DUE/MarlinSerialUSB_Due.cpp → Marlin/src/HAL/HAL_DUE/MarlinSerialUSB.cpp 파일 보기

@@ -31,7 +31,7 @@
31 31
 
32 32
 #if SERIAL_PORT == -1
33 33
 
34
-#include "MarlinSerialUSB_Due.h"
34
+#include "MarlinSerialUSB.h"
35 35
 
36 36
 #if ENABLED(EMERGENCY_PARSER)
37 37
   #include "../../feature/emergency_parser.h"

Marlin/src/HAL/HAL_DUE/MarlinSerialUSB_Due.h → Marlin/src/HAL/HAL_DUE/MarlinSerialUSB.h 파일 보기


Marlin/src/HAL/HAL_DUE/Servo_Due.cpp → Marlin/src/HAL/HAL_DUE/Servo.cpp 파일 보기


+ 1
- 1
Marlin/src/HAL/HAL_DUE/Tone.cpp 파일 보기

@@ -31,7 +31,7 @@
31 31
 
32 32
 #include "../../inc/MarlinConfig.h"
33 33
 #include "HAL.h"
34
-#include "HAL_timers_Due.h"
34
+#include "timers.h"
35 35
 
36 36
 static pin_t tone_pin;
37 37
 volatile static int32_t toggles;

+ 1
- 1
Marlin/src/HAL/HAL_DUE/dogm/u8g_com_HAL_DUE_shared_hw_spi.cpp 파일 보기

@@ -71,7 +71,7 @@ void spiSend(uint8_t b);
71 71
 void spiSend(const uint8_t* buf, size_t n);
72 72
 
73 73
 #include "../../shared/Marduino.h"
74
-#include "../fastio_Due.h"
74
+#include "../fastio.h"
75 75
 
76 76
 void u8g_SetPIOutput_DUE_hw_spi(u8g_t *u8g, uint8_t pin_index) {
77 77
    PIO_Configure(g_APinDescription[u8g->pin_list[pin_index]].pPort, PIO_OUTPUT_1,

Marlin/src/HAL/HAL_DUE/fastio_Due.h → Marlin/src/HAL/HAL_DUE/fastio.h 파일 보기


Marlin/src/HAL/HAL_DUE/HAL_timers_Due.cpp → Marlin/src/HAL/HAL_DUE/timers.cpp 파일 보기

@@ -34,7 +34,7 @@
34 34
 #include "../../inc/MarlinConfig.h"
35 35
 #include "HAL.h"
36 36
 
37
-#include "HAL_timers_Due.h"
37
+#include "timers.h"
38 38
 
39 39
 // ------------------------
40 40
 // Local defines

Marlin/src/HAL/HAL_DUE/HAL_timers_Due.h → Marlin/src/HAL/HAL_DUE/timers.h 파일 보기


Marlin/src/HAL/HAL_DUE/watchdog_Due.cpp → Marlin/src/HAL/HAL_DUE/watchdog.cpp 파일 보기

@@ -24,7 +24,7 @@
24 24
 
25 25
 #include "../../inc/MarlinConfig.h"
26 26
 #include "../../Marlin.h"
27
-#include "watchdog_Due.h"
27
+#include "watchdog.h"
28 28
 
29 29
 // Override Arduino runtime to either config or disable the watchdog
30 30
 //

Marlin/src/HAL/HAL_DUE/watchdog_Due.h → Marlin/src/HAL/HAL_DUE/watchdog.h 파일 보기


+ 1
- 1
Marlin/src/HAL/HAL_ESP32/HAL.cpp 파일 보기

@@ -23,7 +23,7 @@
23 23
 #ifdef ARDUINO_ARCH_ESP32
24 24
 
25 25
 #include "HAL.h"
26
-#include "HAL_timers_ESP32.h"
26
+#include "timers.h"
27 27
 #include <rom/rtc.h>
28 28
 #include <driver/adc.h>
29 29
 #include <esp_adc_cal.h>

+ 3
- 3
Marlin/src/HAL/HAL_ESP32/HAL.h 파일 보기

@@ -30,11 +30,11 @@
30 30
 #include "../shared/math_32bit.h"
31 31
 #include "../shared/HAL_SPI.h"
32 32
 
33
-#include "fastio_ESP32.h"
34
-#include "watchdog_ESP32.h"
33
+#include "fastio.h"
34
+#include "watchdog.h"
35 35
 #include "i2s.h"
36 36
 
37
-#include "HAL_timers_ESP32.h"
37
+#include "timers.h"
38 38
 
39 39
 #include "WebSocketSerial.h"
40 40
 #include "FlushableHardwareSerial.h"

Marlin/src/HAL/HAL_ESP32/HAL_spi_ESP32.cpp → Marlin/src/HAL/HAL_ESP32/HAL_SPI.cpp 파일 보기


Marlin/src/HAL/HAL_ESP32/HAL_Servo_ESP32.cpp → Marlin/src/HAL/HAL_ESP32/Servo.cpp 파일 보기

@@ -25,7 +25,7 @@
25 25
 
26 26
 #if HAS_SERVOS
27 27
 
28
-#include "HAL_Servo_ESP32.h"
28
+#include "Servo.h"
29 29
 
30 30
 // Adjacent channels (0/1, 2/3 etc.) share the same timer and therefore the same frequency and resolution settings on ESP32,
31 31
 // so we only allocate servo channels up high to avoid side effects with regards to analogWrite (fans, leds, laser pwm etc.)

Marlin/src/HAL/HAL_ESP32/HAL_Servo_ESP32.h → Marlin/src/HAL/HAL_ESP32/Servo.h 파일 보기


Marlin/src/HAL/HAL_ESP32/fastio_ESP32.h → Marlin/src/HAL/HAL_ESP32/fastio.h 파일 보기


Marlin/src/HAL/HAL_ESP32/HAL_timers_ESP32.cpp → Marlin/src/HAL/HAL_ESP32/timers.cpp 파일 보기

@@ -30,7 +30,7 @@
30 30
 
31 31
 #include "HAL.h"
32 32
 
33
-#include "HAL_timers_ESP32.h"
33
+#include "timers.h"
34 34
 
35 35
 // ------------------------
36 36
 // Local defines

Marlin/src/HAL/HAL_ESP32/HAL_timers_ESP32.h → Marlin/src/HAL/HAL_ESP32/timers.h 파일 보기


Marlin/src/HAL/HAL_ESP32/watchdog_ESP32.cpp → Marlin/src/HAL/HAL_ESP32/watchdog.cpp 파일 보기

@@ -26,7 +26,7 @@
26 26
 
27 27
 #if ENABLED(USE_WATCHDOG)
28 28
 
29
-#include "watchdog_ESP32.h"
29
+#include "watchdog.h"
30 30
 
31 31
 void watchdogSetup(void) {
32 32
   // do whatever. don't remove this function.

Marlin/src/HAL/HAL_ESP32/watchdog_ESP32.h → Marlin/src/HAL/HAL_ESP32/watchdog.h 파일 보기


+ 1
- 1
Marlin/src/HAL/HAL_LINUX/HAL.h 파일 보기

@@ -56,7 +56,7 @@ uint8_t _getc();
56 56
 #include "../shared/HAL_SPI.h"
57 57
 #include "fastio.h"
58 58
 #include "watchdog.h"
59
-#include "HAL_timers.h"
59
+#include "timers.h"
60 60
 #include "serial.h"
61 61
 
62 62
 #define SHARED_SERVOS HAS_SERVOS

+ 1
- 1
Marlin/src/HAL/HAL_LINUX/arduino.cpp 파일 보기

@@ -90,7 +90,7 @@ void eeprom_read_block(void *__dst, const void *__src, size_t __n) { }
90 90
 
91 91
 void eeprom_update_block(const void *__src, void *__dst, size_t __n) { }
92 92
 
93
-char *dtostrf (double __val, signed char __width, unsigned char __prec, char *__s) {
93
+char *dtostrf(double __val, signed char __width, unsigned char __prec, char *__s) {
94 94
   char format_string[20];
95 95
   snprintf(format_string, 20, "%%%d.%df", __width, __prec);
96 96
   sprintf(__s, format_string, __val);

+ 3
- 3
Marlin/src/HAL/HAL_LINUX/include/Arduino.h 파일 보기

@@ -109,13 +109,13 @@ uint16_t analogRead(pin_t);
109 109
 // EEPROM
110 110
 void eeprom_write_byte(unsigned char *pos, unsigned char value);
111 111
 unsigned char eeprom_read_byte(unsigned char *pos);
112
-void eeprom_read_block (void *__dst, const void *__src, size_t __n);
113
-void eeprom_update_block (const void *__src, void *__dst, size_t __n);
112
+void eeprom_read_block(void *__dst, const void *__src, size_t __n);
113
+void eeprom_update_block(const void *__src, void *__dst, size_t __n);
114 114
 
115 115
 int32_t random(int32_t);
116 116
 int32_t random(int32_t, int32_t);
117 117
 void randomSeed(uint32_t);
118 118
 
119
-char *dtostrf (double __val, signed char __width, unsigned char __prec, char *__s);
119
+char *dtostrf(double __val, signed char __width, unsigned char __prec, char *__s);
120 120
 
121 121
 int map(uint16_t x, uint16_t in_min, uint16_t in_max, uint16_t out_min, uint16_t out_max);

Marlin/src/HAL/HAL_LINUX/HAL_timers.cpp → Marlin/src/HAL/HAL_LINUX/timers.cpp 파일 보기

@@ -25,7 +25,7 @@
25 25
 #include "hardware/Timer.h"
26 26
 
27 27
 #include "../../inc/MarlinConfig.h"
28
-#include "HAL_timers.h"
28
+#include "timers.h"
29 29
 
30 30
 /**
31 31
  * Use POSIX signals to attempt to emulate Interrupts

Marlin/src/HAL/HAL_LINUX/HAL_timers.h → Marlin/src/HAL/HAL_LINUX/timers.h 파일 보기


Marlin/src/HAL/HAL_LPC1768/DebugMonitor_LPC1768.cpp → Marlin/src/HAL/HAL_LPC1768/DebugMonitor.cpp 파일 보기


+ 1
- 1
Marlin/src/HAL/HAL_LPC1768/HAL.h 파일 보기

@@ -41,7 +41,7 @@ extern "C" volatile uint32_t _millis;
41 41
 #include "../shared/HAL_SPI.h"
42 42
 #include "fastio.h"
43 43
 #include "watchdog.h"
44
-#include "HAL_timers.h"
44
+#include "timers.h"
45 45
 #include "MarlinSerial.h"
46 46
 
47 47
 #include <adc.h>

Marlin/src/HAL/HAL_LPC1768/HAL_spi.cpp → Marlin/src/HAL/HAL_LPC1768/HAL_SPI.cpp 파일 보기


Marlin/src/HAL/HAL_LPC1768/HAL_Servo_LPC1768.h → Marlin/src/HAL/HAL_LPC1768/Servo.h 파일 보기


+ 1
- 1
Marlin/src/HAL/HAL_LPC1768/main.cpp 파일 보기

@@ -38,7 +38,7 @@ extern "C" {
38 38
 #include "../../sd/cardreader.h"
39 39
 #include "../../inc/MarlinConfig.h"
40 40
 #include "HAL.h"
41
-#include "HAL_timers.h"
41
+#include "timers.h"
42 42
 
43 43
 extern uint32_t MSC_SD_Init(uint8_t pdrv);
44 44
 extern "C" int isLPC1769();

Marlin/src/HAL/HAL_LPC1768/HAL_timers.cpp → Marlin/src/HAL/HAL_LPC1768/timers.cpp 파일 보기

@@ -29,7 +29,7 @@
29 29
 #ifdef TARGET_LPC1768
30 30
 
31 31
 #include "../../inc/MarlinConfig.h"
32
-#include "HAL_timers.h"
32
+#include "timers.h"
33 33
 
34 34
 void HAL_timer_init(void) {
35 35
   SBI(LPC_SC->PCONP, SBIT_TIMER0);  // Power ON Timer 0

Marlin/src/HAL/HAL_LPC1768/HAL_timers.h → Marlin/src/HAL/HAL_LPC1768/timers.h 파일 보기


+ 3
- 3
Marlin/src/HAL/HAL_SAMD51/HAL.h 파일 보기

@@ -25,9 +25,9 @@
25 25
 #include "../shared/Marduino.h"
26 26
 #include "../shared/math_32bit.h"
27 27
 #include "../shared/HAL_SPI.h"
28
-#include "fastio_SAMD51.h"
29
-#include "watchdog_SAMD51.h"
30
-#include "HAL_timers_SAMD51.h"
28
+#include "fastio.h"
29
+#include "watchdog.h"
30
+#include "timers.h"
31 31
 
32 32
 #ifdef ADAFRUIT_GRAND_CENTRAL_M4
33 33
   #include "MarlinSerial_AGCM4.h"

Marlin/src/HAL/HAL_SAMD51/HAL_spi_SAMD51.cpp → Marlin/src/HAL/HAL_SAMD51/HAL_SPI.cpp 파일 보기


Marlin/src/HAL/HAL_SAMD51/Servo_SAMD51.cpp → Marlin/src/HAL/HAL_SAMD51/Servo.cpp 파일 보기

@@ -33,7 +33,7 @@
33 33
 #include "../shared/servo.h"
34 34
 #include "../shared/servo_private.h"
35 35
 #include "SAMD51.h"
36
-#include "HAL_timers_SAMD51.h"
36
+#include "timers.h"
37 37
 
38 38
 #define __TC_GCLK_ID(t)         TC##t##_GCLK_ID
39 39
 #define _TC_GCLK_ID(t)          __TC_GCLK_ID(t)

Marlin/src/HAL/HAL_SAMD51/fastio_SAMD51.h → Marlin/src/HAL/HAL_SAMD51/fastio.h 파일 보기


Marlin/src/HAL/HAL_SAMD51/HAL_timers_SAMD51.cpp → Marlin/src/HAL/HAL_SAMD51/timers.cpp 파일 보기

@@ -25,7 +25,7 @@
25 25
 // Includes
26 26
 // --------------------------------------------------------------------------
27 27
 #include "../../inc/MarlinConfig.h"
28
-#include "HAL_timers_SAMD51.h"
28
+#include "timers.h"
29 29
 
30 30
 // --------------------------------------------------------------------------
31 31
 // Local defines

Marlin/src/HAL/HAL_SAMD51/HAL_timers_SAMD51.h → Marlin/src/HAL/HAL_SAMD51/timers.h 파일 보기


Marlin/src/HAL/HAL_SAMD51/watchdog_SAMD51.cpp → Marlin/src/HAL/HAL_SAMD51/watchdog.cpp 파일 보기

@@ -25,7 +25,7 @@
25 25
 
26 26
 #if ENABLED(USE_WATCHDOG)
27 27
 
28
-  #include "watchdog_SAMD51.h"
28
+  #include "watchdog.h"
29 29
 
30 30
   void watchdog_init(void) {
31 31
     // The low-power oscillator used by the WDT runs at 32,768 Hz with

Marlin/src/HAL/HAL_SAMD51/watchdog_SAMD51.h → Marlin/src/HAL/HAL_SAMD51/watchdog.h 파일 보기


+ 3
- 3
Marlin/src/HAL/HAL_STM32/HAL.h 파일 보기

@@ -28,8 +28,8 @@
28 28
 #include "../shared/Marduino.h"
29 29
 #include "../shared/math_32bit.h"
30 30
 #include "../shared/HAL_SPI.h"
31
-#include "fastio_STM32.h"
32
-#include "watchdog_STM32.h"
31
+#include "fastio.h"
32
+#include "watchdog.h"
33 33
 
34 34
 #include "../../inc/MarlinConfigPre.h"
35 35
 
@@ -96,7 +96,7 @@
96 96
   #define NUM_SERIAL 1
97 97
 #endif
98 98
 
99
-#include "HAL_timers_STM32.h"
99
+#include "timers.h"
100 100
 
101 101
 /**
102 102
  * TODO: review this to return 1 for pins that are not analog input

Marlin/src/HAL/HAL_STM32/HAL_spi_STM32.cpp → Marlin/src/HAL/HAL_STM32/HAL_SPI.cpp 파일 보기


Marlin/src/HAL/HAL_STM32/HAL_Servo_STM32.cpp → Marlin/src/HAL/HAL_STM32/Servo.cpp 파일 보기

@@ -26,7 +26,7 @@
26 26
 
27 27
 #if HAS_SERVOS
28 28
 
29
-#include "HAL_Servo_STM32.h"
29
+#include "Servo.h"
30 30
 
31 31
 uint8_t servoPin[MAX_SERVOS] = { 0 };
32 32
 

Marlin/src/HAL/HAL_STM32/HAL_Servo_STM32.h → Marlin/src/HAL/HAL_STM32/Servo.h 파일 보기


Marlin/src/HAL/HAL_STM32/fastio_STM32.cpp → Marlin/src/HAL/HAL_STM32/fastio.cpp 파일 보기


Marlin/src/HAL/HAL_STM32/fastio_STM32.h → Marlin/src/HAL/HAL_STM32/fastio.h 파일 보기


+ 4
- 2
Marlin/src/HAL/HAL_STM32/pinsDebug_STM32GENERIC.h 파일 보기

@@ -29,9 +29,11 @@
29 29
 #ifdef BOARD_NR_GPIO_PINS  // Only in STM32GENERIC (Maple)
30 30
 
31 31
 #ifdef __STM32F1__
32
-  #include "../HAL_STM32F1/fastio_STM32F1.h"
32
+  #include "../HAL_STM32F1/fastio.h"
33 33
 #elif defined(STM32F4) || defined(STM32F7)
34
-  #include "../HAL_STM32_F4_F7/fastio_STM32_F4_F7.h"
34
+  #include "../HAL_STM32_F4_F7/fastio.h"
35
+#else
36
+  #include "fastio.h"
35 37
 #endif
36 38
 
37 39
 extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS];

Marlin/src/HAL/HAL_STM32/HAL_timers_STM32.cpp → Marlin/src/HAL/HAL_STM32/timers.cpp 파일 보기

@@ -24,7 +24,7 @@
24 24
 
25 25
 #include "HAL.h"
26 26
 
27
-#include "HAL_timers_STM32.h"
27
+#include "timers.h"
28 28
 
29 29
 // ------------------------
30 30
 // Local defines

Marlin/src/HAL/HAL_STM32/HAL_timers_STM32.h → Marlin/src/HAL/HAL_STM32/timers.h 파일 보기


Marlin/src/HAL/HAL_STM32/watchdog_STM32.cpp → Marlin/src/HAL/HAL_STM32/watchdog.cpp 파일 보기

@@ -28,7 +28,7 @@
28 28
 
29 29
   #include "../../inc/MarlinConfig.h"
30 30
 
31
-  #include "watchdog_STM32.h"
31
+  #include "watchdog.h"
32 32
   #include <IWatchdog.h>
33 33
 
34 34
   void watchdog_init() { IWatchdog.begin(4000000); } // 4 sec timeout

Marlin/src/HAL/HAL_STM32/watchdog_STM32.h → Marlin/src/HAL/HAL_STM32/watchdog.h 파일 보기


+ 3
- 3
Marlin/src/HAL/HAL_STM32F1/HAL.h 파일 보기

@@ -33,10 +33,10 @@
33 33
 #include "../shared/math_32bit.h"
34 34
 #include "../shared/HAL_SPI.h"
35 35
 
36
-#include "fastio_STM32F1.h"
37
-#include "watchdog_STM32F1.h"
36
+#include "fastio.h"
37
+#include "watchdog.h"
38 38
 
39
-#include "HAL_timers_STM32F1.h"
39
+#include "timers.h"
40 40
 
41 41
 #include <stdint.h>
42 42
 #include <util/atomic.h>

Marlin/src/HAL/HAL_STM32F1/HAL_spi_STM32F1.cpp → Marlin/src/HAL/HAL_STM32F1/HAL_SPI.cpp 파일 보기

@@ -33,7 +33,7 @@
33 33
 #ifdef __STM32F1__
34 34
 
35 35
 #include "../../inc/MarlinConfig.h"
36
-#include "SPI.h"
36
+#include <SPI.h>
37 37
 
38 38
 // ------------------------
39 39
 // Public functions

+ 1
- 1
Marlin/src/HAL/HAL_STM32F1/SPI.cpp 파일 보기

@@ -31,7 +31,7 @@
31 31
 
32 32
 #ifdef __STM32F1__
33 33
 
34
-#include "SPI.h"
34
+#include <SPI.h>
35 35
 
36 36
 #include <libmaple/timer.h>
37 37
 #include <libmaple/util.h>

Marlin/src/HAL/HAL_STM32F1/HAL_Servo_STM32F1.cpp → Marlin/src/HAL/HAL_STM32F1/Servo.cpp 파일 보기

@@ -29,8 +29,8 @@
29 29
 
30 30
 uint8_t ServoCount = 0;
31 31
 
32
-#include "HAL_Servo_STM32F1.h"
33
-#include "HAL_timers_STM32F1.h"
32
+#include "Servo.h"
33
+#include "timers.h"
34 34
 
35 35
 //#include "Servo.h"
36 36
 

Marlin/src/HAL/HAL_STM32F1/HAL_Servo_STM32F1.h → Marlin/src/HAL/HAL_STM32F1/Servo.h 파일 보기


Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py → Marlin/src/HAL/HAL_STM32F1/build_flags.py 파일 보기


Marlin/src/HAL/HAL_STM32F1/fastio_STM32F1.h → Marlin/src/HAL/HAL_STM32F1/fastio.h 파일 보기


Marlin/src/HAL/HAL_STM32F1/HAL_sdio_STM32F1.cpp → Marlin/src/HAL/HAL_STM32F1/sdio.cpp 파일 보기

@@ -29,7 +29,7 @@
29 29
 
30 30
 #if defined(STM32_HIGH_DENSITY) || defined(STM32_XL_DENSITY)
31 31
 
32
-#include "HAL_sdio_STM32F1.h"
32
+#include "sdio.h"
33 33
 
34 34
 SDIO_CardInfoTypeDef SdCard;
35 35
 

Marlin/src/HAL/HAL_STM32F1/HAL_sdio_STM32F1.h → Marlin/src/HAL/HAL_STM32F1/sdio.h 파일 보기


Marlin/src/HAL/HAL_STM32F1/HAL_timers_STM32F1.cpp → Marlin/src/HAL/HAL_STM32F1/timers.cpp 파일 보기

@@ -28,7 +28,7 @@
28 28
 
29 29
 #include "HAL.h"
30 30
 
31
-#include "HAL_timers_STM32F1.h"
31
+#include "timers.h"
32 32
 
33 33
 // ------------------------
34 34
 // Local defines

Marlin/src/HAL/HAL_STM32F1/HAL_timers_STM32F1.h → Marlin/src/HAL/HAL_STM32F1/timers.h 파일 보기


Marlin/src/HAL/HAL_STM32F1/watchdog_STM32F1.cpp → Marlin/src/HAL/HAL_STM32F1/watchdog.cpp 파일 보기

@@ -31,7 +31,7 @@
31 31
 #if ENABLED(USE_WATCHDOG)
32 32
 
33 33
 #include <libmaple/iwdg.h>
34
-#include "watchdog_STM32F1.h"
34
+#include "watchdog.h"
35 35
 
36 36
 void watchdog_reset() {
37 37
   #if DISABLED(PINS_DEBUGGING) && PIN_EXISTS(LED)

Marlin/src/HAL/HAL_STM32F1/watchdog_STM32F1.h → Marlin/src/HAL/HAL_STM32F1/watchdog.h 파일 보기


+ 3
- 3
Marlin/src/HAL/HAL_STM32_F4_F7/HAL.h 파일 보기

@@ -28,10 +28,10 @@
28 28
 #include "../shared/math_32bit.h"
29 29
 #include "../shared/HAL_SPI.h"
30 30
 
31
-#include "fastio_STM32_F4_F7.h"
32
-#include "watchdog_STM32_F4_F7.h"
31
+#include "fastio.h"
32
+#include "watchdog.h"
33 33
 
34
-#include "HAL_timers_STM32_F4_F7.h"
34
+#include "timers.h"
35 35
 
36 36
 #include "../../inc/MarlinConfigPre.h"
37 37
 

Marlin/src/HAL/HAL_STM32_F4_F7/HAL_spi_STM32_F4_F7.cpp → Marlin/src/HAL/HAL_STM32_F4_F7/HAL_SPI.cpp 파일 보기

@@ -32,12 +32,12 @@
32 32
 
33 33
 #if defined(STM32GENERIC) && (defined(STM32F4) || defined(STM32F7))
34 34
 
35
-#include "HAL.h"
36
-#include "../shared/HAL_SPI.h"
35
+#include "../../inc/MarlinConfig.h"
36
+
37
+#include <SPI.h>
37 38
 #include <pins_arduino.h>
39
+#include "../shared/HAL_SPI.h"
38 40
 #include "spi_pins.h"
39
-#include "../../core/macros.h"
40
-#include <SPI.h>
41 41
 
42 42
 // ------------------------
43 43
 // Public Variables
@@ -72,7 +72,7 @@ static SPISettings spiConfig;
72 72
  * @details Only configures SS pin since libmaple creates and initialize the SPI object
73 73
  */
74 74
 void spiBegin(void) {
75
-  #if !PIN_EXISTS(SS)
75
+  #if !defined(SS_PIN) || SS_PIN < 0
76 76
     #error SS_PIN not defined!
77 77
   #endif
78 78
 

Marlin/src/HAL/HAL_STM32_F4_F7/STM32F4/HAL_timers_STM32F4.cpp → Marlin/src/HAL/HAL_STM32_F4_F7/STM32F4/timers.cpp 파일 보기

@@ -23,7 +23,7 @@
23 23
 #if defined(STM32GENERIC) && defined(STM32F4)
24 24
 
25 25
 #include "../HAL.h"
26
-#include "HAL_timers_STM32F4.h"
26
+#include "timers.h"
27 27
 
28 28
 // ------------------------
29 29
 // Local defines

Marlin/src/HAL/HAL_STM32_F4_F7/STM32F4/HAL_timers_STM32F4.h → Marlin/src/HAL/HAL_STM32_F4_F7/STM32F4/timers.h 파일 보기


Marlin/src/HAL/HAL_STM32_F4_F7/STM32F7/HAL_timers_STM32F7.cpp → Marlin/src/HAL/HAL_STM32_F4_F7/STM32F7/timers.cpp 파일 보기

@@ -23,7 +23,7 @@
23 23
 #if defined(STM32GENERIC) && defined(STM32F7)
24 24
 
25 25
 #include "../HAL.h"
26
-#include "HAL_timers_STM32F7.h"
26
+#include "timers.h"
27 27
 
28 28
 // ------------------------
29 29
 // Local defines

Marlin/src/HAL/HAL_STM32_F4_F7/STM32F7/HAL_timers_STM32F7.h → Marlin/src/HAL/HAL_STM32_F4_F7/STM32F7/timers.h 파일 보기


Marlin/src/HAL/HAL_STM32_F4_F7/HAL_Servo_STM32_F4_F7.cpp → Marlin/src/HAL/HAL_STM32_F4_F7/Servo.cpp 파일 보기

@@ -27,7 +27,7 @@
27 27
 
28 28
 #if HAS_SERVOS
29 29
 
30
-#include "HAL_Servo_STM32_F4_F7.h"
30
+#include "Servo.h"
31 31
 
32 32
 int8_t libServo::attach(const int pin) {
33 33
   if (this->servoIndex >= MAX_SERVOS) return -1;

Marlin/src/HAL/HAL_STM32_F4_F7/HAL_Servo_STM32_F4_F7.h → Marlin/src/HAL/HAL_STM32_F4_F7/Servo.h 파일 보기


+ 310
- 0
Marlin/src/HAL/HAL_STM32_F4_F7/fastio.h 파일 보기

@@ -0,0 +1,310 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7
+ * Copyright (c) 2017 Victor Perez
8
+ *
9
+ * This program is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
+ *
22
+ */
23
+#pragma once
24
+
25
+/**
26
+ * Fast I/O interfaces for STM32F4/7
27
+ * These use GPIO functions instead of Direct Port Manipulation, as on AVR.
28
+ */
29
+
30
+#ifndef PWM
31
+  #define PWM OUTPUT
32
+#endif
33
+
34
+#define READ(IO)                digitalRead(IO)
35
+#define WRITE(IO,V)             digitalWrite(IO,V)
36
+
37
+#define _GET_MODE(IO)
38
+#define _SET_MODE(IO,M)         pinMode(IO, M)
39
+#define _SET_OUTPUT(IO)         pinMode(IO, OUTPUT)                               /*!< Output Push Pull Mode & GPIO_NOPULL   */
40
+
41
+#define OUT_WRITE(IO,V)         do{ _SET_OUTPUT(IO); WRITE(IO,V); }while(0)
42
+
43
+#define SET_INPUT(IO)           _SET_MODE(IO, INPUT)                              /*!< Input Floating Mode                   */
44
+#define SET_INPUT_PULLUP(IO)    _SET_MODE(IO, INPUT_PULLUP)                       /*!< Input with Pull-up activation         */
45
+#define SET_INPUT_PULLDOWN(IO)  _SET_MODE(IO, INPUT_PULLDOWN)                     /*!< Input with Pull-down activation       */
46
+#define SET_OUTPUT(IO)          OUT_WRITE(IO, LOW)
47
+#define SET_PWM(IO)             _SET_MODE(IO, PWM)
48
+
49
+#define TOGGLE(IO)              OUT_WRITE(IO, !READ(IO))
50
+
51
+#define IS_INPUT(IO)
52
+#define IS_OUTPUT(IO)
53
+
54
+#define PWM_PIN(P)              true
55
+
56
+// digitalRead/Write wrappers
57
+#define extDigitalRead(IO)    digitalRead(IO)
58
+#define extDigitalWrite(IO,V) digitalWrite(IO,V)
59
+
60
+//
61
+// Pins Definitions
62
+//
63
+#define PORTA 0
64
+#define PORTB 1
65
+#define PORTC 2
66
+#define PORTD 3
67
+#define PORTE 4
68
+#define PORTF 5
69
+#define PORTG 6
70
+
71
+#define _STM32_PIN(P,PN) ((PORT##P * 16) + PN)
72
+
73
+#undef PA0
74
+#define PA0  _STM32_PIN(A,  0)
75
+#undef PA1
76
+#define PA1  _STM32_PIN(A,  1)
77
+#undef PA2
78
+#define PA2  _STM32_PIN(A,  2)
79
+#undef PA3
80
+#define PA3  _STM32_PIN(A,  3)
81
+#undef PA4
82
+#define PA4  _STM32_PIN(A,  4)
83
+#undef PA5
84
+#define PA5  _STM32_PIN(A,  5)
85
+#undef PA6
86
+#define PA6  _STM32_PIN(A,  6)
87
+#undef PA7
88
+#define PA7  _STM32_PIN(A,  7)
89
+#undef PA8
90
+#define PA8  _STM32_PIN(A,  8)
91
+#undef PA9
92
+#define PA9  _STM32_PIN(A,  9)
93
+#undef PA10
94
+#define PA10 _STM32_PIN(A, 10)
95
+#undef PA11
96
+#define PA11 _STM32_PIN(A, 11)
97
+#undef PA12
98
+#define PA12 _STM32_PIN(A, 12)
99
+#undef PA13
100
+#define PA13 _STM32_PIN(A, 13)
101
+#undef PA14
102
+#define PA14 _STM32_PIN(A, 14)
103
+#undef PA15
104
+#define PA15 _STM32_PIN(A, 15)
105
+
106
+#undef PB0
107
+#define PB0  _STM32_PIN(B,  0)
108
+#undef PB1
109
+#define PB1  _STM32_PIN(B,  1)
110
+#undef PB2
111
+#define PB2  _STM32_PIN(B,  2)
112
+#undef PB3
113
+#define PB3  _STM32_PIN(B,  3)
114
+#undef PB4
115
+#define PB4  _STM32_PIN(B,  4)
116
+#undef PB5
117
+#define PB5  _STM32_PIN(B,  5)
118
+#undef PB6
119
+#define PB6  _STM32_PIN(B,  6)
120
+#undef PB7
121
+#define PB7  _STM32_PIN(B,  7)
122
+#undef PB8
123
+#define PB8  _STM32_PIN(B,  8)
124
+#undef PB9
125
+#define PB9  _STM32_PIN(B,  9)
126
+#undef PB10
127
+#define PB10 _STM32_PIN(B, 10)
128
+#undef PB11
129
+#define PB11 _STM32_PIN(B, 11)
130
+#undef PB12
131
+#define PB12 _STM32_PIN(B, 12)
132
+#undef PB13
133
+#define PB13 _STM32_PIN(B, 13)
134
+#undef PB14
135
+#define PB14 _STM32_PIN(B, 14)
136
+#undef PB15
137
+#define PB15 _STM32_PIN(B, 15)
138
+
139
+#undef PC0
140
+#define PC0  _STM32_PIN(C,  0)
141
+#undef PC1
142
+#define PC1  _STM32_PIN(C,  1)
143
+#undef PC2
144
+#define PC2  _STM32_PIN(C,  2)
145
+#undef PC3
146
+#define PC3  _STM32_PIN(C,  3)
147
+#undef PC4
148
+#define PC4  _STM32_PIN(C,  4)
149
+#undef PC5
150
+#define PC5  _STM32_PIN(C,  5)
151
+#undef PC6
152
+#define PC6  _STM32_PIN(C,  6)
153
+#undef PC7
154
+#define PC7  _STM32_PIN(C,  7)
155
+#undef PC8
156
+#define PC8  _STM32_PIN(C,  8)
157
+#undef PC9
158
+#define PC9  _STM32_PIN(C,  9)
159
+#undef PC10
160
+#define PC10 _STM32_PIN(C, 10)
161
+#undef PC11
162
+#define PC11 _STM32_PIN(C, 11)
163
+#undef PC12
164
+#define PC12 _STM32_PIN(C, 12)
165
+#undef PC13
166
+#define PC13 _STM32_PIN(C, 13)
167
+#undef PC14
168
+#define PC14 _STM32_PIN(C, 14)
169
+#undef PC15
170
+#define PC15 _STM32_PIN(C, 15)
171
+
172
+#undef PD0
173
+#define PD0  _STM32_PIN(D,  0)
174
+#undef PD1
175
+#define PD1  _STM32_PIN(D,  1)
176
+#undef PD2
177
+#define PD2  _STM32_PIN(D,  2)
178
+#undef PD3
179
+#define PD3  _STM32_PIN(D,  3)
180
+#undef PD4
181
+#define PD4  _STM32_PIN(D,  4)
182
+#undef PD5
183
+#define PD5  _STM32_PIN(D,  5)
184
+#undef PD6
185
+#define PD6  _STM32_PIN(D,  6)
186
+#undef PD7
187
+#define PD7  _STM32_PIN(D,  7)
188
+#undef PD8
189
+#define PD8  _STM32_PIN(D,  8)
190
+#undef PD9
191
+#define PD9  _STM32_PIN(D,  9)
192
+#undef PD10
193
+#define PD10 _STM32_PIN(D, 10)
194
+#undef PD11
195
+#define PD11 _STM32_PIN(D, 11)
196
+#undef PD12
197
+#define PD12 _STM32_PIN(D, 12)
198
+#undef PD13
199
+#define PD13 _STM32_PIN(D, 13)
200
+#undef PD14
201
+#define PD14 _STM32_PIN(D, 14)
202
+#undef PD15
203
+#define PD15 _STM32_PIN(D, 15)
204
+
205
+#undef PE0
206
+#define PE0  _STM32_PIN(E,  0)
207
+#undef PE1
208
+#define PE1  _STM32_PIN(E,  1)
209
+#undef PE2
210
+#define PE2  _STM32_PIN(E,  2)
211
+#undef PE3
212
+#define PE3  _STM32_PIN(E,  3)
213
+#undef PE4
214
+#define PE4  _STM32_PIN(E,  4)
215
+#undef PE5
216
+#define PE5  _STM32_PIN(E,  5)
217
+#undef PE6
218
+#define PE6  _STM32_PIN(E,  6)
219
+#undef PE7
220
+#define PE7  _STM32_PIN(E,  7)
221
+#undef PE8
222
+#define PE8  _STM32_PIN(E,  8)
223
+#undef PE9
224
+#define PE9  _STM32_PIN(E,  9)
225
+#undef PE10
226
+#define PE10 _STM32_PIN(E, 10)
227
+#undef PE11
228
+#define PE11 _STM32_PIN(E, 11)
229
+#undef PE12
230
+#define PE12 _STM32_PIN(E, 12)
231
+#undef PE13
232
+#define PE13 _STM32_PIN(E, 13)
233
+#undef PE14
234
+#define PE14 _STM32_PIN(E, 14)
235
+#undef PE15
236
+#define PE15 _STM32_PIN(E, 15)
237
+
238
+#ifdef STM32F7
239
+
240
+  #undef PORTF
241
+  #define PORTF 5
242
+  #undef PF0
243
+  #define PF0  _STM32_PIN(F,  0)
244
+  #undef PF1
245
+  #define PF1  _STM32_PIN(F,  1)
246
+  #undef PF2
247
+  #define PF2  _STM32_PIN(F,  2)
248
+  #undef PF3
249
+  #define PF3  _STM32_PIN(F,  3)
250
+  #undef PF4
251
+  #define PF4  _STM32_PIN(F,  4)
252
+  #undef PF5
253
+  #define PF5  _STM32_PIN(F,  5)
254
+  #undef PF6
255
+  #define PF6  _STM32_PIN(F,  6)
256
+  #undef PF7
257
+  #define PF7  _STM32_PIN(F,  7)
258
+  #undef PF8
259
+  #define PF8  _STM32_PIN(F,  8)
260
+  #undef PF9
261
+  #define PF9  _STM32_PIN(F,  9)
262
+  #undef PF10
263
+  #define PF10 _STM32_PIN(F, 10)
264
+  #undef PF11
265
+  #define PF11 _STM32_PIN(F, 11)
266
+  #undef PF12
267
+  #define PF12 _STM32_PIN(F, 12)
268
+  #undef PF13
269
+  #define PF13 _STM32_PIN(F, 13)
270
+  #undef PF14
271
+  #define PF14 _STM32_PIN(F, 14)
272
+  #undef PF15
273
+  #define PF15 _STM32_PIN(F, 15)
274
+
275
+  #undef PORTG
276
+  #define PORTG 6
277
+  #undef PG0
278
+  #define PG0  _STM32_PIN(G,  0)
279
+  #undef PG1
280
+  #define PG1  _STM32_PIN(G,  1)
281
+  #undef PG2
282
+  #define PG2  _STM32_PIN(G,  2)
283
+  #undef PG3
284
+  #define PG3  _STM32_PIN(G,  3)
285
+  #undef PG4
286
+  #define PG4  _STM32_PIN(G,  4)
287
+  #undef PG5
288
+  #define PG5  _STM32_PIN(G,  5)
289
+  #undef PG6
290
+  #define PG6  _STM32_PIN(G,  6)
291
+  #undef PG7
292
+  #define PG7  _STM32_PIN(G,  7)
293
+  #undef PG8
294
+  #define PG8  _STM32_PIN(G,  8)
295
+  #undef PG9
296
+  #define PG9  _STM32_PIN(G,  9)
297
+  #undef PG10
298
+  #define PG10 _STM32_PIN(G, 10)
299
+  #undef PG11
300
+  #define PG11 _STM32_PIN(G, 11)
301
+  #undef PG12
302
+  #define PG12 _STM32_PIN(G, 12)
303
+  #undef PG13
304
+  #define PG13 _STM32_PIN(G, 13)
305
+  #undef PG14
306
+  #define PG14 _STM32_PIN(G, 14)
307
+  #undef PG15
308
+  #define PG15 _STM32_PIN(G, 15)
309
+
310
+#endif // STM32GENERIC && STM32F7

+ 0
- 210
Marlin/src/HAL/HAL_STM32_F4_F7/fastio_STM32_F4_F7.h 파일 보기

@@ -1,210 +0,0 @@
1
-/**
2
- * Marlin 3D Printer Firmware
3
- * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
- *
5
- * Based on Sprinter and grbl.
6
- * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7
- * Copyright (c) 2017 Victor Perez
8
- *
9
- * This program is free software: you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License as published by
11
- * the Free Software Foundation, either version 3 of the License, or
12
- * (at your option) any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
- * GNU General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU General Public License
20
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
- *
22
- */
23
-#pragma once
24
-
25
-/**
26
- * Fast I/O interfaces for STM32F4/7
27
- * These use GPIO functions instead of Direct Port Manipulation, as on AVR.
28
- */
29
-
30
-#ifndef PWM
31
-  #define PWM OUTPUT
32
-#endif
33
-
34
-#define READ(IO)                digitalRead(IO)
35
-#define WRITE(IO,V)             digitalWrite(IO,V)
36
-
37
-#define _GET_MODE(IO)
38
-#define _SET_MODE(IO,M)         pinMode(IO, M)
39
-#define _SET_OUTPUT(IO)         pinMode(IO, OUTPUT)                               /*!< Output Push Pull Mode & GPIO_NOPULL   */
40
-
41
-#define OUT_WRITE(IO,V)         do{ _SET_OUTPUT(IO); WRITE(IO,V); }while(0)
42
-
43
-#define SET_INPUT(IO)           _SET_MODE(IO, INPUT)                              /*!< Input Floating Mode                   */
44
-#define SET_INPUT_PULLUP(IO)    _SET_MODE(IO, INPUT_PULLUP)                       /*!< Input with Pull-up activation         */
45
-#define SET_INPUT_PULLDOWN(IO)  _SET_MODE(IO, INPUT_PULLDOWN)                     /*!< Input with Pull-down activation       */
46
-#define SET_OUTPUT(IO)          OUT_WRITE(IO, LOW)
47
-#define SET_PWM(IO)             _SET_MODE(IO, PWM)
48
-
49
-#define TOGGLE(IO)              OUT_WRITE(IO, !READ(IO))
50
-
51
-#define IS_INPUT(IO)
52
-#define IS_OUTPUT(IO)
53
-
54
-#define PWM_PIN(P)              true
55
-
56
-// digitalRead/Write wrappers
57
-#define extDigitalRead(IO)    digitalRead(IO)
58
-#define extDigitalWrite(IO,V) digitalWrite(IO,V)
59
-
60
-//
61
-// Pins Definitions
62
-//
63
-#define PORTA 0
64
-#define PORTB 1
65
-#define PORTC 2
66
-#define PORTD 3
67
-#define PORTE 4
68
-#define PORTF 5
69
-#define PORTG 6
70
-
71
-#define _STM32_PIN(P,PN) ((PORT##P * 16) + PN)
72
-
73
-#ifndef PA0
74
-  #define PA0  _STM32_PIN(A,  0)
75
-  #define PA1  _STM32_PIN(A,  1)
76
-  #define PA2  _STM32_PIN(A,  2)
77
-  #define PA3  _STM32_PIN(A,  3)
78
-  #define PA4  _STM32_PIN(A,  4)
79
-  #define PA5  _STM32_PIN(A,  5)
80
-  #define PA6  _STM32_PIN(A,  6)
81
-  #define PA7  _STM32_PIN(A,  7)
82
-  #define PA8  _STM32_PIN(A,  8)
83
-  #define PA9  _STM32_PIN(A,  9)
84
-  #define PA10 _STM32_PIN(A, 10)
85
-  #define PA11 _STM32_PIN(A, 11)
86
-  #define PA12 _STM32_PIN(A, 12)
87
-  #define PA13 _STM32_PIN(A, 13)
88
-  #define PA14 _STM32_PIN(A, 14)
89
-  #define PA15 _STM32_PIN(A, 15)
90
-#endif
91
-
92
-#ifndef PB0
93
-  #define PB0  _STM32_PIN(B,  0)
94
-  #define PB1  _STM32_PIN(B,  1)
95
-  #define PB2  _STM32_PIN(B,  2)
96
-  #define PB3  _STM32_PIN(B,  3)
97
-  #define PB4  _STM32_PIN(B,  4)
98
-  #define PB5  _STM32_PIN(B,  5)
99
-  #define PB6  _STM32_PIN(B,  6)
100
-  #define PB7  _STM32_PIN(B,  7)
101
-  #define PB8  _STM32_PIN(B,  8)
102
-  #define PB9  _STM32_PIN(B,  9)
103
-  #define PB10 _STM32_PIN(B, 10)
104
-  #define PB11 _STM32_PIN(B, 11)
105
-  #define PB12 _STM32_PIN(B, 12)
106
-  #define PB13 _STM32_PIN(B, 13)
107
-  #define PB14 _STM32_PIN(B, 14)
108
-  #define PB15 _STM32_PIN(B, 15)
109
-#endif
110
-
111
-#ifndef PC0
112
-  #define PC0  _STM32_PIN(C,  0)
113
-  #define PC1  _STM32_PIN(C,  1)
114
-  #define PC2  _STM32_PIN(C,  2)
115
-  #define PC3  _STM32_PIN(C,  3)
116
-  #define PC4  _STM32_PIN(C,  4)
117
-  #define PC5  _STM32_PIN(C,  5)
118
-  #define PC6  _STM32_PIN(C,  6)
119
-  #define PC7  _STM32_PIN(C,  7)
120
-  #define PC8  _STM32_PIN(C,  8)
121
-  #define PC9  _STM32_PIN(C,  9)
122
-  #define PC10 _STM32_PIN(C, 10)
123
-  #define PC11 _STM32_PIN(C, 11)
124
-  #define PC12 _STM32_PIN(C, 12)
125
-  #define PC13 _STM32_PIN(C, 13)
126
-  #define PC14 _STM32_PIN(C, 14)
127
-  #define PC15 _STM32_PIN(C, 15)
128
-#endif
129
-
130
-#ifndef PD0
131
-  #define PD0  _STM32_PIN(D,  0)
132
-  #define PD1  _STM32_PIN(D,  1)
133
-  #define PD2  _STM32_PIN(D,  2)
134
-  #define PD3  _STM32_PIN(D,  3)
135
-  #define PD4  _STM32_PIN(D,  4)
136
-  #define PD5  _STM32_PIN(D,  5)
137
-  #define PD6  _STM32_PIN(D,  6)
138
-  #define PD7  _STM32_PIN(D,  7)
139
-  #define PD8  _STM32_PIN(D,  8)
140
-  #define PD9  _STM32_PIN(D,  9)
141
-  #define PD10 _STM32_PIN(D, 10)
142
-  #define PD11 _STM32_PIN(D, 11)
143
-  #define PD12 _STM32_PIN(D, 12)
144
-  #define PD13 _STM32_PIN(D, 13)
145
-  #define PD14 _STM32_PIN(D, 14)
146
-  #define PD15 _STM32_PIN(D, 15)
147
-#endif
148
-
149
-#ifndef PE0
150
-  #define PE0  _STM32_PIN(E,  0)
151
-  #define PE1  _STM32_PIN(E,  1)
152
-  #define PE2  _STM32_PIN(E,  2)
153
-  #define PE3  _STM32_PIN(E,  3)
154
-  #define PE4  _STM32_PIN(E,  4)
155
-  #define PE5  _STM32_PIN(E,  5)
156
-  #define PE6  _STM32_PIN(E,  6)
157
-  #define PE7  _STM32_PIN(E,  7)
158
-  #define PE8  _STM32_PIN(E,  8)
159
-  #define PE9  _STM32_PIN(E,  9)
160
-  #define PE10 _STM32_PIN(E, 10)
161
-  #define PE11 _STM32_PIN(E, 11)
162
-  #define PE12 _STM32_PIN(E, 12)
163
-  #define PE13 _STM32_PIN(E, 13)
164
-  #define PE14 _STM32_PIN(E, 14)
165
-  #define PE15 _STM32_PIN(E, 15)
166
-#endif
167
-
168
-#ifdef STM32F7
169
-
170
-  #ifndef PF0
171
-    #define PORTF 5
172
-    #define PF0  _STM32_PIN(F,  0)
173
-    #define PF1  _STM32_PIN(F,  1)
174
-    #define PF2  _STM32_PIN(F,  2)
175
-    #define PF3  _STM32_PIN(F,  3)
176
-    #define PF4  _STM32_PIN(F,  4)
177
-    #define PF5  _STM32_PIN(F,  5)
178
-    #define PF6  _STM32_PIN(F,  6)
179
-    #define PF7  _STM32_PIN(F,  7)
180
-    #define PF8  _STM32_PIN(F,  8)
181
-    #define PF9  _STM32_PIN(F,  9)
182
-    #define PF10 _STM32_PIN(F, 10)
183
-    #define PF11 _STM32_PIN(F, 11)
184
-    #define PF12 _STM32_PIN(F, 12)
185
-    #define PF13 _STM32_PIN(F, 13)
186
-    #define PF14 _STM32_PIN(F, 14)
187
-    #define PF15 _STM32_PIN(F, 15)
188
-  #endif
189
-
190
-  #ifndef PG0
191
-    #define PORTG 6
192
-    #define PG0  _STM32_PIN(G,  0)
193
-    #define PG1  _STM32_PIN(G,  1)
194
-    #define PG2  _STM32_PIN(G,  2)
195
-    #define PG3  _STM32_PIN(G,  3)
196
-    #define PG4  _STM32_PIN(G,  4)
197
-    #define PG5  _STM32_PIN(G,  5)
198
-    #define PG6  _STM32_PIN(G,  6)
199
-    #define PG7  _STM32_PIN(G,  7)
200
-    #define PG8  _STM32_PIN(G,  8)
201
-    #define PG9  _STM32_PIN(G,  9)
202
-    #define PG10 _STM32_PIN(G, 10)
203
-    #define PG11 _STM32_PIN(G, 11)
204
-    #define PG12 _STM32_PIN(G, 12)
205
-    #define PG13 _STM32_PIN(G, 13)
206
-    #define PG14 _STM32_PIN(G, 14)
207
-    #define PG15 _STM32_PIN(G, 15)
208
-  #endif
209
-
210
-#endif // STM32GENERIC && STM32F7

Marlin/src/HAL/HAL_STM32_F4_F7/HAL_timers_STM32_F4_F7.h → Marlin/src/HAL/HAL_STM32_F4_F7/timers.h 파일 보기

@@ -22,7 +22,7 @@
22 22
 #pragma once
23 23
 
24 24
 #ifdef STM32F4
25
-  #include "STM32F4/HAL_timers_STM32F4.h"
25
+  #include "STM32F4/timers.h"
26 26
 #else
27
-  #include "STM32F7/HAL_timers_STM32F7.h"
27
+  #include "STM32F7/timers.h"
28 28
 #endif

Marlin/src/HAL/HAL_STM32_F4_F7/watchdog_STM32_F4_F7.cpp → Marlin/src/HAL/HAL_STM32_F4_F7/watchdog.cpp 파일 보기

@@ -26,7 +26,7 @@
26 26
 
27 27
 #if ENABLED(USE_WATCHDOG)
28 28
 
29
-  #include "watchdog_STM32_F4_F7.h"
29
+  #include "watchdog.h"
30 30
 
31 31
   IWDG_HandleTypeDef hiwdg;
32 32
 

Marlin/src/HAL/HAL_STM32_F4_F7/watchdog_STM32_F4_F7.h → Marlin/src/HAL/HAL_STM32_F4_F7/watchdog.h 파일 보기


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.

Loading…
취소
저장