Skip to content

Commit

Permalink
Merge #19685
Browse files Browse the repository at this point in the history
19685: pkg/openthread: remove deprecated functions r=benpicco a=maribu



Co-authored-by: Marian Buschsieweke <[email protected]>
  • Loading branch information
bors[bot] and maribu authored Jul 11, 2023
2 parents 1b8ad7c + 70e72fc commit 9a46bcd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 366 deletions.
317 changes: 0 additions & 317 deletions pkg/openthread/contrib/platform_functions_wrapper.c

This file was deleted.

49 changes: 0 additions & 49 deletions pkg/openthread/include/ot.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,6 @@ typedef struct {
uint8_t buf[OPENTHREAD_SERIAL_BUFFER__PAYLOAD_SIZE]; /**< buffer containing the message */
} serial_msg_t;

/**
* @brief Struct containing an OpenThread job
*
* @deprecated This structure is not needed anymore since it's possible to
* run OpenThread code via @ref sys_event (see @ref openthread_get_evq).
* Therefore it will be removed after the 2022.01 release.
*/
typedef struct {
event_t ev; /**< Event associated to the OpenThread job */
int status; /**< Status of the job */
const char *command; /**< A pointer to the job name string. */
void *arg; /**< arg for the job **/
void *answer; /**< answer from the job **/
} ot_job_t;

/**
* @brief Gets packet from driver and tells OpenThread about the reception.
*
Expand Down Expand Up @@ -179,40 +164,6 @@ int openthread_netdev_init(char *stack, int stacksize, char priority, const char
*/
void ot_random_init(void);

/**
* @brief Execute OpenThread command. Call this function only in OpenThread thread
*
* @deprecated This function is not needed anymore since it's possible to
* run OpenThread code via @ref sys_event (see @ref openthread_get_evq).
* Therefore it will be removed after the 2022.01 release.
*
* @param[in] ot_instance OpenThread instance
* @param[in] command OpenThread command name
* @param[in] arg arg for the command
* @param[out] answer answer for the command
*
* @return 0 on success, 1 on error
*/
uint8_t ot_exec_command(otInstance *ot_instance, const char* command, void *arg, void* answer);

/**
* @brief Call OpenThread command in same thread as OT core (due to concurrency).
*
* @note An OpenThread command allows direct calls to OpenThread API (otXXX functions) without worrying about concurrency
* issues. All API calls should be made in OT_JOB type functions.
*
* @deprecated This function is not needed anymore since it's possible to
* run OpenThread code via @ref sys_event (see @ref openthread_get_evq).
* Therefore it will be removed after the 2022.01 release.
*
* @param[in] command name of the command to call
* @param[in] arg arg for the command
* @param[out] answer answer for the command
*
* @return 0 on success, 1 on error
*/
uint8_t ot_call_command(char* command, void *arg, void* answer);

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit 9a46bcd

Please sign in to comment.