Function esp_idf_sys::esp_ipc_call_blocking
source ยท pub unsafe extern "C" fn esp_ipc_call_blocking(
cpu_id: u32,
func: esp_ipc_func_t,
arg: *mut c_void,
) -> esp_err_t
Expand description
@brief Execute a callback on a given CPU until and block until it completes
This function is identical to esp_ipc_call() except that this function will block until the execution of the callback completes.
@note In single-core mode, returns ESP_ERR_INVALID_ARG for cpu_id 1.
@param[in] cpu_id CPU where the given function should be executed (0 or 1) @param[in] func Pointer to a function of type void func(void* arg) to be executed @param[in] arg Arbitrary argument of type void* to be passed into the function
@return - ESP_ERR_INVALID_ARG if cpu_id is invalid - ESP_ERR_INVALID_STATE if the FreeRTOS scheduler is not running - ESP_OK otherwise