[STM32F0] Add support for timers.

This commit has been based on kuldeepdhaka's pioneer work, but it was reformatted to apply libopencm3 inclusion tree correctly.

timer_common_all.c now supports new rcc_periph_reset_pulse function for all families.
This commit is contained in:
Frantisek Burian
2014-03-03 00:33:32 +01:00
committed by Karl Palsson
parent f780075d4d
commit bf01d890f6
4 changed files with 87 additions and 91 deletions

View File

@@ -45,11 +45,15 @@ specific memorymap.h header before including this header file.*/
#define TIM1 TIM1_BASE
#define TIM2 TIM2_BASE
#define TIM3 TIM3_BASE
#if defined(TIM4_BASE)
#define TIM4 TIM4_BASE
#endif
#define TIM5 TIM5_BASE
#define TIM6 TIM6_BASE
#define TIM7 TIM7_BASE
#define TIM8 TIM8_BASE
#if defined(TIM8_BASE)
# define TIM8 TIM8_BASE
#endif
/**@}*/
/* --- Timer registers ----------------------------------------------------- */

View File

@@ -32,4 +32,6 @@
#ifndef LIBOPENCM3_TIMER_H
#define LIBOPENCM3_TIMER_H
#include <libopencm3/stm32/common/timer_common_all.h>
#endif