/* * @file rfiutil.h * @brief Number to string conversion header * * @date Nov 15, 2012 * @author Andrey Belomutskiy, (c) 2012-2020 */ #pragma once #include "global.h" #if !EFI_UNIT_TEST #include "histogram.h" /** * Unfortunately ChibiOS has two versions of methods for different * contexts. */ #define isLocked() (ch.dbg.lock_cnt > 0) #define isIsrContext() (ch.dbg.isr_cnt > 0) #define assertIsrContext(code) efiAssertVoid(code, isIsrContext(), "NOT_ISR") #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ void chVTSetAny(virtual_timer_t *vtp, systime_t time, vtfunc_t vtfunc, void *par); #ifdef __cplusplus } void printHistogram(Logging *logging, histogram_s *histogram); #endif /* __cplusplus */ #endif /* EFI_UNIT_TEST */