summaryrefslogtreecommitdiff
path: root/stm32/debug.h
blob: 692c8799c0e67fa4bf1ce6f31a465bb3d86298ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */

#ifndef DEBUG_H_
#define DEBUG_H_

#ifdef DEBUG
#define DBG_P(lvl, ...) if (DEBUG>=lvl) fprintf( stderr,  __VA_ARGS__ )
#else
#define DBG_P(lvl, ...)
#endif

#endif /* DEBUG_H_ */