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 +