-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMAIN.h
More file actions
49 lines (39 loc) · 951 Bytes
/
MAIN.h
File metadata and controls
49 lines (39 loc) · 951 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* MAIN.h
*
* Bradley University
* ECE 205
* Project 7
*/
#ifndef MAIN_H_
#define MAIN_H_
/***********************************************
Header Files
************************************************/
#include <asf.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include "init.h"
#include "Debounce.h"
#include "timer0_isr.h"
#include "timer2_isr.h"
#include "softPWM.h"
/******************************************
Declaration Definitions
*******************************************/
#define OUTPUT 0xFF
#define INPUT 0x00
#define PullUpEnable 0xFF
#define PullUpDisable 0x00
#define KEY_PORT PORTE
#define KEY_READ PINE
#define KEY_DIR DDRE
#define NO_KEY 0xFF
#define LED_PORT PORTA
#define LED_DIR DDRA
#define LED_ON 0xFF
#define LED_OFF 0x00
extern volatile uint8_t CH1;
extern volatile uint8_t CH2;
extern volatile uint8_t int_timer;
#endif /* MAIN_H_ */