-
Notifications
You must be signed in to change notification settings - Fork 0
/
fet.h
27 lines (23 loc) · 916 Bytes
/
fet.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#define SET_FET0() do { PORTE |= 0x08; } while (0)
#define SET_FET1() do { PORTE |= 0x10; } while (0)
#define SET_FET2() do { PORTE |= 0x20; } while (0)
#define SET_FET3() do { PORTH |= 0x08; } while (0)
#define SET_FET4() do { PORTH |= 0x10; } while (0)
#define SET_FET5() do { PORTH |= 0x20; } while (0)
#define SET_FET6() do { PORTL |= 0x08; } while (0)
#define SET_FET7() do { PORTL |= 0x10; } while (0)
#define CLR_FET0() do { PORTE &= ~0x08; } while (0)
#define CLR_FET1() do { PORTE &= ~0x10; } while (0)
#define CLR_FET2() do { PORTE &= ~0x20; } while (0)
#define CLR_FET3() do { PORTH &= ~0x08; } while (0)
#define CLR_FET4() do { PORTH &= ~0x10; } while (0)
#define CLR_FET5() do { PORTH &= ~0x20; } while (0)
#define CLR_FET6() do { PORTL &= ~0x08; } while (0)
#define CLR_FET7() do { PORTL &= ~0x10; } while (0)
#ifdef __cplusplus
extern "C" {
#endif
void fet_init(void);
#ifdef __cplusplus
}
#endif