Skip to content

STM32 HAL library for release function micros() and delay_us().

License

Notifications You must be signed in to change notification settings

vverenich/STM32_HAL_micros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

STM32_HAL_micros

A simple C library (STM32 HAL) for working with microsecond function.

Copy the library header to the appropriate project directories (Inc).

In the head file of your project (main.c), include the header file

/ * USER CODE BEGIN Includes * /
#include "micros.h"
/ * USER CODE END Includes * /

add in main function section for initial initialization of the DWT (Data Watchpoint and Trace unit)

/* USER CODE BEGIN 2 */
  DWT_Init();
/* USER CODE END 2 */

Use function on program

uint32_t micros();
void delay_us(...);

About

STM32 HAL library for release function micros() and delay_us().

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages