lv_misc files added from misc repo

This commit is contained in:
Gabor Kiss-Vamosi
2017-11-23 20:42:14 +01:00
parent c5b9a4eb17
commit c3471fd04e
158 changed files with 219701 additions and 76 deletions

46
lv_misc/lv_math.h Normal file
View File

@@ -0,0 +1,46 @@
/**
* @file math_base.h
*
*/
#ifndef MATH_BASE_H
#define MATH_BASE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "misc_conf.h"
#if USE_MATH_BASE != 0
/*********************
* DEFINES
*********************/
#define MATH_MIN(a,b) (a<b?a:b)
#define MATH_MAX(a,b) (a>b?a:b)
#define MATH_ABS(x) ((x)>0?(x):(-(x)))
/**********************
* TYPEDEFS
**********************/
/**********************
* GLOBAL PROTOTYPES
**********************/
/**********************
* MACROS
**********************/
#endif /*USE_MATH_BASE*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif