Skip to content

Commit

Permalink
Remove HAL.h dependency in SoftwareSerial.h
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Aug 8, 2019
1 parent a6f682d commit 9624c90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Marlin/src/HAL/HAL_STM32F1/SoftwareSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

// Constructor

SoftwareSerial::SoftwareSerial(pin_t RX_pin, pin_t TX_pin) {}
SoftwareSerial::SoftwareSerial(int8_t RX_pin, int8_t TX_pin) {}

// Public

Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/HAL/HAL_STM32F1/SoftwareSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
*/
#pragma once

#include "HAL.h"
#include <stdint.h>

#define SW_SERIAL_PLACEHOLDER 1

class SoftwareSerial {
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);

Expand Down

0 comments on commit 9624c90

Please sign in to comment.