Why STM32 LL is More Efficient than HAL?

Why STM32 LL is More Efficient than HAL?

Follow+Star Public Account, don’t miss out on exciting content Author | strongerHuang WeChat Public Account | Embedded Column The standard peripheral library, HAL, and LL software library of STM32 all have many clever aspects worth learning from.Today, we will discuss how the STM32Cube LL library cleverly uses “static inline” to make the code more efficient. … Read more

HarmonyOS Device Driver Development: Design and Implementation of the Hardware Adaptation Layer

HarmonyOS Device Driver Development: Design and Implementation of the Hardware Adaptation Layer

Hello, today let’s talk about something hardcore! The development of device drivers for HarmonyOS—this seemingly profound but actually quite interesting topic. Don’t be intimidated by the jargon; follow me step by step, and I guarantee you’ll have a clear understanding of the Hardware Adaptation Layer. I’ve been tinkering with Harmony drivers for over two years, … Read more

Embassy: The Future of Embedded Development with Rust

Embassy: The Future of Embedded Development with Rust

Embedded system development has always faced numerous challenges: high code complexity, strict real-time requirements, limited resources, and debugging difficulties. The Rust language, with its features of memory safety, concurrency safety, and high performance, brings new hope for embedded development. Embassy is a next-generation embedded application framework built on the Rust language, aimed at simplifying the … Read more

Design Concepts of Hardware Abstraction Layer (HAL & BSP) Part Two

Design Concepts of Hardware Abstraction Layer (HAL & BSP) Part Two

1 BSP Design Example (Taking STM32 Hardware Platform as an Example) 2 Summary of Hardware Abstraction Layer Design 2.1 Key Points in Module Header File Design 1. Only include definitions of data types and descriptions of interface functions provided for external calls. 2. Generally, do not define variables or describe hardware-related resources, nor include any … Read more

Navigating the EBSCO Foreign Journal Database

Navigating the EBSCO Foreign Journal Database

Resource Overview EBSCO is a group company specializing in the distribution of print journals, electronic journal publications, and electronic literature database publishing. It represents over 260,000 print journals, more than 50 full-text journal databases, over 50 abstract databases, and nearly 10,000 electronic journals (of which nearly 8,000 can be searched for abstracts or full text … Read more

Detailed Analysis of Interrupt Functions in STM32 HAL Library

Detailed Analysis of Interrupt Functions in STM32 HAL Library

Reminder: This article briefly reviews the relevant knowledge points of EXTI and NVIC, analyzing the external interrupt callback mechanism of the STM32F1 series microcontroller. Before we start, let’s review some knowledge related to EXTI and NVIC: External Interrupt/Event Controller (EXTI) For interconnect products (series 105, 107), the external interrupt/event controller consists of 20 edge detectors … Read more

Detailed Analysis of Interrupt Functions in STM32 HAL Library – NVIC

Detailed Analysis of Interrupt Functions in STM32 HAL Library - NVIC

Reminder: This article takes external interrupt for lighting as an example, analyzing the usage of interrupt service related functions in the HAL library, their interconnections, and underlying principles. 1. Example Implementation Example Overview: The main function controls LED2 to blink, while the interrupt controls the switch of LED0: First, we use CubeMX to create the … Read more

20 Commonly Used STM32 MCU Library Functions

20 Commonly Used STM32 MCU Library Functions

The development of STM32 microcontrollers relies heavily on their powerful library function support. These library functions provide developers with a unified interface, simplifying the operation of low-level hardware, improving development efficiency and the reliability of programs. Below we will share 20 commonly used library functions for STM32 microcontrollers. 1. GPIO Initialization Function void HAL_GPIO_Init(GPIO_TypeDef* GPIOx, … Read more

Design of Asphalt Tank Liquid Level Monitoring System Based on Cloud Platform

Design of Asphalt Tank Liquid Level Monitoring System Based on Cloud Platform

Du Yongjie 1,Lu Yi 1,Zhao Jing 2 (1.China Jiliang University, School of Measurement and Testing Engineering, Hangzhou, Zhejiang 310018;2.Hangzhou Woolay Intelligent Technology Co., Ltd., Hangzhou, Zhejiang 310018) Abstract: Currently, the liquid level measurement of asphalt tanks at mixing stations mainly relies on manual estimation and float measurement. To address the issues of large measurement errors … Read more