# //////////////////////////////////////////////////////////////////////////////
# // Copyright (C) 2008 Cinterion Wireless Modules GmbH
# // Copyright (C) 2003-2008 Siemens AG
# // Copyright (C) 2003 Intrinsyc Europe Ltd.
# //
# // Version: 1.0
# // Date:    dummy
# //
# //////////////////////////////////////////////////////////////////////////////

# RIL_ENABLE_SIMTK: enables the usage of the SIM Toolkit functionality.
# In case this feature is disabled in the RIL, it is necessary, that the
# SIM Toolkit is disabled in the radio as well (AT^SSTA=0).
CDEFINES=$(CDEFINES) -DRIL_ENABLE_SIMTK

# RIL_ENABLE_POWER_HANDLING: enables the RIL internal power management.
# If this compiler and registry flags are used the RIL internal power management
# is used. With this power management the RIL driver reacts on power messages
# from the system and updtaes internal states and module states accordingly.
# E.g. irrelevant URCs are disabled and the module is sent to an appropriate sleep
# mode automatically if the system switches to suspend state and vice versa if the
# system wakes up again.
CDEFINES=$(CDEFINES) -DRIL_ENABLE_POWER_HANDLING

# RIL_ENABLE_UNATTENDED_HANDLING: enables the RIL internal handling of the
# unattended mode. If this compiler flag is used the RIL driver signals the
# preferred usage of the unattended mode instead of the suspend mode to the
# system during power state changes. Additional the SystemIdleTimerReset()
# is called cyclicly during the wait for the new power state to avoid
# that the unattended mode is left before the power state change is
# finished. To use this feature RIL_ENABLE_POWER_HANDLING must be enabled.
CDEFINES=$(CDEFINES) -DRIL_ENABLE_UNATTENDED_HANDLING

# RIL_SUSPEND_D2_TO_D3: determines which power state changed is considered
# as a device suspend. If this option is set the power state change D2 -> D3 is
# handled as a suspend transition by the RIL, otherwise the D1 -> D2 change
# will be used.
# This option can only be used, in the power management (RIL_ENABLE_POWER_HANDLING)
# is enabled.
CDEFINES=$(CDEFINES) -DRIL_SUSPEND_D2_TO_D3

# RIL_HANDLE_D1_AS_D0: Only in the D0 power state operations like activating
# GPS or initializing the radio are possible. Depending on the power management
# of the device, these operations might also be possible in the D1 state. In
# this case the option RIL_HANDLE_D1_AS_D0 must be set.
# This option can only be used, in the power management (RIL_ENABLE_POWER_HANDLING)
# is enabled.
#CDEFINES=$(CDEFINES) -DRIL_HANDLE_D1_AS_D0

# RIL_ENABLE_SYNC_TIME: To keep the time in the module in sync with the system
# time, the RIL will register itself for time change notifications in the OS.
# This API may not be available on Windows Embedded systems, if the notification
# API is not enabled. In this situation this RIL mechanism can be disabled by
# removing this build option.
!IF "$(_WINCEOSVER)" < "800"
CDEFINES=$(CDEFINES) -DRIL_ENABLE_SYNC_TIME
!ENDIF

# RIL_RADIO_RESILIENCE: When changing between normal mode and AT&T mode, the PH8
# shuts down in order to perform an internal reconfiguration. If this option is
# set, the RIL will automatically restart the radio after the shutdwon. If the
# SIM needs a PIN, the RIL stores the PIN and enters it automatically to prevent
# the user to enter it twice.
CDEFINES=$(CDEFINES) -DRIL_RADIO_RESILIENCE

# RIL_STORE_SMS_ON_SIM_ON_SUSPEND: in normal operation the radio will forward
# incoming SMS directly to the RIL. The RIL can reconfigure the radio to tempo-
# rarely store incoming SMS on the SIM when the device is entering the suspend
# state. This is useful, if the device take some time to resume from the suspend
# state preventing the RIL from acknowleding the SMS in time.
#CDEFINES=$(CDEFINES) -DRIL_STORE_SMS_ON_SIM_ON_SUSPEND

!IF "$(_WINCEOSVER)" >= "600"
# Do not change the following settings, when running the RIL under
# Windows CE 6.0.
#CDEFINES=$(CDEFINES) -DRIL_USE_CSQPOLLING
CDEFINES=$(CDEFINES) -DRIL_USE_CSQ_NOTIFICATIONS
!ELSE
# RIL_USE_CSQPOLLING: determines, how to obtain the signal strength
# Define set: AT+CSQ is used to get current signal strength.
# Define not set: +CIEV URCs are used. To prevent these URCs to show
# up during the device is in suspend mode, use the RIL_POWER_MGM define
# or the RIL_DevSpecific() API call (description: see RIL_POWER_MGM).
# Accuracy: RIL_USE_CSQPOLLING set: 2dB, not set: 15dB
# So, if the accuracy of signal strength is important, the polling
# mechanism should be used.
#CDEFINES=$(CDEFINES) -DRIL_USE_CSQPOLLING

