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

Committer:
Yar
Date:
Wed May 24 20:35:23 2017 +0000
Revision:
1:0d39ea4dee8b
Parent:
0:2f819bf6cd99
Fixed a bug with a delay of milliseconds

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Yar 0:2f819bf6cd99 1 #ifndef _STM32_ALTERNATIVE_DELAY_H
Yar 0:2f819bf6cd99 2 #define _STM32_ALTERNATIVE_DELAY_H
Yar 0:2f819bf6cd99 3
Yar 0:2f819bf6cd99 4 #include "mbed.h"
Yar 0:2f819bf6cd99 5
Yar 0:2f819bf6cd99 6 void initializeTimeDelays(void);
Yar 0:2f819bf6cd99 7 void delay_us(uint32_t us);
Yar 0:2f819bf6cd99 8 void delay_ms(uint32_t ms);
Yar 0:2f819bf6cd99 9
Yar 0:2f819bf6cd99 10 #endif // _STM32_ALTERNATIVE_DELAY_H