stm32.h

General STM32-specific definitions. This file is currently somewhat incomplete, but it will form the future basis for MCU-specific (rather than board-specific, which belongs in Wirish) configuration.

Defines

STM32_PCLK1

APB1 clock speed, in Hz.

STM32_PCLK2

APB2 clock speed, in Hz.

STM32_NR_INTERRUPTS

Number of interrupts in the NVIC.

This define is automatically generated whenever the proper density is defined (currently, this is restricted to defining one of STM32_MEDIUM_DENSITY and STM32_HIGH_DENSITY).

STM32_NR_GPIO_PORTS

Number of GPIO ports.

STM32_DELAY_US_MULT

Multiplier to convert microseconds into loop iterations in delay_us().

See:delay_us()

STM32_SRAM_END

Pointer to end of built-in SRAM.

Points to the address which is 1 byte past the last valid SRAM address.

Deprecated Defines

PCLK1

Deprecated.

Use STM32_PCLK1 instead.

PCLK2

Deprecated.

Use STM32_PCLK2 instead.

NR_INTERRUPTS

Deprecated.

Use STM32_NR_INTERRUPTS instead.

NR_GPIO_PORTS

Deprecated.

Use STM32_NR_GPIO_PORTS instead.

DELAY_US_MULT

Deprecated.

Use STM32_DELAY_US_MULT instead.