-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathSoftwareSerial.cpp
49 lines (44 loc) · 1.02 KB
/
SoftwareSerial.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
Copyright (C) 2011 J. Coliz <maniacbug@ymail.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundation.
*/
// STL headers
// C headers
// Framework headers
#include <Logger.h>
#include <SerialBuffer.h>
// Library headers
// Project headers
// This component's header
#include <SoftwareSerial.h>
extern Logger theLogger;
extern SerialBuffer theSerialBuffer;
/****************************************************************************/
SoftwareSerial::SoftwareSerial(uint8_t /*receivePin*/, uint8_t /*transmitPin*/, bool /*inverse_logic*/ )
{
}
SoftwareSerial::~SoftwareSerial()
{
}
void SoftwareSerial::begin(long /*speed*/)
{
theLogger.sketch("CORE","Software Serial started.");
}
void SoftwareSerial::write(uint8_t c)
{
theSerialBuffer.put(c);
}
void SoftwareSerial::flush()
{
}
int SoftwareSerial::read()
{
return 32;
}
int SoftwareSerial::available()
{
return 0;
}
// vim:cin:ai:sts=2 sw=2 ft=cpp