Skip to content

Commit 3247a96

Browse files
committed
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)
1 parent eda0acc commit 3247a96

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

targets/TARGET_RENESAS/TARGET_RZ_A1H/device/os_tick_ostm.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
* limitations under the License.
2323
*/
2424

25+
#ifdef MBED_CONF_RTOS_PRESENT
26+
2527
#include "os_tick.h"
2628
#include "irq_ctrl.h"
2729

@@ -185,3 +187,6 @@ uint32_t OS_Tick_GetCount (void) {
185187
uint32_t OS_Tick_GetOverflow (void) {
186188
return (IRQ_GetPending(OSTM_IRQn));
187189
}
190+
191+
#endif
192+

0 commit comments

Comments
 (0)