MODSERIAL with support for more devices. Added support for LPC4330
Dependents: HC05_AT_mode GPS_U-blox_NEO-6M_Test_Code GPS_U-blox_NEO-6M_Code UbloxGPSWithThread ... more
Fork of MODSERIAL by
MACROS.h@36:4213f9a7c3ad, 2014-08-12 (annotated)
- Committer:
- edodm85
- Date:
- Tue Aug 12 16:05:10 2014 +0000
- Revision:
- 36:4213f9a7c3ad
- Parent:
- 34:e84b8ad1d98b
Added support for LPC4330
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 | 28:76793a84f9e5 | 26 | #include "MODSERIAL_LPC1768.h" |
edodm85 | 36:4213f9a7c3ad | 27 | #include "MODSERIAL_LPC4330.h" |
Sissors | 28:76793a84f9e5 | 28 | #include "MODSERIAL_LPC11U24.h" |
Sissors | 28:76793a84f9e5 | 29 | #include "MODSERIAL_KL25Z.h" |
chaegle | 34:e84b8ad1d98b | 30 | #include "MODSERIAL_KL05Z.h" |
chaegle | 34:e84b8ad1d98b | 31 | #include "MODSERIAL_K64F.h" |
AjK | 12:8c7394e2ae7f | 32 | |
AjK | 12:8c7394e2ae7f | 33 | #define MODSERIAL_TX_BUFFER_EMPTY (buffer_count[TxIrq]==0) |
AjK | 12:8c7394e2ae7f | 34 | #define MODSERIAL_RX_BUFFER_EMPTY (buffer_count[RxIrq]==0) |
AjK | 12:8c7394e2ae7f | 35 | #define MODSERIAL_TX_BUFFER_FULL (buffer_count[TxIrq]==buffer_size[TxIrq]) |
AjK | 12:8c7394e2ae7f | 36 | #define MODSERIAL_RX_BUFFER_FULL (buffer_count[RxIrq]==buffer_size[RxIrq]) |
AjK | 12:8c7394e2ae7f | 37 | |
Sissors | 28:76793a84f9e5 | 38 | #endif |