diff --git a/arch/arm/src/samv7/sam_tc_lowerhalf.h b/arch/arm/src/samv7/sam_tc_lowerhalf.h index 8f9fab7202e..2d21404ef19 100644 --- a/arch/arm/src/samv7/sam_tc_lowerhalf.h +++ b/arch/arm/src/samv7/sam_tc_lowerhalf.h @@ -21,12 +21,6 @@ #ifndef __ARCH_ARM_SRC_SAMV7_SAM_TC_LOWERHALF_H #define __ARCH_ARM_SRC_SAMV7_SAM_TC_LOWERHALF_H -/**************************************************************************** - * Included Files - ****************************************************************************/ - -#include - /**************************************************************************** * Public Function Prototypes ****************************************************************************/ diff --git a/boards/arm/samv7/same70-qmtech/src/sam_bringup.c b/boards/arm/samv7/same70-qmtech/src/sam_bringup.c index e66f60bb157..7759acd2cd0 100644 --- a/boards/arm/samv7/same70-qmtech/src/sam_bringup.c +++ b/boards/arm/samv7/same70-qmtech/src/sam_bringup.c @@ -63,6 +63,11 @@ # include "board_progmem.h" #endif +#ifdef CONFIG_TIMER +# include "sam_tc.h" +# include "sam_tc_lowerhalf.h" +#endif + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -227,6 +232,14 @@ int sam_bringup(void) } #endif +#if defined(CONFIG_TIMER) && defined(CONFIG_SAMV7_TC0) + ret = sam_timer_initialize("/dev/timer0", TC_CHAN2); + if (ret < 0) + { + syslog(LOG_ERR, "ERROR: sam_timer_initialize failed: %d\n", ret); + } +#endif + /* If we got here then perhaps not all initialization was successful, but * at least enough succeeded to bring-up NSH with perhaps reduced * capabilities.