当前位置:网站首页>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

边栏推荐
- LocalDate addition and subtraction operations and comparison size
- open failed: EACCES (Permission denied)
- 【C语言进阶】文件操作(一)
- The use of beforeDestroy and destroyed
- (四)递归、可变参数、访问修饰符、理解 main 方法、代码块
- (8) Math class, Arrays class, System class, Biglnteger and BigDecimal classes, date class
- 扫雷小游戏——C语言
- three.js 制作3D相册
- Safety 20220722
- MySQL数据库增删改查(基础操作命令详解)
猜你喜欢

MATLAB/Simulink & & STM32CubeMX tool chain completes model-based design development (MBD) (three)

扫雷游戏(c语言写)

WPF WPF 】 【 the depth resolution of the template

Thinking about data governance after Didi fines

No qualifying bean of type question

mysql基础知识(二)

ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)

input输入框展示两位小数之precision
![[Paper reading] Mastering the game of Go with deep neural networks and tree search](/img/4f/899da202e13bd561bbfdbaeebe4d2e.jpg)
[Paper reading] Mastering the game of Go with deep neural networks and tree search

微信小程序使用云函数更新和添加云数据库嵌套数组元素
随机推荐
idea工程明明有依赖但是文件就是显示没有,Cannot resolve symbol ‘XXX‘
Redis counts new and retained users
How Zotero removes auto-generated tags
XSS shooting range (3) prompt to win
从零开始,一镜到底,纯净系统搭建除草机(Grasscutter)
【线性神经网络】softmax回归
MySQL修改root账号密码
开源汇智创未来 | 2022开放原子全球开源峰会OpenAtom openEuler分论坛圆满召开
Two address pools r2 are responsible for managing the address pool r1 is responsible for managing dhcp relays
[CV project debugging] CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT problem
MySQL数据库增删改查(基础操作命令详解)
log level and print log note
Go语学习笔记 - 处理超时问题 - Context使用 | 从零开始Go语言
Pytest e-commerce project combat (on)
BP神经网络
[Swift]自定义点击APP图标弹出的快捷方式
(五)final、抽象类、接口、内部类
qlib架构
From scratch, a mirror to the end, a pure system builds a grasscutter (Grasscutter)
three.js make 3D photo album