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)
pull/5770/head
Martin Kojtal 2017-12-31 09:47:25 +01:00
parent eda0acc5da
commit 3247a96588
1 changed files with 5 additions and 0 deletions

View File

@ -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