summaryrefslogtreecommitdiffstats
path: root/firmware/calib_current.h
blob: 076d7a89e31ed433836bd8a169af0779f11554e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef CALIB_CURRENT_H_
#define CALIB_CURRENT_H_

#include "util.h"

#if CONF_CALIB

void calcurr_work(void);

bool calcurr_is_enabled(void);
void calcurr_set_enabled(bool enable);

#else /* CONF_CALIB */

static inline void calcurr_work(void)
{
}

static inline bool calcurr_is_enabled(void)
{
	return false;
}

static inline void calcurr_set_enabled(bool enable)
{
}

#endif /* CONF_CALIB */
#endif /* CALIB_CURRENT_H_ */
bues.ch cgit interface