#ifndef __TYPES_H
#define __TYPES_H

#define NULL 0

typedef enum
{
  false,
  true
} bool;

typedef bool                    bool_t;

typedef unsigned char           uint8_t;
typedef char                    int8_t;

typedef unsigned short int      uint16_t;
typedef short int               int16_t;

typedef unsigned int            uint32_t;
typedef int                     int32_t;

typedef unsigned long long int  uint64_t;
typedef long long int           int64_t;

typedef uint32_t                size_t;
typedef uint32_t                off_t;
typedef int                     reg_t;
typedef uint32_t                uintptr_t;

typedef uint32_t                error_t;
typedef uint32_t                addr_t;
typedef uint32_t                paddr_t;

#endif
