feat(ex04)
This commit is contained in:
parent
9c2a7d7573
commit
5e18ca5a6d
31 changed files with 1791 additions and 0 deletions
27
ex04/include/lib/mystd.h
Normal file
27
ex04/include/lib/mystd.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue