TLx493D 3D Hall Sensor Generic Library  1.3
Generic library for the TLx493D 3D Hall sensor family
debug.h
Go to the documentation of this file.
1 /*
2 *****************************************************************************
3 * Copyright (C) 2019 Infineon Technologies AG. All rights reserved.
4 *
5 * Infineon Technologies AG (INFINEON) is supplying this file for use
6 * exclusively with Infineon's products. This file can be freely
7 * distributed within development tools and software supporting such microcontroller
8 * products.
9 *
10 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
11 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
13 * INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR DIRECT, INDIRECT, INCIDENTAL,
14 * ASPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
15 *
16 ******************************************************************************
17 */
18 
19 
26 #ifndef SRC_DEBUG_DEBUG_H_
27 #define SRC_DEBUG_DEBUG_H_
28 
29 #include <stdint.h>
30 #include "../TLx493D/TLx493D.h"
31 
32 
33 
34 
36 #define _ENABLE_LOGGING_ 0
37 
38 
39 
40 #if _ENABLE_LOGGING_ == 1
41  #define dbg_log(x) _LOG_STR((uint8_t*)x, sizeof(x)-1)
43  #warning LOGGING ENABLED
44 #else
45  #define dbg_log(x) ;
46 #endif
47 
48 #endif /* SRC_DEBUG_DEBUG_H_ */