Fix frequency measurement simulation
This commit is contained in:
parent
4d80111cad
commit
d9b26d16c0
22 changed files with 1201 additions and 164 deletions
14
controller/fw/src/simulation.h
Normal file
14
controller/fw/src/simulation.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#ifndef __SIMULATION_H__
|
||||
#define __SIMULATION_H__
|
||||
|
||||
#ifdef SIMULATION
|
||||
#include <stdio.h>
|
||||
#define DEBUG_PRINTN(...) fprintf(stderr, __VA_ARGS__)
|
||||
#define DEBUG_PRINTNF(fmt, ...) DEBUG_PRINTN("%s:%d: " fmt, __FILE__, __LINE__, ##__VA_ARGS__)
|
||||
#define DEBUG_PRINT(fmt, ...) DEBUG_PRINTNF(fmt "\n", ##__VA_ARGS__)
|
||||
#else
|
||||
#define DEBUG_PRINT(...) ((void)0)
|
||||
#define DEBUG_PRINTN(...) ((void)0)
|
||||
#endif
|
||||
|
||||
#endif /* __SIMULATION_H__ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue