MODSERIAL with support for more devices

Dependents:   1D-Pong BMT-K9_encoder BMT-K9-Regelaar programma_filter ... more

Check the cookbook page for more information: https://mbed.org/cookbook/MODSERIAL

Did you add a device? Please send a pull request so we can keep everything in one library instead of many copies. In that case also send a PM, since currently mbed does not inform of new pull requests. I will then also add you to the developers of this library so you can do other changes directly.

Committer:
riaancillie
Date:
Sun May 05 14:57:11 2019 +0000
Revision:
46:d2a5e26fd658
Parent:
20:59c74aaedda2
Added support for target NUCLEO_F103RB

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AjK 18:21ef26402365 1 /*
AjK 18:21ef26402365 2 Copyright (c) 2010 Andy Kirkham
AjK 18:21ef26402365 3
AjK 18:21ef26402365 4 Permission is hereby granted, free of charge, to any person obtaining a copy
AjK 18:21ef26402365 5 of this software and associated documentation files (the "Software"), to deal
AjK 18:21ef26402365 6 in the Software without restriction, including without limitation the rights
AjK 18:21ef26402365 7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
AjK 18:21ef26402365 8 copies of the Software, and to permit persons to whom the Software is
AjK 18:21ef26402365 9 furnished to do so, subject to the following conditions:
AjK 18:21ef26402365 10
AjK 18:21ef26402365 11 The above copyright notice and this permission notice shall be included in
AjK 18:21ef26402365 12 all copies or substantial portions of the Software.
AjK 18:21ef26402365 13
AjK 18:21ef26402365 14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
AjK 18:21ef26402365 15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
AjK 18:21ef26402365 16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AjK 18:21ef26402365 17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
AjK 18:21ef26402365 18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
AjK 18:21ef26402365 19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
AjK 18:21ef26402365 20 THE SOFTWARE.
AjK 18:21ef26402365 21
AjK 20:59c74aaedda2 22 @file MODSERIAL_IRQ_INFO.cpp
AjK 18:21ef26402365 23 @author Andy Kirkham
AjK 18:21ef26402365 24 */
AjK 18:21ef26402365 25
AjK 18:21ef26402365 26 #include "MODSERIAL.h"
AjK 18:21ef26402365 27
AjK 18:21ef26402365 28 namespace AjK {
AjK 18:21ef26402365 29
AjK 18:21ef26402365 30 int
AjK 18:21ef26402365 31 MODSERIAL_IRQ_INFO::rxDiscardLastChar(void)
AjK 18:21ef26402365 32 {
AjK 18:21ef26402365 33 if (!serial) return -1;
AjK 18:21ef26402365 34
AjK 18:21ef26402365 35 return serial->rxDiscardLastChar();
AjK 18:21ef26402365 36 }
AjK 18:21ef26402365 37
AjK 18:21ef26402365 38 }; // namespace AjK ends