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