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