minor update

This commit is contained in:
Gabriel Wang 2024-01-20 16:59:01 +00:00
parent 2d266becb3
commit 4c6334ee4f
2 changed files with 8 additions and 1 deletions

View File

@ -181,7 +181,6 @@ volatile static int32_t s_nSystemUS = 0;
volatile static int64_t s_lSystemClockCounts = 0;
/*============================ PROTOTYPES ====================================*/
/*============================ IMPLEMENTATION ================================*/
/*============================ INCLUDES ======================================*/

View File

@ -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.