Software APIs
example.c
1 // Copyright lowRISC contributors (OpenTitan project).
2 // Licensed under the Apache License, Version 2.0, see LICENSE for details.
3 // SPDX-License-Identifier: Apache-2.0
4 
5 /////////////////////////////////////////////////////////////////////////////
6 // The corresponding C file to a `ujson` header file should simply define
7 // the preprocessor token `UJSON_SERDE_IMPL` to 1 and then include the header
8 // file. This will cause the preprocessor to emit the `serialize` and
9 // `deserialize` implementations for the data structures.
10 #define UJSON_SERDE_IMPL 1
11 #include "sw/device/lib/ujson/example.h"