libnfc  1.4.2
uart.c
Go to the documentation of this file.
1 /*-
2  * Public platform independent Near Field Communication (NFC) library
3  *
4  * Copyright (C) 2009, 2010, Roel Verdult, Romuald Conty
5  *
6  * This program is free software: you can redistribute it and/or modify it
7  * under the terms of the GNU Lesser General Public License as published by the
8  * Free Software Foundation, either version 3 of the License, or (at your
9  * option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14  * more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>
18  *
19  */
20 
26 #ifdef HAVE_CONFIG_H
27 # include "config.h"
28 #endif // HAVE_CONFIG_H
29 
30 #include "uart.h"
31 
32 #include <nfc/nfc.h>
33 #include <nfc/nfc-messages.h>
34 
35 // Test if we are dealing with unix operating systems
36 #ifndef _WIN32
37 // The POSIX serial port implementation
38 # include "uart_posix.c"
39 #else
40 // The windows serial port implementation
41 # include "uart_win32.c"
42 #endif /* _WIN32 */