|
|
@@ -239,6 +239,7 @@ void serial6_clear(void); |
|
|
|
class HardwareSerial : public Stream |
|
|
|
{ |
|
|
|
public: |
|
|
|
constexpr HardwareSerial() {} |
|
|
|
virtual void begin(uint32_t baud) { serial_begin(BAUD2DIV(baud)); } |
|
|
|
virtual void begin(uint32_t baud, uint32_t format) { |
|
|
|
serial_begin(BAUD2DIV(baud)); |
|
|
@@ -275,6 +276,7 @@ extern void serialEvent1(void); |
|
|
|
class HardwareSerial2 : public HardwareSerial |
|
|
|
{ |
|
|
|
public: |
|
|
|
constexpr HardwareSerial2() {} |
|
|
|
virtual void begin(uint32_t baud) { serial2_begin(BAUD2DIV2(baud)); } |
|
|
|
virtual void begin(uint32_t baud, uint32_t format) { |
|
|
|
serial2_begin(BAUD2DIV2(baud)); |
|
|
@@ -311,6 +313,7 @@ extern void serialEvent2(void); |
|
|
|
class HardwareSerial3 : public HardwareSerial |
|
|
|
{ |
|
|
|
public: |
|
|
|
constexpr HardwareSerial3() {} |
|
|
|
virtual void begin(uint32_t baud) { serial3_begin(BAUD2DIV3(baud)); } |
|
|
|
virtual void begin(uint32_t baud, uint32_t format) { |
|
|
|
serial3_begin(BAUD2DIV3(baud)); |
|
|
@@ -347,6 +350,7 @@ extern void serialEvent3(void); |
|
|
|
class HardwareSerial4 : public HardwareSerial |
|
|
|
{ |
|
|
|
public: |
|
|
|
constexpr HardwareSerial4() {} |
|
|
|
virtual void begin(uint32_t baud) { serial4_begin(BAUD2DIV3(baud)); } |
|
|
|
virtual void begin(uint32_t baud, uint32_t format) { |
|
|
|
serial4_begin(BAUD2DIV3(baud)); |
|
|
@@ -383,6 +387,7 @@ extern void serialEvent4(void); |
|
|
|
class HardwareSerial5 : public HardwareSerial |
|
|
|
{ |
|
|
|
public: |
|
|
|
constexpr HardwareSerial5() {} |
|
|
|
virtual void begin(uint32_t baud) { serial5_begin(BAUD2DIV3(baud)); } |
|
|
|
virtual void begin(uint32_t baud, uint32_t format) { |
|
|
|
serial5_begin(BAUD2DIV3(baud)); |
|
|
@@ -419,6 +424,7 @@ extern void serialEvent5(void); |
|
|
|
class HardwareSerial6 : public HardwareSerial |
|
|
|
{ |
|
|
|
public: |
|
|
|
constexpr HardwareSerial6() {} |
|
|
|
#if defined(__MK66FX1M0__) // For LPUART just pass baud straight in. |
|
|
|
virtual void begin(uint32_t baud) { serial6_begin(baud); } |
|
|
|
virtual void begin(uint32_t baud, uint32_t format) { |