import RT-Thread@9217865c without bsp, libcpu and components/net
This commit is contained in:
commit
e2376a3709
1414 changed files with 390370 additions and 0 deletions
18
components/legacy/ipc/workqueue_legacy.c
Normal file
18
components/legacy/ipc/workqueue_legacy.c
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* Copyright (c) 2006-2021, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2021-11-14 Meco Man the first version
|
||||
*/
|
||||
|
||||
#include "workqueue_legacy.h"
|
||||
|
||||
void rt_delayed_work_init(struct rt_delayed_work *work,
|
||||
void (*work_func)(struct rt_work *work,
|
||||
void *work_data), void *work_data)
|
||||
{
|
||||
rt_work_init(&work->work, work_func, work_data);
|
||||
}
|
25
components/legacy/ipc/workqueue_legacy.h
Normal file
25
components/legacy/ipc/workqueue_legacy.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* Copyright (c) 2006-2021, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2021-11-14 Meco Man the first version
|
||||
*/
|
||||
|
||||
#ifndef __WORKQUEUE_LEGACY_H__
|
||||
#define __WORKQUEUE_LEGACY_H__
|
||||
|
||||
#include <ipc/workqueue.h>
|
||||
|
||||
struct rt_delayed_work
|
||||
{
|
||||
struct rt_work work;
|
||||
};
|
||||
|
||||
void rt_delayed_work_init(struct rt_delayed_work *work,
|
||||
void (*work_func)(struct rt_work *work,
|
||||
void *work_data), void *work_data);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue