From c3e0cba12133f4358aadd99e5e49498097897f44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Tue, 2 May 2017 12:32:09 +0200 Subject: [PATCH] fixup! fixup! kinetis: Use bitband.h macros --- cpu/k60/include/cpu_conf.h | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/cpu/k60/include/cpu_conf.h b/cpu/k60/include/cpu_conf.h index 790dee9a54fe..081e232413bc 100644 --- a/cpu/k60/include/cpu_conf.h +++ b/cpu/k60/include/cpu_conf.h @@ -69,39 +69,10 @@ extern "C" /** @} */ /** - * @name Clock settings for the LPTMR0 timer - * @{ - */ -#define LPTMR_CLKEN() (bit_set32(&SIM->SCGC5, SIM_SCGC5_LPTMR_SHIFT)) /**< Enable LPTMR0 clock gate */ -#define LPTMR_CLKSRC_MCGIRCLK 0 /**< internal reference clock (4MHz) */ -#define LPTMR_CLKSRC_LPO 1 /**< PMC 1kHz output */ -#define LPTMR_CLKSRC_ERCLK32K 2 /**< RTC clock 32768Hz */ -#define LPTMR_CLKSRC_OSCERCLK 3 /**< system oscillator output */ - -#ifndef LPTMR_CLKSRC -#define LPTMR_CLKSRC LPTIMER_CLKSRC_ERCLK32K /**< default clock source */ -#endif - -#if (LPTMR_CLKSRC == LPTMR_CLKSRC_MCGIRCLK) -#define LPTMR_CLK_PRESCALE 1 -#define LPTMR_SPEED 1000000 -#elif (LPTMR_CLKSRC == LPTMR_CLKSRC_OSCERCLK) -#define LPTMR_CLK_PRESCALE 1 -#define LPTMR_SPEED 1000000 -#elif (LPTMR_CLKSRC == LPTMR_CLKSRC_ERCLK32K) -#define LPTMR_CLK_PRESCALE 0 -#define LPTMR_SPEED 32768 -#else -#define LPTMR_CLK_PRESCALE 0 -#define LPTMR_SPEED 1000 -#endif - -/** @} */ - -/** - * @name PIT module configuration + * @name Timer hardware information */ /** @{ */ +#define LPTMR_CLKEN() (bit_set32(&SIM->SCGC5, SIM_SCGC5_LPTMR_SHIFT)) /**< Enable LPTMR0 clock gate */ #define PIT_CLKEN() (bit_set32(&SIM->SCGC6, SIM_SCGC6_PIT_SHIFT)) /**< Enable PIT clock gate */ /** @} */