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
Stm32F1xxAlternative.hpp@0:2f819bf6cd99, 2017-05-24 (annotated)
- Committer:
- Yar
- Date:
- Wed May 24 19:04:12 2017 +0000
- Revision:
- 0:2f819bf6cd99
Implemented class for the I2C software bus. The class for working with I2C only supports writing data. Implemented alternative functions for time delays based on DWT. Implemented a class for working with a watchdog timer.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Yar | 0:2f819bf6cd99 | 1 | #ifndef _STM32_F1XX_ALTERNATIVE_H |
Yar | 0:2f819bf6cd99 | 2 | #define _STM32_F1XX_ALTERNATIVE_H |
Yar | 0:2f819bf6cd99 | 3 | |
Yar | 0:2f819bf6cd99 | 4 | #include "stm32f1xx_hal.h" |
Yar | 0:2f819bf6cd99 | 5 | #include "stm32f1xx_hal_iwdg.h" |
Yar | 0:2f819bf6cd99 | 6 | #include "WatchdogTimer.hpp" |
Yar | 0:2f819bf6cd99 | 7 | #include "AlternativeDelay.hpp" |
Yar | 0:2f819bf6cd99 | 8 | #include "AlternativeSoftwareI2C.hpp" |
Yar | 0:2f819bf6cd99 | 9 | |
Yar | 0:2f819bf6cd99 | 10 | #endif |