Only imu output
Fork of FYDP_Final2 by
mbed/MODSERIAL/MACROS.h@5:d2e955a94940, 2015-03-25 (annotated)
- Committer:
- tntmarket
- Date:
- Wed Mar 25 09:58:50 2015 +0000
- Revision:
- 5:d2e955a94940
- Parent:
- 0:21019d94ad33
only imu output
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
majik | 0:21019d94ad33 | 1 | /* |
majik | 0:21019d94ad33 | 2 | Copyright (c) 2010 Andy Kirkham |
majik | 0:21019d94ad33 | 3 | |
majik | 0:21019d94ad33 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy |
majik | 0:21019d94ad33 | 5 | of this software and associated documentation files (the "Software"), to deal |
majik | 0:21019d94ad33 | 6 | in the Software without restriction, including without limitation the rights |
majik | 0:21019d94ad33 | 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
majik | 0:21019d94ad33 | 8 | copies of the Software, and to permit persons to whom the Software is |
majik | 0:21019d94ad33 | 9 | furnished to do so, subject to the following conditions: |
majik | 0:21019d94ad33 | 10 | |
majik | 0:21019d94ad33 | 11 | The above copyright notice and this permission notice shall be included in |
majik | 0:21019d94ad33 | 12 | all copies or substantial portions of the Software. |
majik | 0:21019d94ad33 | 13 | |
majik | 0:21019d94ad33 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
majik | 0:21019d94ad33 | 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
majik | 0:21019d94ad33 | 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
majik | 0:21019d94ad33 | 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
majik | 0:21019d94ad33 | 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
majik | 0:21019d94ad33 | 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
majik | 0:21019d94ad33 | 20 | THE SOFTWARE. |
majik | 0:21019d94ad33 | 21 | */ |
majik | 0:21019d94ad33 | 22 | |
majik | 0:21019d94ad33 | 23 | #ifndef MODSERIAL_MACROS_H |
majik | 0:21019d94ad33 | 24 | #define MODSERIAL_MACROS_H |
majik | 0:21019d94ad33 | 25 | |
majik | 0:21019d94ad33 | 26 | #include "MODSERIAL_LPC1768.h" |
majik | 0:21019d94ad33 | 27 | #include "MODSERIAL_LPC11U24.h" |
majik | 0:21019d94ad33 | 28 | #include "MODSERIAL_KL25Z.h" |
majik | 0:21019d94ad33 | 29 | #include "MODSERIAL_KL05Z.h" |
majik | 0:21019d94ad33 | 30 | #include "MODSERIAL_K64F.h" |
majik | 0:21019d94ad33 | 31 | |
majik | 0:21019d94ad33 | 32 | #define MODSERIAL_TX_BUFFER_EMPTY (buffer_count[TxIrq]==0) |
majik | 0:21019d94ad33 | 33 | #define MODSERIAL_RX_BUFFER_EMPTY (buffer_count[RxIrq]==0) |
majik | 0:21019d94ad33 | 34 | #define MODSERIAL_TX_BUFFER_FULL (buffer_count[TxIrq]==buffer_size[TxIrq]) |
majik | 0:21019d94ad33 | 35 | #define MODSERIAL_RX_BUFFER_FULL (buffer_count[RxIrq]==buffer_size[RxIrq]) |
majik | 0:21019d94ad33 | 36 | |
majik | 0:21019d94ad33 | 37 | #endif |