MODSERIAL with support for more devices

Fork of MODSERIAL by Erik -

Committer:
Tejas Kale
Date:
Mon Jan 29 23:16:48 2018 +0100
Revision:
49:18f8dc534348
Parent:
48:8b47b4b1e5e8
Fix Compiler warnings

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Gary Servin 41:d8422efe4761 1 /*
Gary Servin 41:d8422efe4761 2 Copyright (c) 2010 Andy Kirkham
Gary Servin 41:d8422efe4761 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:
Gary Servin 41:d8422efe4761 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.
Gary Servin 41:d8422efe4761 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
Tejas Kale 45:350e5b7d0d61 26
tkale 48:8b47b4b1e5e8 27 #include "MODSERIAL_LPC1768.h"
tkale 48:8b47b4b1e5e8 28 #include "MODSERIAL_LPC11U24.h"
tkale 48:8b47b4b1e5e8 29 #include "MODSERIAL_KL25Z.h"
tkale 48:8b47b4b1e5e8 30 #include "MODSERIAL_KL05Z.h"
tkale 48:8b47b4b1e5e8 31 #include "MODSERIAL_KSDK.h"
tkale 48:8b47b4b1e5e8 32 #include "MODSERIAL_NUCLEO_F401RE.h"
tkale 48:8b47b4b1e5e8 33 #include "MODSERIAL_PAC_F401RB.h"
tkale 48:8b47b4b1e5e8 34 #include "MODSERIAL_NUCLEO_L432KC.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