Here, alternative functions and classes for STM32. The program contains a class for the I2C software bus, a class for working with a watchdog timer and time delay functions based on DWT. All functions and classes use the HAL library. Functions and classes were written for the microcontroller stm32f103.
Dependents: STM32_F1XX_Alternative
Diff: AlternativeDelay.hpp
- Revision:
- 0:2f819bf6cd99
diff -r 000000000000 -r 2f819bf6cd99 AlternativeDelay.hpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AlternativeDelay.hpp Wed May 24 19:04:12 2017 +0000 @@ -0,0 +1,10 @@ +#ifndef _STM32_ALTERNATIVE_DELAY_H +#define _STM32_ALTERNATIVE_DELAY_H + +#include "mbed.h" + +void initializeTimeDelays(void); +void delay_us(uint32_t us); +void delay_ms(uint32_t ms); + +#endif // _STM32_ALTERNATIVE_DELAY_H \ No newline at end of file