STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Loading...
Searching...
No Matches
exti.c File Reference

EXTI driver implementation (API in exti.h). More...

#include "exti.h"
#include <stddef.h>
Include dependency graph for exti.c:

Go to the source code of this file.

Macros

#define EXTI_LINE_UNUSED   (19U)
 The line with no source on the F446 (RM0390 section 10.2.5).

Functions

static DriverStatus_e extiValidateLine (uint32_t line)
 Accept a line that exists: 0 to EXTI_LINE_MAX, except 19.
static DriverStatus_e extiPortSelector (const GpioRegisters_t *port, uint32_t *selector)
 Map a GPIO port to its EXTICR selector.
DRIVER_MUST_CHECK DriverStatus_e extiSelectPort (SyscfgRegisters_t *syscfg, uint32_t line, const GpioRegisters_t *port)
 Route GPIO pin line of port to EXTI line line.
DRIVER_MUST_CHECK DriverStatus_e extiConfigure (ExtiRegisters_t *exti, uint32_t line, ExtiEdge_e edge)
 Set which edges trigger line; the other edge is cleared.
DRIVER_MUST_CHECK DriverStatus_e extiEnableInterrupt (ExtiRegisters_t *exti, uint32_t line)
 Unmask line's interrupt (IMR).
DRIVER_MUST_CHECK DriverStatus_e extiDisableInterrupt (ExtiRegisters_t *exti, uint32_t line)
 Mask line's interrupt (IMR).
DRIVER_MUST_CHECK DriverStatus_e extiTriggerSoftware (ExtiRegisters_t *exti, uint32_t line)
 Raise line's interrupt from software (SWIER).
DRIVER_MUST_CHECK DriverStatus_e extiIsPending (const ExtiRegisters_t *exti, uint32_t line, bool *pending)
 Report whether line's pending bit (PR) is set.
DRIVER_MUST_CHECK DriverStatus_e extiClearPending (ExtiRegisters_t *exti, uint32_t line)
 Clear line's pending bit, and its SWIER bit with it.

Detailed Description

EXTI driver implementation (API in exti.h).

Definition in file exti.c.