From a83068cdf333c10c41cfb1b7a32614c3e61ad0ee Mon Sep 17 00:00:00 2001 From: Martin Kojtal <0xc0170@gmail.com> Date: Sun, 31 Dec 2017 09:47:25 +0100 Subject: [PATCH] renesas: os tick only for rtos As this is os tick implementation for rtos, it should not be compilied if rtos not present (mbed 2) --- targets/TARGET_RENESAS/TARGET_RZ_A1H/device/os_tick_ostm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/targets/TARGET_RENESAS/TARGET_RZ_A1H/device/os_tick_ostm.c b/targets/TARGET_RENESAS/TARGET_RZ_A1H/device/os_tick_ostm.c index 7926421c0d..bebd3e114f 100644 --- a/targets/TARGET_RENESAS/TARGET_RZ_A1H/device/os_tick_ostm.c +++ b/targets/TARGET_RENESAS/TARGET_RZ_A1H/device/os_tick_ostm.c @@ -22,6 +22,8 @@ * limitations under the License. */ +#ifdef MBED_CONF_RTOS_PRESENT + #include "os_tick.h" #include "irq_ctrl.h" @@ -185,3 +187,6 @@ uint32_t OS_Tick_GetCount (void) { uint32_t OS_Tick_GetOverflow (void) { return (IRQ_GetPending(OSTM_IRQn)); } + +#endif +