Skip to content

Commit 111f7a2

Browse files
committed
add missing config.h
We were missing the config.h from zephyr/ext. Signed-off-by: Anas Nashif <[email protected]>
1 parent 7547b1d commit 111f7a2

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

src/config.h

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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+
20+
#ifndef TINYCBOR_CONFIG_H
21+
#define TINYCBOR_CONFIG_H
22+
23+
/** This option specifies whether a default writer exists **/
24+
#ifdef CONFIG_CBOR_NO_DFLT_WRITER
25+
#define CBOR_NO_DFLT_WRITER CONFIG_CBOR_NO_DFLT_WRITER
26+
#endif
27+
28+
/** This option specifies whether a default reader exists **/
29+
#ifdef CONFIG_CBOR_NO_DFLT_READER
30+
#define CBOR_NO_DFLT_READER CONFIG_CBOR_NO_DFLT_READER
31+
#endif
32+
33+
/** This option specifies whether a check user exists for a cbor encoder **/
34+
#ifdef CONFIG_CBOR_ENCODER_NO_CHECK_USER
35+
#define CBOR_ENCODER_NO_CHECK_USER CONFIG_CBOR_ENCODER_NO_CHECK_USER
36+
#endif
37+
38+
/** This option specifies max recursions for the parser **/
39+
#ifdef CONFIG_CBOR_PARSER_MAX_RECURSIONS
40+
#define CBOR_PARSER_MAX_RECURSIONS CONFIG_CBOR_PARSER_MAX_RECURSIONS
41+
#endif
42+
43+
/** This option enables the strict parser checks **/
44+
#ifdef CONFIG_CBOR_PARSER_NO_STRICT_CHECKS
45+
#define CBOR_PARSER_NO_STRICT_CHECKS CONFIG_CBOR_PARSER_NO_STRICT_CHECKS
46+
#endif
47+
48+
/** This option enables floating point support **/
49+
#ifndef CONFIG_CBOR_FLOATING_POINT
50+
#define CBOR_NO_FLOATING_POINT 1
51+
#endif
52+
53+
/** This option enables half float type support **/
54+
#ifndef CONFIG_CBOR_HALF_FLOAT_TYPE
55+
#define CBOR_NO_HALF_FLOAT_TYPE 1
56+
#endif
57+
58+
/** This option enables open memstream support **/
59+
#ifdef CONFIG_CBOR_WITHOUT_OPEN_MEMSTREAM
60+
#define CBOR_WITHOUT_OPEN_MEMSTREAM CONFIG_CBOR_WITHOUT_OPEN_MEMSTREAM
61+
#endif
62+
63+
#endif /* TINYCBOR_CONFIG_H */

0 commit comments

Comments
 (0)