!if 0
Copyright (c) Microsoft Corporation.  All rights reserved.
!endif
!if 0
Use of this source code is subject to the terms of the Microsoft end-user
license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
If you did not accept the terms of the EULA, you are not authorized to use
this source code. For a copy of the EULA, please see the LICENSE.RTF on your
install media.
!endif

!IF "$(BSP_TICKTIMER)"!="SYSTIMER_FIXED"
SKIPBUILD = 1
!ENDIF

TARGETNAME = oal_timer_S5PV210_sec_v1
TARGETTYPE = LIBRARY

SYNCHRONIZE_DRAIN = 1
NOMIPS16CODE = 1

CDEFINES = $(CDEFINES) -DCEDDK_USEDDKMACRO


!IF "$(ENABLE_WATCH_DOG)"=="1"
CDEFINES = $(CDEFINES) -DENABLE_WATCH_DOG
!ENDIF

!IF "$(ENABLE_OAL_ILTIMING)"=="1"
CDEFINES = $(CDEFINES)  -DOAL_ILTIMING
!ENDIF

!IF "$(BSP_USEDVFS)" == "1"
CDEFINES = $(CDEFINES) -DBSP_USEDVFS
!ENDIF

!if "$(BSP_TICK_COMPENSATION)" == "1"
CDEFINES=$(CDEFINES) -DRTC_TICK_ERROR_COMPENSATION
!endif
INCLUDES = $(INCLUDES);..\..\..\INC

SOURCELIBS= \
    $(_PLATCOMMONLIB)\$(_CPUDEPPATH)\oal_timer.lib

SOURCES = \
    FixedSysTimer.c \
    watchdog.c

ARM_SOURCES = \
    OALCPUIdle.s

