6.1.2.3 DIAG_SRAM_MARCH_ALT_CLK_FRQ
#define DIAG_SRAM_MARCH_ALT_CLK_FRQ
Decides the main clock frequency used when calling DIAG_SRAM_MarchStartup() if DIAG_SRAM_MARCH_ALT_CLK_FRQ_ENABLED is not zero. The main clock frequency will be set back to default upon completing the start-up test. If DIAG_SRAM_MARCH_ALT_CLK_FRQ_ENABLED is set to zero, this macro has no effect and the default main clock frequency will be used during the start-up test. Using a higher main clock frequency than the default value will reduce the Worst-Case Execution Time (WCET) of DIAG_SRAM_MarchStartup().
Depending on the device, set the frequency by defining the macro value as any CLKCTRL_FRQSEL_t group configuration (e.g., CLKCTRL_FRQSEL_24M_gc) or CLKCTRL_PDIV_t group configuration (e.g., CLKCTRL_PDIV_2X_gc). The former option, if available for the device in use (such as the AVR DA family of devices), can set the frequency directly regardless of the supply voltage to the device. The latter option divides the main clock source frequency (which can depend on FUSE settings), if the PEN bit is also set, with the specified value. Thus, when configuring with the latter option, ensure that CLKCTRL_PEN_bm is bitwise ORed with the CLKCTRL_PDIV_t group configuration, e.g: #define DIAG_SRAM_MARCH_CLK_FRQ (CLKCTRL_PDIV_2X_gc | CLKCTRL_PEN_bm)
If the PEN bit is not set, the test runs with no main clock prescaler and thus at full main clock source speed.The system integrator shall ensure that this frequency does not exceed the maximum specified frequency with the used device supply voltage and specified temperature range as outlined in AoU-SRAM_MARCH_TEST-11 in Assumption of Use.