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)
Loading...
Searching...
No Matches
arm_cmsis.h File Reference

ARM link with CMSIS files. More...

This graph shows which files directly or indirectly include this file:

Macros

#define diInterrupts()
 Disable interruptions macro.
 
#define enInterrupts()
 Enable interruptions macro.
 
#define CORE_CMSIS_VERSION   __CM_CMSIS_VERSION
 CMSIS Core version alias.
 
#define CORTEX_M   __CORTEX_M
 ARM Cortex type alias.
 
#define HAL_INC_DISABLE
 
#define HALTICKS_PROTOTYPE(func)
 External definition of Ticks getter that shall be implemented in project.
 
#define HALTicks   HAL_GetTick
 Alias for HAL get ticks function.
 
#define HAL_MS_TICKS_FACTOR   1U
 HAL milliseconds multiplier (depending tick counter frequency)
 

Functions

 HALTICKS_PROTOTYPE (HAL_GetTick)
 External definition of HAL_GetTick that shall be defined in project (32b counter)
 

Detailed Description

ARM link with CMSIS files.

Author
SMFSW
Warning
Latest ARM chips might now be recognized; if not, define at project level:
  • for STM32 families (STMicroelectronics):
    • STM_FAMILY xy:
      • x : c/f/g/h/l/mp/n/u/wb/wl
      • y : sub-family number
  • for SAM families (Atmel):
    • SAM_FAMILY xy(yy)
  • for PIC families (Microchip):
    • PIC_FAMILY pic(xx)
  • for INO families:
    • INO_FAMILY arduino (any device)
  • for Other families (TI ...):
    • not implemented yet

Macro Definition Documentation

◆ CORE_CMSIS_VERSION

#define CORE_CMSIS_VERSION   __CM_CMSIS_VERSION

CMSIS Core version alias.

◆ CORTEX_M

#define CORTEX_M   __CORTEX_M

ARM Cortex type alias.

◆ diInterrupts

#define diInterrupts ( )
Value:
__disable_irq()

Disable interruptions macro.

◆ enInterrupts

#define enInterrupts ( )
Value:
__enable_irq()

Enable interruptions macro.

◆ HAL_INC_DISABLE

#define HAL_INC_DISABLE

◆ HAL_MS_TICKS_FACTOR

#define HAL_MS_TICKS_FACTOR   1U

HAL milliseconds multiplier (depending tick counter frequency)

◆ HALTicks

#define HALTicks   HAL_GetTick

Alias for HAL get ticks function.

◆ HALTICKS_PROTOTYPE

#define HALTICKS_PROTOTYPE ( func)
Value:
uint32_t func(void)

External definition of Ticks getter that shall be implemented in project.

Warning
Ensure tick counter implementation counts towards full 32b resolution
Note
arm_inlines_ticks.h needs a generic definition of HALTicks & HAL_MS_TICKS_FACTOR
MISRA C:2012 Deviations
Local derogation authorized for:
Rule-20.7 - Required: Enclosed macro parameters expansion (misra-c2012-20.7)
Justification: func parameter shall be a function name; raising error otherwise is intended.
Returns
Current tick (unsigned 32b)

Function Documentation

◆ HALTICKS_PROTOTYPE()

HALTICKS_PROTOTYPE ( HAL_GetTick )

External definition of HAL_GetTick that shall be defined in project (32b counter)