ACDC Senior Project v1.0.0
Senior Project for Textron Aviation
|
Contains interrupt functions for hardware peripherals. More...
Go to the source code of this file.
Enumerations | |
enum | GPIO_TriggerType { TT_RISING_EDGE = 0b01 , TT_FALLING_EDGE = 0b10 , TT_RISING_AND_FALLING_EDGE = 0b11 } |
Functions | |
void | INTERRUPT_Enable (IRQn_Type IRQn) |
Enables Interrupts for the specific vector IRQn. | |
void | INTERRUPT_Disable (IRQn_Type IRQn) |
Disables Interrupts for the specific vector IRQn. | |
void | INTERRUPT_SetPriority (IRQn_Type IRQn, uint8_t Priority) |
Sets the priority of the Interrupt vector IRQn. | |
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) | |
Contains interrupt functions for hardware peripherals.
enum GPIO_TriggerType |
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)
GPIOx | Port of the GPIO (Ex. GPIOA, GPIOB, ...) |
GPIO_PIN | Desired pin on port GPIOx (Ex. GPIO_PIN_0, GPIO_PIN_1, ...) |
triggerType | Edge that triggers the Interrupt (Ex. RISING_EDGE, FALLING_EDGE, RISING_AND_FALLING_EDGE) |
void INTERRUPT_Disable | ( | IRQn_Type | IRQn | ) |
Disables Interrupts for the specific vector IRQn.
IRQn | Interrupt vector to disable |
void INTERRUPT_Enable | ( | IRQn_Type | IRQn | ) |
Enables Interrupts for the specific vector IRQn.
IRQn | Interrupt vector to enable |
void INTERRUPT_SetPriority | ( | IRQn_Type | IRQn, |
uint8_t | Priority ) |
Sets the priority of the Interrupt vector IRQn.
IRQn | Interrupt vector |
Priority | Priority of the IRQn vector (Value: 0-15 Lower value means higher priority) |