aboutsummaryrefslogtreecommitdiffstats
path: root/src/wiring/comm/Serial.h
blob: 0e7a1269f8e105c3c9039a60ee14ccdb33e99ef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _SERIAL_H_
#define _SERIAL_H_

#include <inttypes.h>
#include <Print.h>

class Serial : public Print {
    public:
        Serial();
        void begin(uint32_t);
        uint8_t available(void);
        int read(void);
        void flush(void);
        virtual void write(uint8_t);
        using Print::write;
};

extern Serial Serial1;
#endif