PokittoFakeavr.h
Go to the documentation of this file.
1
/**************************************************************************/
35
/**************************************************************************/
36
37
#ifndef _POKITTO_FAKEAVR_H_
38
#define _POKITTO_FAKEAVR_H_
39
40
#include "
PokittoItoa.h
"
41
#include "binary.h"
42
#include <stdint.h>
43
#include <stdlib.h>
44
45
#ifdef POK_SIM
46
#include <stdbool.h>
47
#else
48
#include <stdbool.h>
49
#endif // POK_SIM
50
51
#define _BV(bit) (1 << (bit)) //jonne
52
54
#ifndef _RPCNDR_H
55
typedef
bool
boolean
;
56
#endif
57
typedef
uint8_t byte;
58
60
#define PROGMEM
61
//#define F
62
64
#define sprintf_P sprintf
65
#define strstr_P strstr
66
#define strcpy_P strcpy
67
68
#define utoa pokItoa
69
#define ultoa pokItoa
70
72
#define PROGMEM
73
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
74
#ifndef WIN32
75
#define pgm_read_word(addr) (*(addr))
76
#else
77
#define pgm_read_word(addr) (*(const unsigned int *)(addr))
78
#endif // WIN32
79
83
#ifndef DISABLEAVRMIN
84
#define max(a,b) ((a)>(b)?(a):(b))
85
#define min(a,b) ((a)<(b)?(a):(b))
86
#endif // DISABLEAVRMIN
87
#define __avrmax(a,b) ((a)>(b)?(a):(b))
88
#define __avrmin(a,b) ((a)<(b)?(a):(b))
89
#define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))
90
#define min2(a,b) (((a)<(b))?(a):(b))
91
92
93
94
#ifdef __cplusplus
95
extern
"C"
{
96
#endif
97
98
void
cli();
99
void
sei();
100
101
#ifdef __cplusplus
102
}
103
#endif
104
#endif
105
boolean
bool boolean
Definition:
PokittoFakeavr.h:55
PokittoItoa.h
PokittoFakeavr.h
Generated by
1.8.13