1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements.  See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership.  The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License.  You may obtain a copy of the License at
9  *
10  *  http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied.  See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  */
19 #ifndef TINYCBOR_CONFIG_H
20 #define TINYCBOR_CONFIG_H
21 
22 /** This option specifies whether a check user exists for a cbor encoder **/
23 #ifdef CONFIG_CBOR_ENCODER_NO_CHECK_USER
24 #define CBOR_ENCODER_NO_CHECK_USER CONFIG_CBOR_ENCODER_NO_CHECK_USER
25 #endif
26 
27 /** This option specifies max recursions for the parser **/
28 #ifdef CONFIG_CBOR_PARSER_MAX_RECURSIONS
29 #define CBOR_PARSER_MAX_RECURSIONS CONFIG_CBOR_PARSER_MAX_RECURSIONS
30 #endif
31 
32 /** This option enables the strict parser checks **/
33 #ifdef CONFIG_CBOR_PARSER_NO_STRICT_CHECKS
34 #define CBOR_PARSER_NO_STRICT_CHECKS CONFIG_CBOR_PARSER_NO_STRICT_CHECKS
35 #endif
36 
37 /** This option enables floating point support **/
38 #ifndef CONFIG_CBOR_FLOATING_POINT
39 #define CBOR_NO_FLOATING_POINT 1
40 #endif
41 
42 /** This option enables half float type support **/
43 #ifndef CONFIG_CBOR_HALF_FLOAT_TYPE
44 #define CBOR_NO_HALF_FLOAT_TYPE 1
45 #endif
46 
47 /** This option enables open memstream support **/
48 #ifdef CONFIG_CBOR_WITHOUT_OPEN_MEMSTREAM
49 #define CBOR_WITHOUT_OPEN_MEMSTREAM CONFIG_CBOR_WITHOUT_OPEN_MEMSTREAM
50 #endif
51 
52 #endif /* TINYCBOR_CONFIG_H */
53