ACDC Senior Project v1.0.0
Senior Project for Textron Aviation
Loading...
Searching...
No Matches
ACDC_INTERRUPT.h
Go to the documentation of this file.
1
11#ifndef __ACDC_INTERRUPT_H
12#define __ACDC_INTERRUPT_H
13
14#include "stm32f1xx.h"
15#include "ACDC_stdint.h"
16
22
25void INTERRUPT_Enable(IRQn_Type IRQn);
26
29void INTERRUPT_Disable(IRQn_Type IRQn);
30
34void INTERRUPT_SetPriority(IRQn_Type IRQn, uint8_t Priority);
35
40void GPIO_INT_SetToInterrupt(const GPIO_TypeDef *GPIOx, uint16_t GPIO_PIN, GPIO_TriggerType TT_x);
41
42#endif
void INTERRUPT_SetPriority(IRQn_Type IRQn, uint8_t Priority)
Sets the priority of the Interrupt vector IRQn.
Definition ACDC_INTERRUPT.c:42
void INTERRUPT_Disable(IRQn_Type IRQn)
Disables Interrupts for the specific vector IRQn.
Definition ACDC_INTERRUPT.c:33
void INTERRUPT_Enable(IRQn_Type IRQn)
Enables Interrupts for the specific vector IRQn.
Definition ACDC_INTERRUPT.c:24
GPIO_TriggerType
Definition ACDC_INTERRUPT.h:17
@ TT_RISING_AND_FALLING_EDGE
Definition ACDC_INTERRUPT.h:20
@ TT_RISING_EDGE
Definition ACDC_INTERRUPT.h:18
@ TT_FALLING_EDGE
Definition ACDC_INTERRUPT.h:19
void GPIO_INT_SetToInterrupt(const GPIO_TypeDef *GPIOx, uint16_t GPIO_PIN, GPIO_TriggerType TT_x)
Enables Interrupts for GPIO_PIN on GPIOx. (Make sure to set GPIO_PIN as an Input)
Definition ACDC_INTERRUPT.c:59
Header file for intx_t and uintx_t types.
unsigned short uint16_t
Definition ACDC_stdint.h:15
unsigned char uint8_t
Definition ACDC_stdint.h:14