27 lines
392 B
C
27 lines
392 B
C
#ifndef MYSTDINT_H
|
|
#define MYSTDINT_H
|
|
|
|
#include <avr/io.h>
|
|
|
|
typedef unsigned char uint8_t;
|
|
typedef signed char int8_t;
|
|
|
|
typedef uint8_t bool;
|
|
|
|
#define true (1)
|
|
#define false (0)
|
|
|
|
#define BV(bit) (1 << bit)
|
|
|
|
#ifndef NULL
|
|
# define NULL ((void*)0)
|
|
#endif
|
|
|
|
typedef bool t_error;
|
|
|
|
#define ERROR true
|
|
#define NO_ERROR false
|
|
|
|
#define ERR_RET(expr) if (expr) return ERROR
|
|
|
|
#endif /* MYSTDINT_H */
|