sqlite数据库读写实现
系统堆修改为axi内存区域
This commit is contained in:
1 parent
91c4751d7c
commit
879bd943a4
38 files changed
+6434
-66
No files matched your search
@@ -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__ */
|
||||
@@ -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
|
||||
@@ -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__ */
|
||||
@@ -126,13 +126,13 @@ struct rt_pin_ctrl_conf_params
|
||||
|
||||
struct rt_pin_ops
|
||||
{
|
||||
void (*pin_mode)(struct rt_device *device, rt_base_t pin, rt_uint8_t mode);
|
||||
void (*pin_write)(struct rt_device *device, rt_base_t pin, rt_uint8_t value);
|
||||
void (*pin_mode)(struct rt_device *device, rt_base_t pin, rt_base_t mode);
|
||||
void (*pin_write)(struct rt_device *device, rt_base_t pin, rt_base_t value);
|
||||
rt_ssize_t (*pin_read)(struct rt_device *device, rt_base_t pin);
|
||||
rt_err_t (*pin_attach_irq)(struct rt_device *device, rt_base_t pin,
|
||||
rt_uint8_t mode, void (*hdr)(void *args), void *args);
|
||||
rt_uint32_t mode, void (*hdr)(void *args), void *args);
|
||||
rt_err_t (*pin_detach_irq)(struct rt_device *device, rt_base_t pin);
|
||||
rt_err_t (*pin_irq_enable)(struct rt_device *device, rt_base_t pin, rt_uint8_t enabled);
|
||||
rt_err_t (*pin_irq_enable)(struct rt_device *device, rt_base_t pin, rt_uint32_t enabled);
|
||||
rt_base_t (*pin_get)(const char *name);
|
||||
#ifdef RT_USING_DM
|
||||
rt_err_t (*pin_irq_mode)(struct rt_device *device, rt_base_t pin, rt_uint8_t mode);
|
||||
|
||||
@@ -16,6 +16,12 @@
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
#include <time.h>
|
||||
|
||||
typedef _TIME_T_ time_t;
|
||||
typedef long suseconds_t; /* microseconds. */
|
||||
typedef unsigned long useconds_t; /* microseconds (unsigned) */
|
||||
typedef __clockid_t clockid_t;
|
||||
|
||||
#ifdef _WIN32
|
||||
typedef __time64_t time_t;
|
||||
#endif /* _WIN32 */
|
||||
|
||||
@@ -244,17 +244,17 @@ RTM_EXPORT(_rt_errno);
|
||||
*/
|
||||
void rt_show_version(void)
|
||||
{
|
||||
rt_kprintf("\n \\ | /\n");
|
||||
rt_kprintf("\n \\ | / SUNLGHT SC828F b0.0.1\n");
|
||||
#if defined(RT_USING_SMART)
|
||||
rt_kprintf("- RT - Thread Smart Operating System\n");
|
||||
#elif defined(RT_USING_NANO)
|
||||
rt_kprintf("- RT - Thread Nano Operating System\n");
|
||||
#else
|
||||
rt_kprintf("- RT - Thread Operating System\n");
|
||||
rt_kprintf("- SC - Thread Operating System\n");
|
||||
#endif
|
||||
rt_kprintf(" / | \\ %d.%d.%d build %s %s\n",
|
||||
(rt_int32_t)RT_VERSION_MAJOR, (rt_int32_t)RT_VERSION_MINOR, (rt_int32_t)RT_VERSION_PATCH, __DATE__, __TIME__);
|
||||
rt_kprintf(" 2006 - 2024 Copyright by RT-Thread team\n");
|
||||
//rt_kprintf(" 2006 - 2024 Copyright by RT-Thread team\n");
|
||||
}
|
||||
RTM_EXPORT(rt_show_version);
|
||||
|
||||
|
||||
Reference in new issue
Block a user