Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2301_76519099
rt-thread
提交
52bbd9d7
R
rt-thread
项目概览
2301_76519099
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
3
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
52bbd9d7
编写于
11月 10, 2021
作者:
mysterywolf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[posix] implement delay functions as RT_USING_POSIX_DELAY
上级
e6ae01e3
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
49 addition
and
20 deletion
+49
-20
bsp/k210/.config
bsp/k210/.config
+30
-10
bsp/k210/rtconfig.h
bsp/k210/rtconfig.h
+9
-3
components/libc/Kconfig
components/libc/Kconfig
+6
-6
components/libc/posix/src/SConscript
components/libc/posix/src/SConscript
+4
-1
未找到文件。
bsp/k210/.config
浏览文件 @
52bbd9d7
...
...
@@ -7,6 +7,7 @@
# RT-Thread Kernel
#
CONFIG_RT_NAME_MAX
=
8
# CONFIG_RT_USING_BIG_ENDIAN is not set
# CONFIG_RT_USING_ARCH_DATA_TYPE is not set
CONFIG_RT_USING_SMP
=
y
CONFIG_RT_CPUS_NR
=
2
...
...
@@ -203,6 +204,7 @@ CONFIG_RT_DEBUG_SFUD=y
#
# Using USB
#
# CONFIG_RT_USING_USB is not set
# CONFIG_RT_USING_USB_HOST is not set
# CONFIG_RT_USING_USB_DEVICE is not set
...
...
@@ -210,15 +212,20 @@ CONFIG_RT_DEBUG_SFUD=y
# POSIX layer and C standard library
#
CONFIG_RT_USING_LIBC
=
y
# CONFIG_RT_USING_PTHREADS is not set
CONFIG_RT_LIBC_USING_TIME
=
y
# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE
=
8
CONFIG_RT_USING_POSIX
=
y
# CONFIG_RT_USING_POSIX_STDIO is not set
# CONFIG_RT_USING_POSIX_POLL is not set
# CONFIG_RT_USING_POSIX_SELECT is not set
CONFIG_RT_USING_POSIX_DELAY
=
y
# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_POSIX_MMAP is not set
# CONFIG_RT_USING_POSIX_TERMIOS is not set
# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_POSIX_AIO is not set
CONFIG_RT_LIBC_USING_TIME
=
y
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE
=
8
# CONFIG_RT_USING_PTHREADS is not set
#
# Network
...
...
@@ -380,6 +387,7 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# CONFIG_PKG_USING_LORA_GW_DRIVER_LIB is not set
# CONFIG_PKG_USING_LORA_PKT_SNIFFER is not set
# CONFIG_PKG_USING_HM is not set
# CONFIG_PKG_USING_SMALL_MODBUS is not set
#
# security packages
...
...
@@ -401,15 +409,15 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
#
# multimedia packages
#
# CONFIG_PKG_USING_OPENMV is not set
# CONFIG_PKG_USING_MUPDF is not set
# CONFIG_PKG_USING_STEMWIN is not set
#
#
lvgl
: powerful and easy-to-use embedded GUI library
#
LVGL
: powerful and easy-to-use embedded GUI library
#
# CONFIG_PKG_USING_LITTLEVGL2RTT is not set
# CONFIG_PKG_USING_LVGL is not set
# CONFIG_PKG_USING_OPENMV is not set
# CONFIG_PKG_USING_MUPDF is not set
# CONFIG_PKG_USING_STEMWIN is not set
# CONFIG_PKG_USING_WAVPLAYER is not set
# CONFIG_PKG_USING_TJPGD is not set
# CONFIG_PKG_USING_PDFGEN is not set
...
...
@@ -481,6 +489,13 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# CONFIG_PKG_USING_QFPLIB_M0_TINY is not set
# CONFIG_PKG_USING_QFPLIB_M3 is not set
#
# CMSIS: ARM Cortex-M Microcontroller Software Interface Standard
#
# CONFIG_PKG_USING_CMSIS_5 is not set
# CONFIG_PKG_USING_CMSIS_5_AUX is not set
# CONFIG_PKG_USING_CMSIS_RTOS2 is not set
#
# Micrium: Micrium software products porting for RT-Thread
#
...
...
@@ -498,7 +513,6 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# CONFIG_PKG_USING_FLASHDB is not set
# CONFIG_PKG_USING_SQLITE is not set
# CONFIG_PKG_USING_RTI is not set
# CONFIG_PKG_USING_CMSIS is not set
# CONFIG_PKG_USING_DFS_YAFFS is not set
# CONFIG_PKG_USING_LITTLEFS is not set
# CONFIG_PKG_USING_DFS_JFFS2 is not set
...
...
@@ -604,6 +618,7 @@ CONFIG_PKG_KENDRYTE_SDK_VERNUM=0x0057
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
# CONFIG_PKG_USING_BL_MCU_SDK is not set
# CONFIG_PKG_USING_SOFT_SERIAL is not set
# CONFIG_PKG_USING_MB85RS16 is not set
#
# AI packages
...
...
@@ -672,6 +687,10 @@ CONFIG_PKG_KENDRYTE_SDK_VERNUM=0x0057
# CONFIG_PKG_USING_COWSAY is not set
# CONFIG_PKG_USING_TERMBOX is not set
CONFIG_BOARD_K210_EVB
=
y
#
# Hardware Drivers Config
#
CONFIG_BSP_USING_UART_HS
=
y
#
...
...
@@ -704,6 +723,7 @@ CONFIG_BSP_LCD_BACKLIGHT_ACTIVE_LOW=y
CONFIG_BSP_LCD_CLK_FREQ
=
15000000
# CONFIG_BSP_BOARD_KD233 is not set
CONFIG_BSP_BOARD_K210_OPENMV_TEST
=
y
# CONFIG_BSP_BOARD_K210_DRACO is not set
# CONFIG_BSP_BOARD_USER is not set
CONFIG_BSP_LCD_X_MAX
=
240
CONFIG_BSP_LCD_Y_MAX
=
320
...
...
bsp/k210/rtconfig.h
浏览文件 @
52bbd9d7
...
...
@@ -130,9 +130,10 @@
/* POSIX layer and C standard library */
#define RT_USING_LIBC
#define RT_USING_POSIX
#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
#define RT_USING_POSIX
#define RT_USING_POSIX_DELAY
/* Network */
...
...
@@ -194,8 +195,7 @@
/* multimedia packages */
/* lvgl: powerful and easy-to-use embedded GUI library */
/* LVGL: powerful and easy-to-use embedded GUI library */
/* u8g2: a monochrome graphic library */
...
...
@@ -209,6 +209,9 @@
/* acceleration: Assembly language or algorithmic acceleration packages */
/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
/* Micrium: Micrium software products porting for RT-Thread */
...
...
@@ -229,6 +232,9 @@
/* entertainment: terminal games and other interesting software packages */
#define BOARD_K210_EVB
/* Hardware Drivers Config */
#define BSP_USING_UART_HS
/* General Purpose UARTs */
...
...
components/libc/Kconfig
浏览文件 @
52bbd9d7
...
...
@@ -38,13 +38,13 @@ config RT_LIBC_DEFAULT_TIMEZONE
default 8
config RT_USING_POSIX
bool "Enable basic POSIX layer, open
/read/write/close
etc"
bool "Enable basic POSIX layer, open
()/read()/write()/close()
etc"
select RT_USING_DFS
default n
if RT_USING_POSIX
config RT_USING_POSIX_STDIO
bool "Enable standard I/O"
bool "Enable standard I/O
, STDOUT_FILENO/STDIN_FILENO/STDERR_FILENO
"
select RT_USING_DFS
select RT_USING_DFS_DEVFS
default n
...
...
@@ -61,15 +61,15 @@ if RT_USING_POSIX
default n
config RT_USING_POSIX_DELAY
bool "Enable delay
functions
"
bool "Enable delay
APIs, sleep()/usleep()/msleep() etc
"
default n
config RT_USING_POSIX_GETLINE
bool "Enable getline()/getdelim()
APIs
"
bool "Enable getline()/getdelim()"
default n
config RT_USING_POSIX_MMAP
bool "Enable mmap()
API
"
bool "Enable mmap()"
select RT_USING_DFS
default n
...
...
@@ -78,7 +78,7 @@ if RT_USING_POSIX
default n
config RT_USING_POSIX_AIO
bool "Enable AIO"
bool "Enable AIO
APIs
"
default n
endif
...
...
components/libc/posix/src/SConscript
浏览文件 @
52bbd9d7
...
...
@@ -2,13 +2,16 @@
from
building
import
*
src
=
[
'unistd.c'
,
'delay.c'
]
src
=
[
'unistd.c'
]
cwd
=
GetCurrentDir
()
CPPPATH
=
[
cwd
]
if
GetDepend
(
'RT_USING_POSIX_STDIO'
):
src
+=
[
'libc.c'
]
if
GetDepend
(
'RT_USING_POSIX_DELAY'
):
src
+=
[
'delay.c'
]
if
GetDepend
(
'RT_USING_POSIX_POLL'
):
src
+=
[
'poll.c'
]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录