diff options
Diffstat (limited to 'Software/Embedded_SW/Embedded/Drivers/Peripheral_GPIO/GPIO.h')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Drivers/Peripheral_GPIO/GPIO.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Drivers/Peripheral_GPIO/GPIO.h b/Software/Embedded_SW/Embedded/Drivers/Peripheral_GPIO/GPIO.h new file mode 100644 index 000000000..8a0c54df4 --- /dev/null +++ b/Software/Embedded_SW/Embedded/Drivers/Peripheral_GPIO/GPIO.h @@ -0,0 +1,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_ */ |
