当前位置:网站首页>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 message
Code 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
边栏推荐
- 行业落地呈现新进展 | 2022开放原子全球开源峰会OpenAtom OpenHarmony分论坛圆满召开
- 论治理与创新 | 2022开放原子全球开源峰会OpenAnolis分论坛圆满召开
- Port inspection steps - 7680 port analysis - Dosvc service
- Can‘t load /home/Iot/.rnd into RNG
- The idea project obviously has dependencies, but the file is not displayed, Cannot resolve symbol 'XXX'
- MySQL fuzzy query can use INSTR instead of LIKE
- "A daily practice, happy water problem" 1331. Array serial number conversion
- HCIP第十天_BGP路由汇总实验
- ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that corresponds to your
- ClickHouse:设置远程连接
猜你喜欢
Explanation of
WPF WPF 】 【 the depth resolution of the template
开源社区三十年 | 2022开放原子全球开源峰会开源社区三十年专题活动圆满召开
Summary of Huawei Distributed Storage FusionStorage Knowledge Points [Interview]
开放原子开源基金会秘书长孙文龙 | 凝心聚力,共拓开源
已解决(最新版selenium框架元素定位报错)NameError: name ‘By‘ is not defined
Daily practice of LeetCode - 138. Copy a linked list with random pointers
VScode+ESP32快速安装ESP-IDF插件
ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that corresponds to your
Two address pools r2 are responsible for managing the address pool r1 is responsible for managing dhcp relays
随机推荐
数字经济时代的开源数据库创新 | 2022开放原子全球开源峰会数据库分论坛圆满召开
WPF WPF 】 【 the depth resolution of the template
Gaussian distribution and its maximum likelihood estimation
LocalDate addition and subtraction operations and comparison size
【AUTOSAR-RTE】-4-Port and Interface and Data Type
C language from entry to such as soil, the data store
【wpf】wpf中的那些模板之深度解析
MySQL模糊查询可以使用INSTR替代LIKE
[CV project debugging] CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT problem
Redis uses LIST to cache the latest comments
On Governance and Innovation | 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum was successfully held
visual studio 那些提高效率的快捷键,总结(不时更新)
Fusion Cloud Native, Empowering New Milestones | 2022 Open Atom Global Open Source Summit Cloud Native Sub-Forum Successfully Held
Win10 CUDA CUDNN 安装配置(torch paddlepaddle)
open failed: EACCES (Permission denied)
(Line segment tree) Summary of common problems of basic line segment tree
type_traits元编程库学习
Safety 20220712
(树) 最近公共祖先(LCA)
Knowledge Distillation 7: Detailed Explanation of Knowledge Distillation Code