【2022年的STM32】 03-HAL与LL(Low-layer APIs)与MCU驱动概述

概述

区别与以前的固件库(标准固件库SPL),ST推出了新的固件库HAL与LL,当然,LL只适合部分外设,是层次更低的API,可以缩减代码大小,本文对硬件抽象层HAL和LL层做概要分析,后续将在各个章节中使用HAL构建上层的基础支持层或者应用。
ST官方链接:ST HAL UserManul

HAL与LL

– The STM32Cube HAL, STM32 abstraction layer embedded software ensuring maximized portability across the STM32 portfolio. HAL APIs are available for all peripherals.
– Low-layer APIs (LL) offering a fast light-weight expert-oriented layer which is closer to the hardware than the HAL. LL APIs are available only for a set of peripherals.

__STATIC_INLINE uint32_t LL_GPIO_ReadInputPort(GPIO_TypeDe

你可能感兴趣的:(STM32,stm32,单片机,mcu,嵌入式,arm)