PropWare
C++ objects and CMake build system for Parallax Propeller
Home
Download
Getting Started
Documentation
Reference
About
Related Links
Namespace List
Class List
File List
Examples
Build System
File List
File Members
propsideworkspace
Learn
Simple Libraries
Social
libbadgetools
ir_rxflush.c
1
#include <stdlib.h>
2
#include <propeller.h>
3
#include "
badgetools.h
"
4
5
jm_ir_hdserial
*irself;
6
7
int32_t ircom_rxflush(
void
)
8
{
9
// Flush receive buffer
10
while
(ircom_rxcheck() >= 0) {
11
Yield__();
12
}
13
return
0;
14
}
15
16
/*
17
TERMS OF USE: MIT License
18
19
Permission is hereby granted, free of charge, to any person obtaining a
20
copy of this software and associated documentation files (the "Software"),
21
to deal in the Software without restriction, including without limitation
22
the rights to use, copy, modify, merge, publish, distribute, sublicense,
23
and/or sell copies of the Software, and to permit persons to whom the
24
Software is furnished to do so, subject to the following conditions:
25
26
The above copyright notice and this permission notice shall be included in
27
all copies or substantial portions of the Software.
28
29
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
32
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
34
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
35
DEALINGS IN THE SOFTWARE.
36
*/
37
jm_ir_hdserial
Definition:
badgetools.h:1427
badgetools.h
This library provides convenient functions for a variety of Parallax eBadge operations.
Generated on Sat Aug 27 2016 00:58:09 for PropWare by
1.8.12