mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
STM32F33: Fix hrtim definitions, Add beginning of HRTIM driver
This commit is contained in:
committed by
Gregory Nutt
parent
40f60d6da5
commit
437ad3ccb2
@@ -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
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user