Kaynağa Gözat

Finish HAL/STM32 cpp wrappers

Scott Lahteine 4 yıl önce
ebeveyn
işleme
aa2ced96e0

+ 0
- 1
Marlin/src/HAL/STM32/MarlinSPI.cpp Dosyayı Görüntüle

@@ -19,7 +19,6 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
-
23 22
 #if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
24 23
 
25 24
 #include "MarlinSPI.h"

+ 0
- 1
Marlin/src/HAL/STM32/MarlinSerial.cpp Dosyayı Görüntüle

@@ -16,7 +16,6 @@
16 16
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
17 17
  *
18 18
  */
19
-
20 19
 #if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
21 20
 
22 21
 #include "../../inc/MarlinConfig.h"

+ 3
- 1
Marlin/src/HAL/STM32/Sd2Card_sdio_stm32duino.cpp Dosyayı Görüntüle

@@ -19,10 +19,11 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
22 23
 
23 24
 #include "../../inc/MarlinConfig.h"
24 25
 
25
-#if ENABLED(SDIO_SUPPORT) && !defined(STM32GENERIC)
26
+#if ENABLED(SDIO_SUPPORT)
26 27
 
27 28
 #include <stdint.h>
28 29
 #include <stdbool.h>
@@ -319,3 +320,4 @@
319 320
 
320 321
 #endif // !USBD_USE_CDC_COMPOSITE
321 322
 #endif // SDIO_SUPPORT
323
+#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC

+ 2
- 3
Marlin/src/HAL/STM32/eeprom_sdcard.cpp Dosyayı Görüntüle

@@ -19,13 +19,12 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
22 23
 
23 24
 /**
24 25
  * Implementation of EEPROM settings in SD Card
25 26
  */
26 27
 
27
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
28
-
29 28
 #include "../../inc/MarlinConfig.h"
30 29
 
31 30
 #if ENABLED(SDCARD_EEPROM_EMULATION)
@@ -89,4 +88,4 @@ bool PersistentStore::read_data(int &pos, uint8_t *value, const size_t size, uin
89 88
 }
90 89
 
91 90
 #endif // SDCARD_EEPROM_EMULATION
92
-#endif // STM32 && !STM32GENERIC
91
+#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC

+ 2
- 0
Marlin/src/HAL/STM32/fast_pwm.cpp Dosyayı Görüntüle

@@ -19,6 +19,7 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
22 23
 
23 24
 #include "../../inc/MarlinConfigPre.h"
24 25
 
@@ -55,3 +56,4 @@ void set_pwm_duty(const pin_t pin, const uint16_t v, const uint16_t v_size/*=255
55 56
 }
56 57
 
57 58
 #endif // NEEDS_HARDWARE_PWM
59
+#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC

+ 2
- 0
Marlin/src/HAL/STM32/tft/tft_fsmc.cpp Dosyayı Görüntüle

@@ -19,6 +19,7 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
22 23
 
23 24
 #include "../../../inc/MarlinConfig.h"
24 25
 
@@ -178,3 +179,4 @@ void TFT_FSMC::TransmitDMA(uint32_t MemoryIncrease, uint16_t *Data, uint16_t Cou
178 179
 }
179 180
 
180 181
 #endif // HAS_FSMC_TFT
182
+#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC

+ 2
- 0
Marlin/src/HAL/STM32/tft/tft_spi.cpp Dosyayı Görüntüle

@@ -19,6 +19,7 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
22 23
 
23 24
 #include "../../../inc/MarlinConfig.h"
24 25
 
@@ -210,3 +211,4 @@ void TFT_SPI::TransmitDMA(uint32_t MemoryIncrease, uint16_t *Data, uint16_t Coun
210 211
 }
211 212
 
212 213
 #endif // HAS_SPI_TFT
214
+#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC

+ 2
- 0
Marlin/src/HAL/STM32/tft/xpt2046.cpp Dosyayı Görüntüle

@@ -19,6 +19,7 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
22 23
 
23 24
 #include "../../../inc/MarlinConfig.h"
24 25
 
@@ -186,3 +187,4 @@ uint16_t XPT2046::SoftwareIO(uint16_t data) {
186 187
 }
187 188
 
188 189
 #endif // HAS_TFT_XPT2046
190
+#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC

+ 1
- 2
Marlin/src/HAL/STM32/usb_serial.cpp Dosyayı Görüntüle

@@ -16,7 +16,6 @@
16 16
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
17 17
  *
18 18
  */
19
-
20 19
 #if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
21 20
 
22 21
 #include "../../inc/MarlinConfigPre.h"
@@ -51,5 +50,5 @@ void USB_Hook_init() {
51 50
   USBD_CDC_fops.Receive = USBD_CDC_Receive_hook;
52 51
 }
53 52
 
54
-#endif // EMERGENCY_PARSER
53
+#endif // EMERGENCY_PARSER && USBD_USE_CDC
55 54
 #endif // ARDUINO_ARCH_STM32 && !STM32GENERIC

+ 0
- 1
Marlin/src/HAL/STM32/watchdog.cpp Dosyayı Görüntüle

@@ -46,5 +46,4 @@ void HAL_watchdog_refresh() {
46 46
 }
47 47
 
48 48
 #endif // USE_WATCHDOG
49
-
50 49
 #endif // ARDUINO_ARCH_STM32 && !STM32GENERIC

Loading…
İptal
Kaydet