From 071eb2478f039e21effb981a8a98e6181238b53b Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Wed, 11 Dec 2019 19:36:00 +0000 Subject: Remove mbed files (#7605) * Remove mbed files * Remove mbed files - fix comment * Remove mbed logic blocks --- tmk_core/common/mbed/timer.c | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 tmk_core/common/mbed/timer.c (limited to 'tmk_core/common/mbed/timer.c') diff --git a/tmk_core/common/mbed/timer.c b/tmk_core/common/mbed/timer.c deleted file mode 100644 index 7e4070af29..0000000000 --- a/tmk_core/common/mbed/timer.c +++ /dev/null @@ -1,23 +0,0 @@ -#include "cmsis.h" -#include "timer.h" - -/* Mill second tick count */ -volatile uint32_t timer_count = 0; - -/* Timer interrupt handler */ -void SysTick_Handler(void) { timer_count++; } - -void timer_init(void) { - timer_count = 0; - SysTick_Config(SystemCoreClock / 1000); /* 1ms tick */ -} - -void timer_clear(void) { timer_count = 0; } - -uint16_t timer_read(void) { return (uint16_t)(timer_count & 0xFFFF); } - -uint32_t timer_read32(void) { return timer_count; } - -uint16_t timer_elapsed(uint16_t last) { return TIMER_DIFF_16(timer_read(), last); } - -uint32_t timer_elapsed32(uint32_t last) { return TIMER_DIFF_32(timer_read32(), last); } -- cgit v1.2.1