STM32F33: Fix hrtim definitions, Add beginning of HRTIM driver

This commit is contained in:
Mateusz Szafoni
2017-06-11 10:49:20 -06:00
committed by Gregory Nutt
parent 40f60d6da5
commit 437ad3ccb2
4 changed files with 164 additions and 305 deletions
+4
View File
@@ -225,6 +225,10 @@ ifeq ($(CONFIG_OPAMP),y)
CHIP_CSRCS += stm32_opamp.c
endif
ifeq ($(CONFIG_HRTIM),y)
CHIP_CSRCS += stm32_hrtim.c
endif
ifeq ($(CONFIG_STM32_1WIREDRIVER),y)
CHIP_CSRCS += stm32_1wire.c
endif
File diff suppressed because it is too large Load Diff
+1
View File
@@ -67,6 +67,7 @@
#include "stm32_flash.h"
#include "stm32_fsmc.h"
#include "stm32_gpio.h"
#include "stm32_hrtim.h"
#include "stm32_i2c.h"
#include "stm32_ltdc.h"
#include "stm32_opamp.h"
-2
View File
@@ -332,9 +332,7 @@ static inline void rcc_enableapb2(void)
#ifdef CONFIG_STM32_HRTIM1
/* HRTIM1 Timer clock enable */
#ifdef CONFIG_STM32_FORCEPOWER
regval |= RCC_APB2ENR_HRTIM1EN;
#endif
#endif
putreg32(regval, STM32_RCC_APB2ENR);