# Related define: RIL_USE_CSQ_NOTIFICATIONS
# This define can only be used, when RIL_USE_CSQPOLLING is not set.
# If it is set, the RIL supports the RIL_CAPS_SIGNALQUALITY_NOTIFICATION
# capability.
#CDEFINES=$(CDEFINES) -DRIL_USE_CSQ_NOTIFICATIONS
!ENDIF

# RIL_USE_GSM0707_CMDS: in order to pass GCF and PTCRB tests
# it is reconmeded to use ATD*# commands instead of AT+Cxxx
# commands if possible. If this doesn't apply, this define can be
# set. This will reduce the size of the RIL and slightly improve
# the performance of the affected functions.
#CDEFINES=$(CDEFINES) -DRIL_USE_GSM0707_CMDS

# RIL_INDICATE_SS_INFORMATION (Magneto only): enables the display of
# supplementary service indications (+CSSU and +CSSI URCs). This option
# is usefull, if additional indications are needed during GCF approval.
#CDEFINES=$(CDEFINES) -DRIL_INDICATE_SS_INFORMATION
#RDEFINES=$(RDEFINES) -DRIL_INDICATE_SS_INFORMATION

# RIL_ADVANCEDUSSDERRORCAUSES: enables the display of USSD
# error causes, which is usefull for GCF approval.
#CDEFINES=$(CDEFINES) -DRIL_ADVANCEDUSSDERRORCAUSES
#RDEFINES=$(RDEFINES) -DRIL_ADVANCEDUSSDERRORCAUSES

# RIL_ADVANCEDCALLRELEASEINDICATIONS: enables the display of call
# release causes, which may be useful during GCF approval.
#CDEFINES=$(CDEFINES) -DRIL_ADVANCEDCALLRELEASEINDICATIONS
#RDEFINES=$(RDEFINES) -DRIL_ADVANCEDCALLRELEASEINDICATIONS

# RIL_INDICATE_AOCMAX: enables the display the Advice of Charge
# maxumum  reached event. This can be used during GCF approval.
#CDEFINES=$(CDEFINES) -DRIL_INDICATE_AOCMAX
#RDEFINES=$(RDEFINES) -DRIL_INDICATE_AOCMAX

# RIL_INDICATE_COLP: enables the display the COLP (Connected
# Line Identification Presentation) messages. This can be used
# during GCF approval.
#CDEFINES=$(CDEFINES) -DRIL_INDICATE_COLP
#RDEFINES=$(RDEFINES) -DRIL_INDICATE_COLP

# RIL_INDICATE_ADDITIONAL_SAT_INFO: enables additional SAT
# notification (for GCF approval):
# - SAT Setup Call: extra indication, when call is put on hold/dropped.
CDEFINES=$(CDEFINES) -DRIL_INDICATE_ADDITIONAL_SAT_INFO
RDEFINES=$(RDEFINES) -DRIL_INDICATE_ADDITIONAL_SAT_INFO

# RIL_INDICATE_NO_IMEI: 3GPP requires, that a radio without IMEI
# must not be used, so the RIL doesn't power up the radio, if the
# IMEI is not present. If the following define is set, the RIL
# will show a message, indicating the reason of not starting the
# radio.
#CDEFINES=$(CDEFINES) -DRIL_INDICATE_NO_IMEI
#RDEFINES=$(RDEFINES) -DRIL_INDICATE_NO_IMEI

!IF "$(_WINCEOSVER)" >= "600"
# This option is not tested on Windows CE6.
#CDEFINES=$(CDEFINES) -DRIL_INDICATE_FIRMWAREUPDATE
#RDEFINES=$(RDEFINES) -DRIL_INDICATE_FIRMWAREUPDATE
!ELSE
# RIL_INDICATE_FIRMWAREUPDATE: the RIL can perform a firmware
# update on the PH8. The RIL can print indications under Windows Mobile
# when a firmware download is started or ended using USSD.
#CDEFINES=$(CDEFINES) -DRIL_INDICATE_FIRMWAREUPDATE
#RDEFINES=$(RDEFINES) -DRIL_INDICATE_FIRMWAREUPDATE
!ENDIF

# SKIP_RHA_CHECK_DURING_SHUTDOWN: during the development phase the RHA
# might not yet be able to correctly check the power state of the module
# (e.g. when the radio is connected via an develpment board). In this case
# the RIL must skip the check for radio power down during module shutdown.
#CDEFINES=$(CDEFINES) -DSKIP_RHA_CHECK_DURING_SHUTDOWN

!IF "$(_WINCEOSVER)" >= "600"
# Do not change the following settings, when running the RIL under
# Windows CE 6.0.
CDEFINES=$(CDEFINES) -DRIL_AGPS_DOWNLOAD_WITH_EXE
!ELSE
# RIL_AGPS_DOWNLOAD_WITH_EXE: The RIL can download an A-GPS-file
# with internal commands from the internet. An an alternative it
# can use an .exe file. Refer to "RIL - Build Options" documentation
# for further details.
#CDEFINES=$(CDEFINES) -DRIL_AGPS_DOWNLOAD_WITH_EXE
!ENDIF

