-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathirEncoder.h
More file actions
34 lines (26 loc) · 1.02 KB
/
irEncoder.h
File metadata and controls
34 lines (26 loc) · 1.02 KB
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
// irEncoder Library - Lab7
// Nathan Fusselman
//-----------------------------------------------------------------------------
// Hardware Target
//-----------------------------------------------------------------------------
// Target Platform: EK-TM4C123GXL
// Target uC: TM4C123GH6PM
// System Clock: -
// Hardware configuration:
// UART Interface:
// U0TX (PA1) and U0RX (PA0) are connected to the 2nd controller
// The USB on the 2nd controller enumerates to an ICDI interface and a virtual COM port
//-----------------------------------------------------------------------------
// Device includes, defines, and assembler directives
//-----------------------------------------------------------------------------
#ifndef IRENCODER_H_
#define IRENCODER_H_
void initIRE(void);
void timerInterrupt0(void);
void setTimerInterrupt0(uint32_t);
void sendData(bool[], bool[]);
void sendDataError(bool[], bool[]);
void sendError();
void sendButton(uint8_t, uint8_t);
void sendButtonNum(uint8_t);
#endif /* IRENCODER_H_ */