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
2
components/legacy/README.md
Normal file
2
components/legacy/README.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# RT-Thread Legacy
|
||||
|
22
components/legacy/SConscript
Normal file
22
components/legacy/SConscript
Normal file
|
@ -0,0 +1,22 @@
|
|||
from building import *
|
||||
import os
|
||||
|
||||
src = Split('''
|
||||
ipc/workqueue_legacy.c
|
||||
''')
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
CPPPATH = [cwd]
|
||||
|
||||
if GetDepend('RT_USING_DFS'):
|
||||
dfs_cwd = os.path.join(cwd,'dfs')
|
||||
CPPPATH += [dfs_cwd]
|
||||
|
||||
group = DefineGroup('Legacy', src, depend = ['RT_USING_LEGACY'], CPPPATH = CPPPATH)
|
||||
|
||||
list = os.listdir(cwd)
|
||||
for item in list:
|
||||
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
|
||||
group = group + SConscript(os.path.join(item, 'SConscript'))
|
||||
|
||||
Return('group')
|
16
components/legacy/dfs/dfs_poll.h
Normal file
16
components/legacy/dfs/dfs_poll.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* 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 DFS_POLL_H__
|
||||
#define DFS_POLL_H__
|
||||
|
||||
#include <poll.h>
|
||||
|
||||
#endif /* DFS_POLL_H__ */
|
24
components/legacy/dfs/dfs_posix.h
Normal file
24
components/legacy/dfs/dfs_posix.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* Copyright (c) 2006-2021, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2009-05-27 Yi.qiu The first version.
|
||||
* 2010-07-18 Bernard add stat and statfs structure definitions.
|
||||
* 2011-05-16 Yi.qiu Change parameter name of rename, "new" is C++ key word.
|
||||
* 2017-12-27 Bernard Add fcntl API.
|
||||
* 2018-02-07 Bernard Change the 3rd parameter of open/fcntl/ioctl to '...'
|
||||
*/
|
||||
|
||||
#ifndef __DFS_POSIX_H__
|
||||
#define __DFS_POSIX_H__
|
||||
|
||||
#include <dfs_file.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h> /* rename() */
|
||||
#include <sys/stat.h>
|
||||
#include <sys/statfs.h> /* statfs() */
|
||||
|
||||
#endif
|
16
components/legacy/dfs/dfs_select.h
Normal file
16
components/legacy/dfs/dfs_select.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* 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 DFS_SELECT_H__
|
||||
#define DFS_SELECT_H__
|
||||
|
||||
#include <sys/select.h>
|
||||
|
||||
#endif /* DFS_SELECT_H__ */
|
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
|
39
components/legacy/rtlegacy.h
Normal file
39
components/legacy/rtlegacy.h
Normal file
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* 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 __RT_LEGACY_H__
|
||||
#define __RT_LEGACY_H__
|
||||
|
||||
#include <rtconfig.h>
|
||||
#include <rtdef.h>
|
||||
|
||||
/* rtdef.h */
|
||||
|
||||
/* legacy version macros (<5.0.0) */
|
||||
#define RT_VERSION RT_VERSION_MAJOR /**< major version number */
|
||||
#define RT_SUBVERSION RT_VERSION_MINOR /**< minor version number */
|
||||
#define RT_REVISION RT_VERSION_PATCH /**< revise version number */
|
||||
|
||||
/* legacy attributes define (<5.0.0) */
|
||||
#define RT_SECTION rt_section
|
||||
#define RT_WEAK rt_weak
|
||||
#define RT_USED rt_used
|
||||
#ifndef ALIGN
|
||||
#define ALIGN rt_align
|
||||
#endif
|
||||
|
||||
/* IPC */
|
||||
#ifdef RT_USING_DEVICE_IPC
|
||||
#include "ipc/workqueue_legacy.h"
|
||||
#endif /* RT_USING_DEVICE_IPC */
|
||||
|
||||
/* FinSH */
|
||||
|
||||
#endif /* __RT_LEGACY_H__ */
|
Loading…
Add table
Add a link
Reference in a new issue