当前位置:网站首页>STM32HAL library modifies Hal_Delay to us-level delay
STM32HAL library modifies Hal_Delay to us-level delay
2022-07-31 04:30:00 【son wei】
STM32HAL library modifies Hal_Delay to us-level delay
Prerequisites
- STM32CudeMX generated files (best)
- Allocation of clock with system and clock without system
- Before rewriting, it is necessary to test that Hal_Delay can perform MS-level delay under normal conditions
Description
This modification is my test under FreeRTOS, and the principle is the same.Compared with the punctual atomic solution, I personally feel that it will be general, simple, reliable, and many.At present, no problems have been found in the test. If you find any problems during use, please leave a messageCode to modify
- stm32f4xx_hal.c, the red circle part is the code that needs to be modified.
- stm32f4xx_hal.h, add this code in the red circle
HAL_TICK_FREQ_1HZ = 1000U,stm32f4xx_hal.c

stm32f4xx_hal.h

边栏推荐
- From scratch, a mirror to the end, a pure system builds a grasscutter (Grasscutter)
- 简易网络文件拷贝的C实现
- ClickHouse: Setting up remote connections
- ENSP, VLAN division, static routing, comprehensive configuration of Layer 3 switches
- 高等数学---第九章二重积分
- Knowledge Distillation 7: Detailed Explanation of Knowledge Distillation Code
- $attrs/$listeners
- interprocess communication
- 关于出现大量close_wait状态的理解
- C语言从入门到如土——数据的存储
猜你喜欢

手把手实现图片预览插件(三)

"A daily practice, happy water problem" 1331. Array serial number conversion

Hand in hand to realize the picture preview plug-in (3)

Component pass value provide/inject

The idea project obviously has dependencies, but the file is not displayed, Cannot resolve symbol 'XXX'

VScode+ESP32 quickly install ESP-IDF plugin

Safety 20220712

行业落地呈现新进展 | 2022开放原子全球开源峰会OpenAtom OpenHarmony分论坛圆满召开

Go语学习笔记 - 处理超时问题 - Context使用 | 从零开始Go语言

开源社区三十年 | 2022开放原子全球开源峰会开源社区三十年专题活动圆满召开
随机推荐
Unity打灵狐者
Explanation of
On Governance and Innovation | 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum was successfully held
VScode+ESP32快速安装ESP-IDF插件
The idea project obviously has dependencies, but the file is not displayed, Cannot resolve symbol 'XXX'
[Swift]自定义点击APP图标弹出的快捷方式
LocalDate addition and subtraction operations and comparison size
[Paper reading] Mastering the game of Go with deep neural networks and tree search
【SemiDrive源码分析】【MailBox核间通信】44 - 基于Mailbox IPCC RPC 实现核间通信(RTOS侧 IPCC_RPC Server 消息接收及回复 原理分析篇)
"DeepJIT: An End-To-End Deep Learning Framework for Just-In-Time Defect Prediction" paper notes
Musk talks to the "virtual version" of Musk, how far is the brain-computer interaction technology from us
How Zotero removes auto-generated tags
问题1:给你1-10的列表,实现列表输出,单数在左边,双数在右边。
errno error code and meaning (Chinese)
BUG destroyer!!Practical debugging skills are super comprehensive
[shell basics] determine whether the directory is empty
强化学习:从入门到入坑再到拉屎
Industry landing presents new progress | 2022 OpenAtom Global Open Source Summit OpenAtom OpenHarmony sub-forum was successfully held
扫雷小游戏——C语言
【论文阅读】Mastering the game of Go with deep neural networks and tree search