trace.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Kaspar Schleiser <kaspar@schleiser.de>
3  * Freie Universität Berlin
4  * Inria
5  *
6  * This file is subject to the terms and conditions of the GNU Lesser
7  * General Public License v2.1. See the file LICENSE in the top level
8  * directory for more details.
9  */
10 
11 #pragma once
12 
55 #include <stdint.h>
56 
57 #ifdef __cplusplus
58 extern "C" {
59 #endif
60 
73 void trace(uint32_t val);
74 
87 void trace_dump(void);
88 
92 void trace_reset(void);
93 
94 #ifdef __cplusplus
95 }
96 #endif
97 
void trace_reset(void)
Empty the trace buffer.
void trace(uint32_t val)
Add entry to trace buffer.
void trace_dump(void)
Print the current trace buffer.