MODSERIAL with support for more devices

Fork of MODSERIAL by Erik -

Committer:
garyservin
Date:
Sun Sep 20 02:56:47 2015 +0000
Revision:
40:6ffa97119f4f
Parent:
39:8ef4f91813fd
Child:
41:d8422efe4761
Added support for STM Nucleo F401RE platform

Who changed what in which revision?

UserRevisionLine numberNew 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"
Sissors 28:76793a84f9e5 27 #include "MODSERIAL_LPC11U24.h"
Sissors 28:76793a84f9e5 28 #include "MODSERIAL_KL25Z.h"
chaegle 34:e84b8ad1d98b 29 #include "MODSERIAL_KL05Z.h"
Sissors 39:8ef4f91813fd 30 #include "MODSERIAL_KSDK.h"
garyservin 40:6ffa97119f4f 31 #include "MODSERIAL_NUCLEO_F401RE.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