-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.h
23 lines (20 loc) · 1.09 KB
/
main.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
* main.h
*
* Created: 11/22/2018 5:11:49 PM
* Author: conti
*/
#ifndef MAIN_H_
#define MAIN_H_
/********************************************************************************************************************************/
#define Start_timer_DDR DDRD
#define Start_timer_PORT PORTD
#define Start_timer_PIN PIND
/********************************************************************************************************************************/
#define Start_timer_BIT DDD4
/********************************************************************************************************************************/
#define Start_timer_SETUP() Start_timer_DDR &= ~( 1 << Start_timer_BIT ); Start_timer_PORT |= ( 1 << Start_timer_BIT );
#define Start_timer_ON ((Start_timer_PIN & ( 1 << Start_timer_BIT )) != 0)
#define Start_timer_OF ((Start_timer_PIN & ( 1 << Start_timer_BIT )) == 0)
/********************************************************************************************************************************/
#endif /* MAIN_H_ */