[SQUASH] Remove unrelevant changes
This commit is contained in:
parent
a259cc42b0
commit
945f01f7e0
@ -35,9 +35,8 @@ extern "C" {
|
||||
/**
|
||||
* @name xtimer configuration
|
||||
*/
|
||||
#define XTIMER_MASK (0xffff0000)
|
||||
#define XTIMER_BACKOFF 5
|
||||
#define XTIMER_SHIFT_ON_COMPARE (1)
|
||||
#define XTIMER_MASK (0xffff0000)
|
||||
#define XTIMER_BACKOFF 5
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@ -56,7 +56,7 @@ int timer_init(tim_t tim, unsigned long freq, timer_cb_t cb, void *arg)
|
||||
dev(tim)->CR2 = 0;
|
||||
dev(tim)->ARR = TIMER_MAXVAL;
|
||||
/* set prescaler */
|
||||
dev(tim)->PSC = (((CLOCK_CORECLOCK) / freq) - 1);
|
||||
dev(tim)->PSC = ((CLOCK_CORECLOCK / freq) - 1);
|
||||
/* generate an update event to apply our configuration */
|
||||
dev(tim)->EGR = TIM_EGR_UG;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user