|
STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
|
System configuration: EXTI routing and I/O compensation. More...
Data Structures | |
| struct | SyscfgRegisters_t |
| SYSCFG register block. More... | |
Macros | |
| #define | SYSCFG_BASE (0x40013800UL) |
| SYSCFG base address (APB2). | |
| #define | SYSCFG ((SyscfgRegisters_t *)SYSCFG_BASE) |
| The SYSCFG instance. | |
Typedefs | |
| typedef struct SyscfgRegisters_t | SyscfgRegisters_t |
| SYSCFG register block. | |
EXTICR port selectors | |
EXTI line n is selected by the 4-bit rw field at bit (n % 4) * 4 of EXTICR[n / 4]. GPIOH has only pins 0 and 1, so PH is valid only for lines 0 and 1. | |
| #define | SYSCFG_EXTICR_PA (0x0U) |
| GPIOA. | |
| #define | SYSCFG_EXTICR_PB (0x1U) |
| GPIOB. | |
| #define | SYSCFG_EXTICR_PC (0x2U) |
| GPIOC. | |
| #define | SYSCFG_EXTICR_PD (0x3U) |
| GPIOD. | |
| #define | SYSCFG_EXTICR_PE (0x4U) |
| GPIOE. | |
| #define | SYSCFG_EXTICR_PF (0x5U) |
| GPIOF. | |
| #define | SYSCFG_EXTICR_PG (0x6U) |
| GPIOG. | |
| #define | SYSCFG_EXTICR_PH (0x7U) |
| GPIOH. | |
CMPCR - compensation cell control (0x20) | |
| #define | SYSCFG_CMPCR_CMP_PD_Pos (0U) |
| Bit 0. | |
| #define | SYSCFG_CMPCR_CMP_PD ((uint32_t)1U << SYSCFG_CMPCR_CMP_PD_Pos) |
| rw Compensation cell on (1) or powered down (0). | |
| #define | SYSCFG_CMPCR_READY_Pos (8U) |
| Bit 8. | |
| #define | SYSCFG_CMPCR_READY ((uint32_t)1U << SYSCFG_CMPCR_READY_Pos) |
| ro Compensation cell ready. | |
System configuration: EXTI routing and I/O compensation.
| #define SYSCFG_BASE (0x40013800UL) |
SYSCFG base address (APB2).
Definition at line 19 of file syscfg_reg.h.
| #define SYSCFG ((SyscfgRegisters_t *)SYSCFG_BASE) |
The SYSCFG instance.
Definition at line 31 of file syscfg_reg.h.
| #define SYSCFG_EXTICR_PA (0x0U) |
| #define SYSCFG_EXTICR_PB (0x1U) |
| #define SYSCFG_EXTICR_PC (0x2U) |
| #define SYSCFG_EXTICR_PD (0x3U) |
| #define SYSCFG_EXTICR_PE (0x4U) |
| #define SYSCFG_EXTICR_PF (0x5U) |
| #define SYSCFG_EXTICR_PG (0x6U) |
| #define SYSCFG_EXTICR_PH (0x7U) |
GPIOH.
Definition at line 45 of file syscfg_reg.h.
Referenced by extiPortSelector(), and extiSelectPort().
| #define SYSCFG_CMPCR_CMP_PD_Pos (0U) |
Bit 0.
Definition at line 50 of file syscfg_reg.h.
| #define SYSCFG_CMPCR_CMP_PD ((uint32_t)1U << SYSCFG_CMPCR_CMP_PD_Pos) |
rw Compensation cell on (1) or powered down (0).
Definition at line 52 of file syscfg_reg.h.
| #define SYSCFG_CMPCR_READY_Pos (8U) |
Bit 8.
Definition at line 53 of file syscfg_reg.h.
| #define SYSCFG_CMPCR_READY ((uint32_t)1U << SYSCFG_CMPCR_READY_Pos) |
ro Compensation cell ready.
Definition at line 55 of file syscfg_reg.h.