1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-08-07 00:04:36 +03:00

A modification of [New]SoftSerial to meet certain requests David

Mellis asked about in preparation for integration into core:
1. Remove notion of library version
2. Remove little used "enable_timer0" method.
3. Rename is_listening to isListening
i

:insert

:
:set showmode
This commit is contained in:
Mikal Hart
2011-02-17 23:55:38 -06:00
parent 38d4a34fec
commit 2832e8e0a8
4 changed files with 7 additions and 33 deletions

View File

@@ -40,7 +40,6 @@ http://arduiniana.org.
******************************************************************************/
#define _SS_MAX_RX_BUFF 64 // RX buffer size
#define _SS_VERSION 11 // software version of this library
#ifndef GCC_VERSION
#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
#endif
@@ -86,10 +85,8 @@ public:
void begin(long speed);
bool listen();
void end();
bool is_listening() { return this == active_object; }
bool isListening() { return this == active_object; }
bool overflow() { bool ret = _buffer_overflow; _buffer_overflow = false; return ret; }
static int library_version() { return _SS_VERSION; }
static void enable_timer0(bool enable);
int peek();
virtual void write(uint8_t byte);