Id-dar > Aħbarijiet > Il-kontenut

FT_Hal_Utils.h

May 06, 2019

#ifndef _FT_HAL_UTILS_H_

#define _FT_HAL_UTILS_H_



#defini RGB (r, g, b) ((((vc_int32_t) (r)) < 16)="" |="" (((vc_int32_t)="" (g))="">< 8)="" |="">

#define SQ (v) ((v) * (v))

#defin MIN (x, y) ((x)> (y)? (y): (x))

#definita MAX (x, y) ((x)> (y)? (x): (y))

#definita PLAYCOLOR 0x00A0A080

# jiddefinixxi NOTA (n, qawwija) (((n) - 'C') + ((qawwija) * 128))

#define F16 (i) ((vc_int32_t) (i) * 65536))

#definixxi INVALID_TOUCH_XY 0x8000

#definixxi ABS (x) ((x)> (0)? (x): (-x))



#endif / * _FT_HAL_UTILS_H_ * /