Skip to content
Snippets Groups Projects
Commit b0ebdbfc authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

Merge pull request #2913 from kaspar030/hwtimer_compat

sys: add hwtimer compatibility layer for periph timers
parents 7882f1a7 df3ed493
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ export UNDEF += $(BINDIR)cpu/syscalls.o ...@@ -22,7 +22,7 @@ export UNDEF += $(BINDIR)cpu/syscalls.o
export UNDEF += $(BINDIR)cpu/startup.o export UNDEF += $(BINDIR)cpu/startup.o
# export the peripheral drivers to be linked into the final binary # export the peripheral drivers to be linked into the final binary
export USEMODULE += periph export USEMODULE += periph hwtimer_compat
# CPU depends on the cortex-m common module, so include it # CPU depends on the cortex-m common module, so include it
include $(CORTEX_COMMON)Makefile.include include $(CORTEX_COMMON)Makefile.include
...@@ -137,6 +137,9 @@ endif ...@@ -137,6 +137,9 @@ endif
ifneq (,$(filter ng_udp,$(USEMODULE))) ifneq (,$(filter ng_udp,$(USEMODULE)))
DIRS += net/transport_layer/ng_udp DIRS += net/transport_layer/ng_udp
endif endif
ifneq (,$(filter hwtimer_compat,$(USEMODULE)))
DIRS += compat/hwtimer
endif
DIRS += $(dir $(wildcard $(addsuffix /Makefile, ${USEMODULE}))) DIRS += $(dir $(wildcard $(addsuffix /Makefile, ${USEMODULE})))
......
include $(RIOTBASE)/Makefile.base
MODULE = hwtimer_compat
include $(RIOTBASE)/Makefile.base
/* /*
* Copyright (C) 2014 Freie Universität Berlin * Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de>
* 2014 Freie Universität Berlin
*
* *
* This file is subject to the terms and conditions of the GNU Lesser * This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level * General Public License v2.1. See the file LICENSE in the top level
...@@ -7,15 +9,16 @@ ...@@ -7,15 +9,16 @@
*/ */
/** /**
* @ingroup cpu_samd21 * @ingroup sys_compat
* @{ * @{
* *
* @file hwtimer_arch.c * @file hwtimer_arch.c
* @brief Implementation of the kernels hwtimer interface * @brief Implementation of the kernels hwtimer interface over periph timers
* *
* The hardware timer implementation uses the Cortex build-in system timer as back-end. * This hwtimer implementation wraps one periph timer
* *
* @author Thomas Eichinger <thomas.eichinger@fu-berlin.de> * @author Thomas Eichinger <thomas.eichinger@fu-berlin.de>
* @author Kaspar Schleiser <kaspar@schleiser.de>
* *
* @} * @}
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment