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
 
28
 
29
 // Constructor
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
 // Public
33
 // Public
34
 
34
 

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

18
  */
18
  */
19
 #pragma once
19
 #pragma once
20
 
20
 
21
-#include "HAL.h"
21
+#include <stdint.h>
22
 
22
 
23
 #define SW_SERIAL_PLACEHOLDER 1
23
 #define SW_SERIAL_PLACEHOLDER 1
24
 
24
 
25
 class SoftwareSerial {
25
 class SoftwareSerial {
26
 public:
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
   void begin(const uint32_t baudrate);
29
   void begin(const uint32_t baudrate);
30
 
30
 

Loading…
Cancel
Save