Browse Source

Remove HAL.h dependency in SoftwareSerial.h

pull/1/head
Scott Lahteine 5 years ago
parent
commit
9624c90cfb
  1. 2
      Marlin/src/HAL/HAL_STM32F1/SoftwareSerial.cpp
  2. 4
      Marlin/src/HAL/HAL_STM32F1/SoftwareSerial.h

2
Marlin/src/HAL/HAL_STM32F1/SoftwareSerial.cpp

@ -28,7 +28,7 @@
// Constructor // Constructor
SoftwareSerial::SoftwareSerial(pin_t RX_pin, pin_t TX_pin) {} SoftwareSerial::SoftwareSerial(int8_t RX_pin, int8_t TX_pin) {}
// Public // Public

4
Marlin/src/HAL/HAL_STM32F1/SoftwareSerial.h

@ -18,13 +18,13 @@
*/ */
#pragma once #pragma once
#include "HAL.h" #include <stdint.h>
#define SW_SERIAL_PLACEHOLDER 1 #define SW_SERIAL_PLACEHOLDER 1
class SoftwareSerial { class SoftwareSerial {
public: public:
SoftwareSerial(pin_t RX_pin, pin_t TX_pin); SoftwareSerial(int8_t RX_pin, int8_t TX_pin);
void begin(const uint32_t baudrate); void begin(const uint32_t baudrate);

Loading…
Cancel
Save