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