# The driver prints additional debug messages. If the following compiler flag
# is enabled the driver prints additional useful debug messages also in retail
# build of driver to debug out.
#CDEFINES=$(CDEFINES) -DWANT_RETAIL_RIL_OUTPUT

# The driver provides the possiblity to send debug messages from the macro
# "RILRetailTrace()" enabled with the compiler flag "WANT_RETAIL_RIL_OUTPUT"
# to a serial port. This feature is enabled by setting the following compiler
# flag to the appropriate COM port device name.
#CDEFINES=$(CDEFINES) -DRIL_RETAIL_OUTPUT_PORT=TEXT(\"COM1:\")

# The driver provides the possiblity to send debug messages from the macro
# "RILRetailTrace()" enabled with the compiler flag "WANT_RETAIL_RIL_OUTPUT"
# to a file. This feature is enabled by setting the compiler flag to the
# appropriate file name.
CDEFINES=$(CDEFINES) -DRIL_RETAIL_OUTPUT_FILE=TEXT(\"\\RilDrv.log\")

# RIL_RETAIL_KEEP_FILE_ON_BOOT: If this option is set, the RIL keeps an
# existing log file specified with RIL_RETAIL_OUTPUT_FILE on warm and cold
# boot. If this option is not set, the RIL deletes this file on device boot.
#CDEFINES=$(CDEFINES) -DRIL_RETAIL_KEEP_FILE_ON_BOOT

# WANT_RILDRV_RTC_TIMESTAMPS: This settings applies only, if
# WANT_RETAIL_RILDRV_OUTPUT is set. It switches the source of
# the timestamp from GetTickCount() to GetLocalTime().
#CDEFINES=$(CDEFINES) -DWANT_RILDRV_RTC_TIMESTAMPS

# RIL_INCLUDE_TIMSTAMPS_TO_RETAIL: When the RIL is tested with the Platform
# Builder, timestamps are added automatically by the Platform Builder. This
# doesn't apply on traces which are printed on the debug port of a device.
# If this option is activated, the RIL will add timestamps to its trace
# output.
#CDEFINES=$(CDEFINES) -DRIL_INCLUDE_TIMESTAMPS_TO_RETAIL

# RIL_ADDITIONAL_DEBUG_OUTPUT: If this option is activated, the RIL
# includes verbose information about all data going to and comming from the
# RIL Proxy. This is useful, when a RIL Proxy log is unavailable.
# Caution: using this option increases the size of the RIL driver by up to
# 50 kB and may slow down operation of the RIL because of the huge amount
# of information written. For this reason it is recommended to use this option
# only if needed.
#CDEFINES=$(CDEFINES) -DRIL_ADDITIONAL_DEBUG_OUTPUT

# RIL_FILTER_PIN_IN_RETAIL_OUTPUT: Usally the RIL prints out all
# AT commands with all parameters to the trace output. If this option
# is set, the RIL will replace all kinds if PIN, PUK, DTMF and USSD
# numbers sent to the module with XXXX in the logs.
#CDEFINES=$(CDEFINES) -DRIL_FILTER_PIN_IN_RETAIL_OUTPUT

# RIL_ALLOW_TRACE_PPP_DATA: Introces a new debug zone (512),
# which allows to trace the first PPP data of a packet data connection.
# This makes it possible to analyze problems during establishment of
# a data connection.
# Using this option may slow down the data transmission rate.
#CDEFINES=$(CDEFINES) -DRIL_ALLOW_TRACE_PPP_DATA

# WANT_RILDRV_ADDITIONAL_DEBUG_MESSAGES: When this option is activated, the
# RIL will print additional debug messages (if debug logs are enabled). The
# additional log entries include all RIL-IOCTLs and all RIL notifications.
# OBSOLETE: it is recommended to use the "DebugZones" registry key instead.
#CDEFINES=$(CDEFINES) -DWANT_RILDRV_ADDITIONAL_DEBUG_MESSAGES

# WANT_RILDRV_NMEA_DEBUG_MESSAGES: This option enables the output of the
# received NMEA data of the HC25 Release 2 (if debug logs are enabled).
# OBSOLETE: it is recommended to use the "DebugZones" registry key instead.
#CDEFINES=$(CDEFINES) -DWANT_RILDRV_NMEA_DEBUG_MESSAGES

# SUPPORTS_EHSX_R1: The EHS5/8 Release 1 support requires approx. 45kBytes
# of code. If the following line is disabled, the RIL won't support this radio
# releases, but has a smaller code size.
CDEFINES=$(CDEFINES) -DSUPPORTS_EHSX_R1

# RIL_CATCH_NDIS_START_MSG: When this option is set, the RIL will handle
# the NDIS start indication sent by the PH8 when used in SDPORT mode 3.
# This start notification is sent by the module directly after system start
# and repeated in increasing intervals for 2 minutes if it is not handled
# properly. These repetitions may cause unexepected suspend resume cycles
# on the USB bus can can lead to problems on some systems.
# This option should only be activated when an PH8 is used in SDPORT
# mode 3 and if there are actual problems with the USB powermangement.
#CDEFINES=$(CDEFINES) -DRIL_CATCH_NDIS_START_MSG

!include .\sources.inc
