-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathport_final.h
47 lines (40 loc) · 1.33 KB
/
port_final.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
*
*
* Interrupt Peripherals:
* Right Encoder: J2.12 = P5.2 = PCB pin 9
* Left Encoder: J2.11 = P1.6 = PCB pin 10
* Left Bumper: J?.?? = P3.4
* Middle Bumper: J?.?? = P3.5
* Right Bumper: J?.?? = P3.6
*
* Output Peripherals:
* Nerf Gun (PWM): J?.?? = P2.7 = CCR[4]
* Sword (PWM): J?.?? = P2.6 = CCR[3]
* Right Reference (PWM): J2.19 = P2.5 = CCR[2] = PCB pin 8
* Left Reference (PWM): J4.38 = P2.4 = CCR[1] = PCB pin 3
* CW Left (Forward): J3.30 = P5.4 = PCB pin 2
* CC Left (Backward): J3.29 = P5.5 = PCB pin 1
* CW Right (Backward): J2.14 = P1.7 = PCB pin 7
* CC Right (Forward): J2.13 = P5.0 = PCB pin 6
* Bluetooth UART (EUSCI_A2): RX = J1.3 = P3.2, TX = J1.4 = P3.3
*/
#ifndef PORT_FINAL_H_
#define PORT_FINAL_H_
/* The setup function which configures all
* port specifications.
*/
void port_config(void);
/* The interrupt handler function which is
* called for any port 1 interrupt.
*/
extern void PORT1_IRQHandler(void);
/* The interrupt handler function which is
* called for any port 3 interrupt.
*/
extern void PORT3_IRQHandler(void);
/* The interrupt handler function which is
* called for any port 5 interrupt.
*/
extern void PORT5_IRQHandler(void);
#endif /* PORT_FINAL_H_ */