STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Loading...
Searching...
No Matches

System configuration: EXTI routing and I/O compensation. More...

Collaboration diagram for SYSCFG:

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.

Detailed Description

System configuration: EXTI routing and I/O compensation.

Macro Definition Documentation

◆ SYSCFG_BASE

#define SYSCFG_BASE   (0x40013800UL)

SYSCFG base address (APB2).

Definition at line 19 of file syscfg_reg.h.

◆ SYSCFG

#define SYSCFG   ((SyscfgRegisters_t *)SYSCFG_BASE)

The SYSCFG instance.

Definition at line 31 of file syscfg_reg.h.

◆ SYSCFG_EXTICR_PA

#define SYSCFG_EXTICR_PA   (0x0U)

GPIOA.

Definition at line 38 of file syscfg_reg.h.

Referenced by extiPortSelector().

◆ SYSCFG_EXTICR_PB

#define SYSCFG_EXTICR_PB   (0x1U)

GPIOB.

Definition at line 39 of file syscfg_reg.h.

Referenced by extiPortSelector().

◆ SYSCFG_EXTICR_PC

#define SYSCFG_EXTICR_PC   (0x2U)

GPIOC.

Definition at line 40 of file syscfg_reg.h.

Referenced by extiPortSelector().

◆ SYSCFG_EXTICR_PD

#define SYSCFG_EXTICR_PD   (0x3U)

GPIOD.

Definition at line 41 of file syscfg_reg.h.

Referenced by extiPortSelector().

◆ SYSCFG_EXTICR_PE

#define SYSCFG_EXTICR_PE   (0x4U)

GPIOE.

Definition at line 42 of file syscfg_reg.h.

Referenced by extiPortSelector().

◆ SYSCFG_EXTICR_PF

#define SYSCFG_EXTICR_PF   (0x5U)

GPIOF.

Definition at line 43 of file syscfg_reg.h.

Referenced by extiPortSelector().

◆ SYSCFG_EXTICR_PG

#define SYSCFG_EXTICR_PG   (0x6U)

GPIOG.

Definition at line 44 of file syscfg_reg.h.

Referenced by extiPortSelector().

◆ SYSCFG_EXTICR_PH

#define SYSCFG_EXTICR_PH   (0x7U)

GPIOH.

Definition at line 45 of file syscfg_reg.h.

Referenced by extiPortSelector(), and extiSelectPort().

◆ SYSCFG_CMPCR_CMP_PD_Pos

#define SYSCFG_CMPCR_CMP_PD_Pos   (0U)

Bit 0.

Definition at line 50 of file syscfg_reg.h.

◆ SYSCFG_CMPCR_CMP_PD

#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.

◆ SYSCFG_CMPCR_READY_Pos

#define SYSCFG_CMPCR_READY_Pos   (8U)

Bit 8.

Definition at line 53 of file syscfg_reg.h.

◆ SYSCFG_CMPCR_READY

#define SYSCFG_CMPCR_READY   ((uint32_t)1U << SYSCFG_CMPCR_READY_Pos)

ro Compensation cell ready.

Definition at line 55 of file syscfg_reg.h.