From 78a6d54c891e168ff2e3f82f9d43976302c6a349 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Thu, 20 Aug 2015 16:26:55 +0200 Subject: [PATCH] Remove old systick.c --- src/omv/systick.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 src/omv/systick.c diff --git a/src/omv/systick.c b/src/omv/systick.c deleted file mode 100644 index 063095b5e..000000000 --- a/src/omv/systick.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader - * This work is licensed under the MIT license, see the file LICENSE for details. - * - * Systick driver. - * - */ -#include -#include -#include -#include "systick.h" -int systick_init() -{ - return 0; -} - -void systick_sleep(volatile uint32_t ms) -{ - volatile uint32_t curr_ticks = HAL_GetTick(); - while ((HAL_GetTick() - curr_ticks) < ms) { - __WFI(); - } -} - -uint32_t systick_current_millis() -{ - return HAL_GetTick(); -} - -bool sys_tick_has_passed(uint32_t stc, uint32_t delay_ms) -{ - systick_sleep(delay_ms); - return true; -}