luckfox-pico-sdk/project/app/wifi_app/wifi/utility/utility.h
2023-10-27 17:12:27 +08:00

23 lines
548 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef RKBT_UTILITY_H
#define RKBT_UTILITY_H
#ifdef __cplusplus
extern "C" {
#endif
//int test_pthread(pthread_t tid);
void exec_command(char cmdline[], char recv_buff[], int len);
int exec_command_system(const char *cmd);
int run_task(char *name, char *cmd);
int kill_task(char *name);
int get_ps_pid(const char Name[]);
int test_pthread(pthread_t tid); /*pthread_kill的返回值成功0 线程不存在ESRCH 信号不合法EINVAL*/
#define msleep(x) usleep(x * 1000)
#ifdef __cplusplus
}
#endif
#endif //RKBT_UTILITY_H