Browse Source

Remove HAL.h dependency in SoftwareSerial.h

Scott Lahteine 5 years ago
parent
commit
9624c90cfb

+ 1
- 1
Marlin/src/HAL/HAL_STM32F1/SoftwareSerial.cpp View File

@@ -28,7 +28,7 @@
28 28
 
29 29
 // Constructor
30 30
 
31
-SoftwareSerial::SoftwareSerial(pin_t RX_pin, pin_t TX_pin) {}
31
+SoftwareSerial::SoftwareSerial(int8_t RX_pin, int8_t TX_pin) {}
32 32
 
33 33
 // Public
34 34
 

+ 2
- 2
Marlin/src/HAL/HAL_STM32F1/SoftwareSerial.h View File

@@ -18,13 +18,13 @@
18 18
  */
19 19
 #pragma once
20 20
 
21
-#include "HAL.h"
21
+#include <stdint.h>
22 22
 
23 23
 #define SW_SERIAL_PLACEHOLDER 1
24 24
 
25 25
 class SoftwareSerial {
26 26
 public:
27
-  SoftwareSerial(pin_t RX_pin, pin_t TX_pin);
27
+  SoftwareSerial(int8_t RX_pin, int8_t TX_pin);
28 28
 
29 29
   void begin(const uint32_t baudrate);
30 30
 

Loading…
Cancel
Save