CMSIS and Peripheral Drivers

what types of codes are written in CMSIS files and peripheral driver files. How can I tell them apart? any example would be more helpful. Thank.

+4
source share
2 answers

"CMSIS" is the "Cortex Microcontroller Software Interface Standard" . This is an ARM standard, so code must be more or less portable between Cortex implementations.

Peripheral device libraries are generally more vendor specific, as there is no standard way to implement two different vendors, for example. timer or UART unit.

, ( ) ARM STM32. CMSIS , CMSIS :

CMSIS-Driver: , . API , , , , .

, , , , , , CMSIS-Driver.

. STM32: , GPIO ST.

, :

  • RCC_AHB1PeriphClockCmd() GPIO. , , . , GPIO AHB1.
  • GPIO_InitTypeDef, GPIO_StructInit() , .
  • GPIO_InitTypeDef, .
  • GPIO_Init() , GPIO_InitTypeDef . .
  • GPIO_SetBits(), GPIO_ReadInputDataBit() et cetera GPIO.
+4

CMSIS ARM , NXP ( LPC ..) STM (STM32f4, stm32F1), , ARM. . C/++ , . .

c/++. .

LPC18xx, CMSIS, CMSIS ,

: , I2C. Cmsis I2C . .

, SPI, CMSIS RTOS.

0

All Articles