RAFW Flexible Software Package Documentation  Release v2.0.1

 
System configuration settings

Detailed Description

Generic System Configuration Settings.

Macros

#define dg_configIMAGE_COPY_TIME
 Image copy time. More...
 
#define dg_configUSE_BOD
 Brown-out Detection. More...
 
#define dg_configWDOG_RESET_VALUE
 Reset value for Watchdog. More...
 
#define dg_configWDOG_NOTIFY_TRIGGER_TMO
 Watchdog notify interval. More...
 
#define dg_configABORT_IF_SYSTICK_CLK_ERR
 Abort a clock modification if it will cause an error to the SysTick counter. More...
 
#define dg_configPM_MAX_ADAPTERS_CNT
 Maximum adapters count. More...
 
#define dg_configPM_MAX_ADAPTER_DEFER_TIME
 Maximum sleep defer time. More...
 
#define dg_configUSE_ADC_GAIN_ERROR_CORRECTION
 Apply ADC Gain Error correction. More...
 
#define dg_configTESTMODE_MEASURE_SLEEP_CURRENT
 Image copy time. More...
 
#define dg_configWDOG_IDLE_RESET_VALUE
 Reset value for Watchdog when system is idle.
 
#define dg_configWDOG_MAX_TASKS_CNT
 Maximum watchdog tasks. More...
 
#define dg_configWDOG_EXT
 Extend maximum watchdog tasks. More...
 

Macro Definition Documentation

◆ dg_configIMAGE_COPY_TIME

#define dg_configIMAGE_COPY_TIME

Image copy time.

The number of LP cycles needed for the application's image data to be copied from the OTP (or QSPI) to the RAM in mirrored mode.

Warning
MUST BE SMALLER THAN dg_configMIN_SLEEP_TIME !!!

◆ dg_configUSE_BOD

#define dg_configUSE_BOD

Brown-out Detection.

  • 1: used
  • 0: not used

◆ dg_configWDOG_RESET_VALUE

#define dg_configWDOG_RESET_VALUE

Reset value for Watchdog.

See WATCHDOG_REG:WDOG_VAL field.

◆ dg_configWDOG_NOTIFY_TRIGGER_TMO

#define dg_configWDOG_NOTIFY_TRIGGER_TMO

Watchdog notify interval.

Interval (in milliseconds) for common timer which can be used to trigger tasks in order to notify watchdog. Can be set to 0 in order to disable timer code entirely.

◆ dg_configABORT_IF_SYSTICK_CLK_ERR

#define dg_configABORT_IF_SYSTICK_CLK_ERR

Abort a clock modification if it will cause an error to the SysTick counter.

  • 1: on
  • 0: off

◆ dg_configPM_MAX_ADAPTERS_CNT

#define dg_configPM_MAX_ADAPTERS_CNT

Maximum adapters count.

Should be equal to the number of Adapters used by the Application. It can be larger (up to 254) than needed, at the expense of increased Retention Memory requirements. It cannot be 0.

◆ dg_configPM_MAX_ADAPTER_DEFER_TIME

#define dg_configPM_MAX_ADAPTER_DEFER_TIME

Maximum sleep defer time.

The maximum time sleep can be deferred via a call to pm_defer_sleep_for(). It is in clock cycles in the case of the XTAL32K and in usec in the case of RCX.

Note
It should be > 3.5msec.

◆ dg_configUSE_ADC_GAIN_ERROR_CORRECTION

#define dg_configUSE_ADC_GAIN_ERROR_CORRECTION

Apply ADC Gain Error correction.

  • 1: used
  • 0: not used

The default setting is: 1.

◆ dg_configTESTMODE_MEASURE_SLEEP_CURRENT

#define dg_configTESTMODE_MEASURE_SLEEP_CURRENT

Image copy time.

The number of LP cycles needed for the application's image data to be copied from the OTP (or QSPI) to the RAM in mirrored mode.

Warning
MUST BE SMALLER THAN dg_configMIN_SLEEP_TIME !!! When set to 1, the system will go to sleep and never exit allowing for the sleep current to be measured.

◆ dg_configWDOG_MAX_TASKS_CNT

#define dg_configWDOG_MAX_TASKS_CNT

Maximum watchdog tasks.

Maximum number of tasks that the Watchdog Service can monitor. It can be larger (up to 32) than needed, at the expense of increased Retention Memory requirement.

◆ dg_configWDOG_EXT

#define dg_configWDOG_EXT

Extend maximum watchdog tasks.

When set to 1, maximum number of tasks can be larger (up to 64).