diff --git a/perf_counter.c b/perf_counter.c index 1136930..1f59275 100644 --- a/perf_counter.c +++ b/perf_counter.c @@ -181,7 +181,6 @@ volatile static int32_t s_nSystemUS = 0; volatile static int64_t s_lSystemClockCounts = 0; /*============================ PROTOTYPES ====================================*/ - /*============================ IMPLEMENTATION ================================*/ /*============================ INCLUDES ======================================*/ diff --git a/perf_counter.h b/perf_counter.h index 51469b1..f13f926 100644 --- a/perf_counter.h +++ b/perf_counter.h @@ -134,6 +134,14 @@ extern "C" { # define UNUSED_PARAM(__VAR) (void)(__VAR) #endif +#ifndef MIN +# define MIN(__a, __b) ((__a) <= (__b) ? (__a) : (__b)) +#endif + +#ifndef MAX +# define MAX(__a, __b) ((__a) >= (__b) ? (__a) : (__b)) +#endif + /*! * \brief an attribute for static variables that no initialisation is required * in the C startup process.