Function rttest_spin_period

Function Documentation

int rttest_spin_period(void *(*user_function)(void*), void *args, const struct timespec *update_period, const size_t iterations)

Spin at the specified wakeup period for the specified number of iterations. rttest_spin will attempt to time the execution of user_function according to update_period. Call this after everything has been initialized.

Parameters:
  • user_function[in] Function pointer to execute on wakeup.

  • args[in] Arguments to the function

  • update_period[in] Update period (overrides param read in rttest_init)

  • iterations[in] Iterations (overrides param read in rttest_init)

Returns:

Error code to propagate to main