/*
 * util.h
 *
 *  Created on: Nov 25, 2016
 *      Author: B50961
 */

#ifndef SOURCES_UTIL_H_
#define SOURCES_UTIL_H_

#include "device.h"

typedef uint8_t   bool_t;
typedef uint8_t	  index_t;
#define TRUE	1
#define FALSE	0

#ifndef NULL
#define NULL (( void * )( 0 ))
#endif

#define BIT0_MASK	(1<<0)
#define BIT1_MASK	(1<<1)
#define BIT2_MASK	(1<<2)
#define BIT3_MASK	(1<<3)
#define BIT4_MASK	(1<<4)
#define BIT5_MASK	(1<<5)
#define BIT6_MASK	(1<<6)
#define BIT7_MASK	(1<<7)
#define BIT8_MASK	(1<<8)
#define BIT9_MASK	(1<<9)
#define BIT10_MASK	(1<<10)
#define BIT11_MASK	(1<<11)
#define BIT12_MASK	(1<<12)
#define BIT13_MASK	(1<<13)
#define BIT14_MASK	(1<<14)
#define BIT15_MASK	(1<<15)
#define BIT16_MASK	(1<<16)
#define BIT17_MASK	(1<<17)
#define BIT18_MASK	(1<<18)
#define BIT19_MASK	(1<<19)
#define BIT20_MASK	(1<<20)
#define BIT21_MASK	(1<<21)
#define BIT22_MASK	(1<<22)
#define BIT23_MASK	(1<<23)
#define BIT24_MASK	(1<<24)
#define BIT25_MASK	(1<<25)
#define BIT26_MASK	(1<<26)
#define BIT27_MASK	(1<<27)
#define BIT28_MASK	(1<<28)
#define BIT29_MASK	(1<<29)
#define BIT30_MASK	(1<<30)
#define BIT31_MASK	(1<<31)

#endif /* SOURCES_UTIL_H_ */
