Hardware Abstraction Layer for FreeRTOS
ltc6811_prv.h
Go to the documentation of this file.
1 #ifndef LTC6811_PRV_H_
2 #define LTC6811_PRV_H_
3 #ifndef LTC6811_PRV
4 # error "Never include this file out of a SPI driver"
5 #endif
6 #include <ltc6811.h>
7 #ifdef CONFIG_LTC6811_DEBUG
8 # define PRINTF(fmt, ...) printf("LTC: " fmt, ##__VA_ARGS__)
9 #else
10 # define PRINTF(fmt, ...)
11 #endif
12 #define ltc6811_lock(u, w, e) HAL_LOCK(u, w, e)
13 #define ltc6811_unlock(u, e) HAL_UNLOCK(u, e)
14 #endif
ltc6811.h