-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdwt.h
More file actions
27 lines (24 loc) · 700 Bytes
/
dwt.h
File metadata and controls
27 lines (24 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
* Copyright (c) 2019, [email protected]
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2019-08-24 sogwms the first version
*/
#ifndef __DWT_H__
#define __DWT_H__
#include <stdint.h>
float dwt_set_frequency(uint32_t frquency);
uint32_t dwt_tick_to_ns(uint32_t tick);
uint32_t dwt_get_count(void);
void dwt_delay(uint32_t tick);
void dwt_udelay(uint32_t us);
void dwt_mdelay(uint32_t ms);
void dwt_measure_begin(void);
uint32_t dwt_measure_end(void);
void dwt_enable_cyccnt(void);
void dwt_disable_cyccnt(void);
int dwt_init(uint32_t frquency);
#endif // __DWT_H__