当前位置:网站首页>STM32HAL库修改Hal_Delay为us级延时
STM32HAL库修改Hal_Delay为us级延时
2022-07-31 04:17:00 【公子 魏】
STM32HAL库修改Hal_Delay为us级延时
前提
- STM32CudeMX 生成的文件(最好)
- 带系统的时钟和不带系统的注意时钟的分配
- 改写前需要测试Hal_Delay在正常情况下可以进行MS级延时
说明
这个修改是我在FreeRTOS下进行的测试,原理上是一样的 。
这个相比于正点原子的解决方案,我个人感觉会通用、简单、可靠、许多。
目前测试没有发现什么问题,如果大家在使用的过程中发现了什么问题欢迎留言
需要修改的代码
- stm32f4xx_hal.c,红圈部分为需要修改的代码。
- stm32f4xx_hal.h, 在红圈中添加这段代码
HAL_TICK_FREQ_1HZ = 1000U,
stm32f4xx_hal.c

stm32f4xx_hal.h

边栏推荐
- 《DeepJIT: An End-To-End Deep Learning Framework for Just-In-Time Defect Prediction》论文笔记
- 安全20220709
- Can‘t load /home/Iot/.rnd into RNG
- SOLVED: After accidentally uninstalling pip (two ways to manually install pip)
- 【论文阅读】Mastering the game of Go with deep neural networks and tree search
- BUG destroyer!!Practical debugging skills are super comprehensive
- 【SemiDrive源码分析】【MailBox核间通信】44 - 基于Mailbox IPCC RPC 实现核间通信(RTOS侧 IPCC_RPC Server 消息接收及回复 原理分析篇)
- MySQL模糊查询可以使用INSTR替代LIKE
- binom二项分布,
- mysql数据库安装(详细)
猜你喜欢

Solved (the latest version of selenium framework element positioning error) NameError: name 'By' is not defined

Exsl file preview, word file preview web page method

The third is the code to achieve

(四)递归、可变参数、访问修饰符、理解 main 方法、代码块

Recursive implementation of the Tower of Hanoi problem

mysql数据库安装(详细)

Musk talks to the "virtual version" of Musk, how far is the brain-computer interaction technology from us

ENSP,划分VLAN、静态路由,三层交换机综合配置

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

Understanding and Using Unity2D Custom Scriptable Tiles (4) - Start to build a custom tile based on the Tile class (below)
随机推荐
MySQL数据库安装配置保姆级教程(以8.0.29为例)有手就行
数字经济时代的开源数据库创新 | 2022开放原子全球开源峰会数据库分论坛圆满召开
Pytest电商项目实战(上)
[AUTOSAR-RTE]-5-Explicit (explicit) and Implicit (implicit) Sender-Receiver communication
【小土堆补充】Pytorch学习笔记_Anaconda虚拟环境使用
问题1:给你1-10的列表,实现列表输出,单数在左边,双数在右边。
安全20220718
el-image tag doesn't work after binding click event
Vue项目通过node连接MySQL数据库并实现增删改查操作
VScode+ESP32快速安装ESP-IDF插件
ENSP,划分VLAN、静态路由,三层交换机综合配置
The use of beforeDestroy and destroyed
Redis 使用 sorted set 做最新评论缓存
(五)final、抽象类、接口、内部类
MySQL模糊查询可以使用INSTR替代LIKE
MySQL to revise the root password
递归实现汉诺塔问题
论治理与创新 | 2022开放原子全球开源峰会OpenAnolis分论坛圆满召开
手把手实现图片预览插件(三)
Safety 20220722