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

GPIO port register block. More...

#include <gpio_reg.h>

Data Fields

volatile uint32_t MODER
 0x00: mode, 2 bits per pin
volatile uint32_t OTYPER
 0x04: output type, 1 bit per pin
volatile uint32_t OSPEEDR
 0x08: output speed, 2 bits per pin
volatile uint32_t PUPDR
 0x0C: pull-up/pull-down, 2 bits per pin
volatile const uint32_t IDR
 0x10: input data, ro
volatile uint32_t ODR
 0x14: output data
volatile uint32_t BSRR
 0x18: bit set/reset, wo
volatile uint32_t LCKR
 0x1C: configuration lock
volatile uint32_t AFRL
 0x20: alternate function, pins 0-7
volatile uint32_t AFRH
 0x24: alternate function, pins 8-15

Detailed Description

GPIO port register block.

Every register is rw unless noted.

Definition at line 32 of file gpio_reg.h.

Field Documentation

◆ MODER

volatile uint32_t GpioRegisters_t::MODER

0x00: mode, 2 bits per pin

Definition at line 34 of file gpio_reg.h.

Referenced by gpioDeinitToReset(), and gpioInit().

◆ OTYPER

volatile uint32_t GpioRegisters_t::OTYPER

0x04: output type, 1 bit per pin

Definition at line 35 of file gpio_reg.h.

Referenced by gpioDeinitToReset(), and gpioInit().

◆ OSPEEDR

volatile uint32_t GpioRegisters_t::OSPEEDR

0x08: output speed, 2 bits per pin

Definition at line 36 of file gpio_reg.h.

Referenced by gpioDeinitToReset(), and gpioInit().

◆ PUPDR

volatile uint32_t GpioRegisters_t::PUPDR

0x0C: pull-up/pull-down, 2 bits per pin

Definition at line 37 of file gpio_reg.h.

Referenced by gpioDeinitToReset(), and gpioInit().

◆ IDR

volatile const uint32_t GpioRegisters_t::IDR

0x10: input data, ro

Definition at line 38 of file gpio_reg.h.

Referenced by gpioReadPin().

◆ ODR

volatile uint32_t GpioRegisters_t::ODR

0x14: output data

Definition at line 39 of file gpio_reg.h.

Referenced by gpioTogglePin().

◆ BSRR

volatile uint32_t GpioRegisters_t::BSRR

0x18: bit set/reset, wo

Definition at line 40 of file gpio_reg.h.

Referenced by gpioTogglePin(), and gpioWritePin().

◆ LCKR

volatile uint32_t GpioRegisters_t::LCKR

0x1C: configuration lock

Definition at line 41 of file gpio_reg.h.

◆ AFRL

volatile uint32_t GpioRegisters_t::AFRL

0x20: alternate function, pins 0-7

Definition at line 42 of file gpio_reg.h.

Referenced by gpioDeinitToReset(), and gpioSetAlternateFunction().

◆ AFRH

volatile uint32_t GpioRegisters_t::AFRH

0x24: alternate function, pins 8-15

Definition at line 43 of file gpio_reg.h.

Referenced by gpioDeinitToReset(), and gpioSetAlternateFunction().


The documentation for this struct was generated from the following file: