Delay given for event scheduling #99
-
Hello, I have been working with an Optiga Trust M for 2 months now. I think I start to have quite a good understanding of how Infineon's software works, but since I started I had a question about the delay system used for the callback of events.
According to this, the time given in parameters are in microseconds. However, when reading the different delays given in
STARTUP_TIME_MSEC is in milliseconds and PL_POLLING_INVERVAL_US is in microseconds, but they are both used in the same
Hence, I don't really now how to understand it. Does the STARTUP_TIME_MSEC really takes 12 seconds, is it just a mistake in the name of the variable, or am I understanding something wrong ? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @MaxMart99, All the time values that are passed to pal_os_event_register_callback_oneshot() function are in microseconds, as the function definition mentions. The startup time value is also in microseconds and STARTUP_TIME_MSEC is a typo. It shall be renamed to STARTUP_TIME_USEC. |
Beta Was this translation helpful? Give feedback.
Hi @MaxMart99,
All the time values that are passed to pal_os_event_register_callback_oneshot() function are in microseconds, as the function definition mentions.
The startup time value is also in microseconds and STARTUP_TIME_MSEC is a typo. It shall be renamed to STARTUP_TIME_USEC.