Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sogwms/armv7m_dwt
https://github.com/sogwms/armv7m_dwt
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sogwms/armv7m_dwt
- Owner: sogwms
- License: apache-2.0
- Created: 2019-08-24T02:59:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-25T09:16:58.000Z (11 months ago)
- Last Synced: 2024-02-26T08:39:39.716Z (11 months ago)
- Language: C
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rt-thread - armv7m_dwt - Armv7m_dwt High precision timing and delay. (Packages / Misc)
- awesome-rt-thread - armv7m_dwt - Armv7m_dwt High precision timing and delay. (Packages / Misc)
README
# ARMv7-M_DWT
ToDo: 长时长测量支持
Note: ARMv7m Architecture Reference Manual (Chapter ARMv7-M Debug)
## 简介
本软件包基于 ARMv7-M Debug 架构中 DWT 计数器而提供了高精度延时 和 计时功能 (精度:1 / processor-clock),可用于benchmark等
## 使用说明
### 依赖
- ARMv7-M 架构 (cortex-m3, cortex-m4, cortex-m7)
### 获取软件包
使用 ARMv7-M_DWT 软件包需要在 RT-Thread 的包管理中选中它,具体路径如下:
```shell
RT-Thread online packages
miscellaneous packages --->
[*] armv7m_dwt: High precision timing and delay --->
Version (latest) --->
```**Version**:软件包版本选择
### 使用软件包
首先需要进行初始化, 初始化接口如下:
```c
int dwt_init(uint32_t frquency);
```_e.g. 对于 STM32 系列 HAL 库 ``` dwt_init(HAL_RCC_GetSysClockFreq()) ```_
初始化完成后就可以使用了,相关 API 请参考 [api.md](./api.md)
## 注意事项
* 不能并发使用, 除非你知道在干什么
* The function can't work when the processor is halted in Debug state.
## 联系人信息
维护人:
- [sogwms](https://github.com/sogwms)