For each device, the MCU vendor provides a header file that pulls-in additional header files required by the device driver library and the Core Peripheral Access Layer. Include the file device_family.h into the source code.

CMSIS Usage

To stay CMSIS-compliant, use the predefined exception and interrupt constants, core functions, and middleware functions for accessing device peripherals. CMSIS-compliant device drivers contain a startup-code file, including the vector table for various supported compilers. Some CMSIS-compliant source code files are listed below:

  • device_family.h is the header file defining the device.
  • core_cm3.h is the header file defining the device core.
  • core_cm3.c contains core intrinsic functions.
  • system_device_family.h contains device specific interrupt and peripheral register definitions.
  • system_device_family.c contains system functions and the initialization code.
  • startup_device_family.s contains the start-up code.

CMSIS Usage Note

  • CMSIS examples can be found on the microcontroller vendor's web site.

相关文章:

  • 2022-12-23
  • 2021-05-19
  • 2021-08-24
  • 2021-03-31
  • 2021-10-12
  • 2021-12-13
  • 2022-03-08
  • 2022-12-23
猜你喜欢
  • 2022-03-06
  • 2021-07-25
  • 2021-04-04
  • 2021-10-05
  • 2021-09-03
  • 2022-12-23
相关资源
相似解决方案