Device Header Files

For STM32C5 series the CMSIS Device Header files are provided in the DFP pack

  • Include/stm32c5xx.h : device entry header file (common)

  • Include/stm32c5nnxx.h : device header file

The entry header file is the unique include file that the application programmer is using in the C source code, usually in HAL2 drivers. This file provides:

  • The define header inclusion based on STM32C5XXxx define matching the device used in the target application.

  • Macros definitions that are used to read/write memory

  • Helper functions to access the System Control Block (SCB) and SysTick.

The Device Header File contains the following functionalities that are device-specific:

  • Interrupt Number Definition: provides interrupt numbers (IRQn) for all exceptions and interrupts of the device.

    • Negative IRQn values represent processor core exceptions.

    • Positive IRQn values represent device-specific exceptions the IRQn values should reflect interrupt vector table in C Startup Files

  • Configuration of the Processor and Core Peripherals reflect the features of the device.

  • Device Peripheral Access Layer provides definitions for the Peripheral Access to all device peripherals. It contains all data structures and the address mapping for device-specific peripherals.

    • Register Layout Typedef

    • Base Address

    • Register Bit-Fields definitions