add LPC1114FN28 support
Dependents: rosserial_mbed_lib
Fork of MODSERIAL by
MODSERIAL_IRQ_INFO.cpp@18:21ef26402365, 2011-04-21 (annotated)
- Committer:
- AjK
- Date:
- Thu Apr 21 09:20:41 2011 +0000
- Revision:
- 18:21ef26402365
- Child:
- 20:59c74aaedda2
1.18 See ChangeLog.c
Who changed what in which revision?
User | Revision | Line number | New 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 | 18:21ef26402365 | 22 | @file MODSERIAL_CB.h |
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 |