|
sarmfsw: SMFSW Toolbox (desinged for ARM / compatible with other 8b/16b/32b platforms) 4.0rc
SMFSW collection of miscellaneous functions \& macros (desinged for ARM / compatible with other 8b/16b/32b platforms)
|
ARM common macros for STM32. More...
#include "main.h"#include <ARM_CMSIS_INC>
Macros | |
| #define | STM_HEADER(f) |
concatenate <stm32(f)xx.h> name following stm family f | |
| #define | STM_CONF_HEADER(f) |
concatenate <stm32(f)xx_hal.h> name following stm family f | |
| #define | ARM_CMSIS_INC STM_HEADER(STM_FAMILY) |
| Alias for STM32 CMSIS include. | |
| #define | ARM_HAL_CFG STM_CONF_HEADER(STM_FAMILY) |
| Alias for STM32 HAL config include. | |
| #define | stm_port(mnem) |
| Wrapper for PORT Alias. | |
| #define | stm_pin(mnem) |
| Wrapper for PIN Alias. | |
| #define | GPIO(mnem) |
| Wrapper for PORT/PIN Alias (when using HAL_GPIO_ReadPin for example) | |
| #define | stm_timer(mnem) |
| #define | stm_channel(mnem) |
| #define | TIM(mnem) |
Wrapper for mnem TIM/CHAN Alias (when using HAL_TIM_PWM_Start for example) | |
| #define | STM32_OPTION_BYTES (VAL_AT(OB_BASE, uint64_t)) |
| Option Bytes register address content. | |
| #define | STM32_FLASHSIZE (VAL_AT(FLASHSIZE_BASE, uint16_t)) |
| Flash size register address content. | |
| #define | STM32_UNIQUE_ID1 (VAL_AT(UID_BASE, uint32_t)) |
| Unique ID 1 register address content. | |
| #define | STM32_UNIQUE_ID2 (VAL_AT(UID_BASE+4, uint32_t)) |
| Unique ID 2 register address content. | |
| #define | STM32_UNIQUE_ID3 (VAL_AT(UID_BASE+8, uint32_t)) |
| Unique ID 3 register address content. | |
| #define | FLASH_SIZE (STM32_FLASHSIZE * 1024) |
| Flash size in bytes. | |
| #define | HAL_MAX_TICKS ((uint32_t) -1) |
| HAL max Ticks value. | |
| #define | HAL_MS_TICKS_FACTOR 1U |
| HAL milliseconds multiplier (depending tick counter frequency) | |
| #define | HAL_ResetSource() |
| Get STM32 Reset Source. | |
Enumerations | |
| enum | eResetSource { RST_POR = 1U , RST_BOR , RST_PIN , RST_SW , RST_IWDG , RST_WWDG , RST_LPWR , RST_OBL , RST_V18PWR , RST_FW , RST_UNKNOWN = 0xFFU } |
| Source of last reset. More... | |
ARM common macros for STM32.
typedef name (misra-c2012-5.6)typedefs name are only defined once (other arm_chip_xxx files are not included at the same time).| #define ARM_CMSIS_INC STM_HEADER(STM_FAMILY) |
Alias for STM32 CMSIS include.
| #define ARM_HAL_CFG STM_CONF_HEADER(STM_FAMILY) |
Alias for STM32 HAL config include.
| #define FLASH_SIZE (STM32_FLASHSIZE * 1024) |
Flash size in bytes.
| #define GPIO | ( | mnem | ) |
| #define HAL_MAX_TICKS ((uint32_t) -1) |
HAL max Ticks value.
| #define HAL_MS_TICKS_FACTOR 1U |
HAL milliseconds multiplier (depending tick counter frequency)
| #define HAL_ResetSource | ( | void | ) |
Get STM32 Reset Source.
| #define STM32_FLASHSIZE (VAL_AT(FLASHSIZE_BASE, uint16_t)) |
Flash size register address content.
| #define STM32_OPTION_BYTES (VAL_AT(OB_BASE, uint64_t)) |
Option Bytes register address content.
| #define STM32_UNIQUE_ID1 (VAL_AT(UID_BASE, uint32_t)) |
Unique ID 1 register address content.
| #define STM32_UNIQUE_ID2 (VAL_AT(UID_BASE+4, uint32_t)) |
Unique ID 2 register address content.
| #define STM32_UNIQUE_ID3 (VAL_AT(UID_BASE+8, uint32_t)) |
Unique ID 3 register address content.
| #define stm_channel | ( | mnem | ) |
| #define STM_CONF_HEADER | ( | f | ) |
| #define STM_HEADER | ( | f | ) |
| #define stm_pin | ( | mnem | ) |
Wrapper for PIN Alias.
| #define stm_port | ( | mnem | ) |
Wrapper for PORT Alias.
| #define stm_timer | ( | mnem | ) |
mnem name corresponding to TIMER instance defined in CubeMX (for consistency with STM32 HAL) Wrapper for mnem TIM Alias | #define TIM | ( | mnem | ) |
Wrapper for mnem TIM/CHAN Alias (when using HAL_TIM_PWM_Start for example)
mnem name corresponding to TIMER instance defined in CubeMX (for consistency with STM32 HAL) | enum eResetSource |
Source of last reset.