ACDC Senior Project v1.0.0
Senior Project for Textron Aviation
|
Implementation of general-purpose interrupt configuration functions. More...
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) | |
Implementation of general-purpose interrupt configuration functions.
This file provides functions for configuring and managing interrupts, including support for GPIO interrupts.
The functions in this file enable the configuration of interrupts, allowing users to set up interrupt triggers on various sources, including GPIO pins.
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) |