aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Drivers/Peripheral_GPIO/GPIO.h
blob: 8a0c54df4d20dcca9605cab98663b599b7415109 (plain)
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
#ifndef DRIVERS_GPIO_H_
#define DRIVERS_GPIO_H_

#include <stdint.h>
#include <stdbool.h>
#include <driverlib/gpio.h>

typedef enum
{
	DISPENSER_1_LMS,
	DISPENSER_2_LMS,
	DISPENSER_3_LMS,
	DISPENSER_4_LMS,
	DISPENSER_5_LMS,
	DISPENSER_6_LMS,
	SCREW_LMS,
	START_MANUAL_BTN,
	END_MANUAL_BTN,
	MANUAL_1_BTN,
	MANUAL_2_BTN,
	MANUAL_3_BTN,
	MANUAL_4_BTN,
	NUM_OF_GPIO_INT
}GPIOInt_t;

typedef void (*GPIOIntCallback)(GPIOInt_t arg);

void GPIOInit(void);

bool PollGPIO (uint8_t index);

void GPIOEnableInterrupt(GPIOInt_t gpioInt, GPIOIntCallback callBack, uint32_t type);

void GPIODisableInterrupt(GPIOInt_t gpioInt,GPIOIntCallback callBack);

#endif /* DRIVERS_GPIO_H_ */