AnsweredAssumed Answered

What does sim() function do

Question asked by Mike Bounds on Feb 16, 2018
Latest reply on Feb 16, 2018 by Mike Bounds

I am trying to understand what "sim()" does in the example code that comes on the STM8L-DISCOVERY eval board (Introduction to STM8L15x power saving modes using the STM8L-DISCOVERY IDD measurement feature) where the source can be downloaded from http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm8-embedded-software/stsw-stm8009.html

 

In the Project/Discover/src/icc_measure.c file in function ADC_Icc_Test it runs "sim()" and I cannot find a definition anywhere what this function does - example:

 

/* Low power mode */
case MCU_LPR:
Halt_Init();
sim();
/* To prepare to start counter */
GPIO_HIGH(CTN_GPIO_PORT,CTN_CNTEN_GPIO_PIN);

/* To configure Low Power */
LPR_init();
break;

 

I guess this must be some built-in C function as I can't find it in any of the source or Library files, but I can't find definition on Google

 

Thanks

 

Mike

Outcomes