Tiny protocol  0.9.3
Tiny communication protocol for microcontrollers
arduino_hal.h
1 /*
2  Copyright 2016-2019 (C) Alexey Dynda
3 
4  This file is part of Tiny Protocol Library.
5 
6  Protocol Library is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Protocol Library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with Protocol Library. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #pragma once
21 
22 #include <stdint.h>
23 
24 /* For fastest version of protocol assign all defines to zero.
25  * In this case protocol supports no CRC field, and
26  * all api functions become not thread-safe.
27  */
28 
29 #ifndef CONFIG_ENABLE_CHECKSUM
30 # define CONFIG_ENABLE_CHECKSUM
31 #endif
32 
33 #ifndef CONFIG_ENABLE_FCS16
34 # define CONFIG_ENABLE_FCS16
35 #endif
36 
37 #ifndef CONFIG_ENABLE_FCS32
38 # define CONFIG_ENABLE_FCS32
39 #endif
40 
41 #ifndef DOXYGEN_SHOULD_SKIP_THIS
42 
47 typedef uint8_t tiny_mutex_t;
48 
53 typedef uint8_t tiny_events_t;
54 
55 #endif
56