Skip to content

Commit 70e72fc

Browse files
committed
pkg/openthread: remove deprecated functions
1 parent e690ef4 commit 70e72fc

File tree

2 files changed

+0
-366
lines changed

2 files changed

+0
-366
lines changed

pkg/openthread/contrib/platform_functions_wrapper.c

Lines changed: 0 additions & 317 deletions
This file was deleted.

pkg/openthread/include/ot.h

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -100,21 +100,6 @@ typedef struct {
100100
uint8_t buf[OPENTHREAD_SERIAL_BUFFER__PAYLOAD_SIZE]; /**< buffer containing the message */
101101
} serial_msg_t;
102102

103-
/**
104-
* @brief Struct containing an OpenThread job
105-
*
106-
* @deprecated This structure is not needed anymore since it's possible to
107-
* run OpenThread code via @ref sys_event (see @ref openthread_get_evq).
108-
* Therefore it will be removed after the 2022.01 release.
109-
*/
110-
typedef struct {
111-
event_t ev; /**< Event associated to the OpenThread job */
112-
int status; /**< Status of the job */
113-
const char *command; /**< A pointer to the job name string. */
114-
void *arg; /**< arg for the job **/
115-
void *answer; /**< answer from the job **/
116-
} ot_job_t;
117-
118103
/**
119104
* @brief Gets packet from driver and tells OpenThread about the reception.
120105
*
@@ -179,40 +164,6 @@ int openthread_netdev_init(char *stack, int stacksize, char priority, const char
179164
*/
180165
void ot_random_init(void);
181166

182-
/**
183-
* @brief Execute OpenThread command. Call this function only in OpenThread thread
184-
*
185-
* @deprecated This function is not needed anymore since it's possible to
186-
* run OpenThread code via @ref sys_event (see @ref openthread_get_evq).
187-
* Therefore it will be removed after the 2022.01 release.
188-
*
189-
* @param[in] ot_instance OpenThread instance
190-
* @param[in] command OpenThread command name
191-
* @param[in] arg arg for the command
192-
* @param[out] answer answer for the command
193-
*
194-
* @return 0 on success, 1 on error
195-
*/
196-
uint8_t ot_exec_command(otInstance *ot_instance, const char* command, void *arg, void* answer);
197-
198-
/**
199-
* @brief Call OpenThread command in same thread as OT core (due to concurrency).
200-
*
201-
* @note An OpenThread command allows direct calls to OpenThread API (otXXX functions) without worrying about concurrency
202-
* issues. All API calls should be made in OT_JOB type functions.
203-
*
204-
* @deprecated This function is not needed anymore since it's possible to
205-
* run OpenThread code via @ref sys_event (see @ref openthread_get_evq).
206-
* Therefore it will be removed after the 2022.01 release.
207-
*
208-
* @param[in] command name of the command to call
209-
* @param[in] arg arg for the command
210-
* @param[out] answer answer for the command
211-
*
212-
* @return 0 on success, 1 on error
213-
*/
214-
uint8_t ot_call_command(char* command, void *arg, void* answer);
215-
216167
#ifdef __cplusplus
217168
}
218169
#endif

0 commit comments

Comments
 (0)