Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
在你之后
rt-thread
提交
e79f9e6b
R
rt-thread
项目概览
在你之后
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
2
Star
0
Fork
0
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
e79f9e6b
编写于
11月 10, 2017
作者:
D
DengQilong
提交者:
Bernard Xiong
11月 13, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bsp for lpc54608
上级
7b262839
变更
12
展开全部
显示空白变更内容
内联
并排
Showing
12 changed file
with
776 addition
and
378 deletion
+776
-378
bsp/lpc54608-LPCXpresso/.config
bsp/lpc54608-LPCXpresso/.config
+260
-0
bsp/lpc54608-LPCXpresso/Kconfig
bsp/lpc54608-LPCXpresso/Kconfig
+29
-0
bsp/lpc54608-LPCXpresso/applications/mnt.c
bsp/lpc54608-LPCXpresso/applications/mnt.c
+5
-3
bsp/lpc54608-LPCXpresso/drivers/Kconfig
bsp/lpc54608-LPCXpresso/drivers/Kconfig
+11
-0
bsp/lpc54608-LPCXpresso/drivers/board.c
bsp/lpc54608-LPCXpresso/drivers/board.c
+3
-0
bsp/lpc54608-LPCXpresso/drivers/board.h
bsp/lpc54608-LPCXpresso/drivers/board.h
+1
-9
bsp/lpc54608-LPCXpresso/drivers/drv_uart.c
bsp/lpc54608-LPCXpresso/drivers/drv_uart.c
+3
-1
bsp/lpc54608-LPCXpresso/project.uvoptx
bsp/lpc54608-LPCXpresso/project.uvoptx
+193
-105
bsp/lpc54608-LPCXpresso/project.uvprojx
bsp/lpc54608-LPCXpresso/project.uvprojx
+71
-26
bsp/lpc54608-LPCXpresso/rtconfig.h
bsp/lpc54608-LPCXpresso/rtconfig.h
+198
-231
components/dfs/filesystems/nfs/rpc/clnt_generic.c
components/dfs/filesystems/nfs/rpc/clnt_generic.c
+1
-1
components/net/freemodbus/port/port.h
components/net/freemodbus/port/port.h
+1
-2
未找到文件。
bsp/lpc54608-LPCXpresso/.config
0 → 100644
浏览文件 @
e79f9e6b
#
# Automatically generated file; DO NOT EDIT.
# RT-Thread Configuration
#
#
# RT-Thread Kernel
#
CONFIG_RT_NAME_MAX
=
8
CONFIG_RT_ALIGN_SIZE
=
4
CONFIG_RT_THREAD_PRIORITY_MAX
=
32
CONFIG_RT_TICK_PER_SECOND
=
1000
CONFIG_RT_DEBUG
=
y
CONFIG_RT_USING_OVERFLOW_CHECK
=
y
CONFIG_RT_DEBUG_INIT
=
0
CONFIG_RT_DEBUG_THREAD
=
0
CONFIG_RT_USING_HOOK
=
y
CONFIG_IDLE_THREAD_STACK_SIZE
=
256
CONFIG_RT_USING_TIMER_SOFT
=
y
CONFIG_RT_TIMER_THREAD_PRIO
=
4
CONFIG_RT_TIMER_THREAD_STACK_SIZE
=
512
#
# Inter-Thread communication
#
CONFIG_RT_USING_SEMAPHORE
=
y
CONFIG_RT_USING_MUTEX
=
y
CONFIG_RT_USING_EVENT
=
y
CONFIG_RT_USING_MAILBOX
=
y
CONFIG_RT_USING_MESSAGEQUEUE
=
y
# CONFIG_RT_USING_SIGNALS is not set
#
# Memory Management
#
CONFIG_RT_USING_MEMPOOL
=
y
CONFIG_RT_USING_MEMHEAP
=
y
CONFIG_RT_USING_HEAP
=
y
CONFIG_RT_USING_SMALL_MEM
=
y
# CONFIG_RT_USING_SLAB is not set
#
# Kernel Device Object
#
CONFIG_RT_USING_DEVICE
=
y
# CONFIG_RT_USING_INTERRUPT_INFO is not set
CONFIG_RT_USING_CONSOLE
=
y
CONFIG_RT_CONSOLEBUF_SIZE
=
128
CONFIG_RT_CONSOLE_DEVICE_NAME
=
"uart0"
# CONFIG_RT_USING_MODULE is not set
#
# RT-Thread Components
#
CONFIG_RT_USING_COMPONENTS_INIT
=
y
# CONFIG_RT_USING_USER_MAIN is not set
#
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
#
# Command shell
#
CONFIG_RT_USING_FINSH
=
y
CONFIG_FINSH_USING_HISTORY
=
y
CONFIG_FINSH_USING_SYMTAB
=
y
CONFIG_FINSH_USING_DESCRIPTION
=
y
CONFIG_FINSH_THREAD_PRIORITY
=
20
CONFIG_FINSH_THREAD_STACK_SIZE
=
4096
CONFIG_FINSH_CMD_SIZE
=
80
# CONFIG_FINSH_USING_AUTH is not set
CONFIG_FINSH_USING_MSH
=
y
CONFIG_FINSH_USING_MSH_DEFAULT
=
y
# CONFIG_FINSH_USING_MSH_ONLY is not set
#
# Device virtual file system
#
CONFIG_RT_USING_DFS
=
y
CONFIG_DFS_USING_WORKDIR
=
y
CONFIG_DFS_FILESYSTEMS_MAX
=
2
CONFIG_DFS_FD_MAX
=
4
CONFIG_RT_USING_DFS_ELMFAT
=
y
#
# elm-chan's FatFs, Generic FAT Filesystem Module
#
CONFIG_RT_DFS_ELM_CODE_PAGE
=
437
CONFIG_RT_DFS_ELM_WORD_ACCESS
=
y
CONFIG_RT_DFS_ELM_USE_LFN_0
=
y
# CONFIG_RT_DFS_ELM_USE_LFN_1 is not set
# CONFIG_RT_DFS_ELM_USE_LFN_2 is not set
# CONFIG_RT_DFS_ELM_USE_LFN_3 is not set
CONFIG_RT_DFS_ELM_USE_LFN
=
0
CONFIG_RT_DFS_ELM_MAX_LFN
=
255
CONFIG_RT_DFS_ELM_DRIVES
=
2
CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE
=
512
# CONFIG_RT_DFS_ELM_USE_ERASE is not set
CONFIG_RT_DFS_ELM_REENTRANT
=
y
# CONFIG_RT_USING_DFS_DEVFS is not set
# CONFIG_RT_USING_DFS_NET is not set
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
# CONFIG_RT_USING_DFS_UFFS is not set
# CONFIG_RT_USING_DFS_NFS is not set
#
# Device Drivers
#
CONFIG_RT_USING_DEVICE_IPC
=
y
CONFIG_RT_USING_SERIAL
=
y
# CONFIG_RT_USING_CAN is not set
# CONFIG_RT_USING_HWTIMER is not set
CONFIG_RT_USING_I2C
=
y
CONFIG_RT_USING_I2C_BITOPS
=
y
CONFIG_RT_USING_PIN
=
y
# CONFIG_RT_USING_MTD_NOR is not set
CONFIG_RT_USING_MTD_NAND
=
y
# CONFIG_RT_MTD_NAND_DEBUG is not set
CONFIG_RT_USING_RTC
=
y
CONFIG_RT_USING_SDIO
=
y
CONFIG_RT_USING_SPI
=
y
# CONFIG_RT_USING_SFUD is not set
# CONFIG_RT_USING_W25QXX is not set
# CONFIG_RT_USING_GD is not set
CONFIG_RT_USING_ENC28J60
=
y
# CONFIG_RT_USING_SPI_WIFI is not set
# CONFIG_RT_USING_WDT is not set
# CONFIG_RT_USING_USB_HOST is not set
# CONFIG_RT_USING_USB_DEVICE is not set
#
# POSIX layer and C standard library
#
CONFIG_RT_USING_LIBC
=
y
CONFIG_RT_USING_PTHREADS
=
y
# CONFIG_RT_USING_POSIX is not set
#
# Network stack
#
#
# light weight TCP/IP stack
#
CONFIG_RT_USING_LWIP
=
y
CONFIG_RT_USING_LWIP141
=
y
# CONFIG_RT_USING_LWIP202 is not set
# CONFIG_RT_LWIP_IGMP is not set
CONFIG_RT_LWIP_ICMP
=
y
# CONFIG_RT_LWIP_SNMP is not set
CONFIG_RT_LWIP_DNS
=
y
CONFIG_RT_LWIP_DHCP
=
y
CONFIG_IP_SOF_BROADCAST
=
1
CONFIG_IP_SOF_BROADCAST_RECV
=
1
# CONFIG_LWIP_USING_DHCPD is not set
#
# Static IPv4 Address
#
CONFIG_RT_LWIP_IPADDR
=
"192.168.1.30"
CONFIG_RT_LWIP_GWADDR
=
"192.168.1.1"
CONFIG_RT_LWIP_MSKADDR
=
"255.255.255.0"
CONFIG_RT_LWIP_UDP
=
y
CONFIG_RT_LWIP_TCP
=
y
# CONFIG_RT_LWIP_RAW is not set
# CONFIG_RT_LWIP_PPP is not set
# CONFIG_RT_LWIP_PPPOE is not set
# CONFIG_RT_LWIP_PPPOS is not set
CONFIG_RT_LWIP_PBUF_NUM
=
16
CONFIG_RT_LWIP_RAW_PCB_NUM
=
4
CONFIG_RT_LWIP_UDP_PCB_NUM
=
4
CONFIG_RT_LWIP_TCP_PCB_NUM
=
4
CONFIG_RT_LWIP_TCP_SEG_NUM
=
40
CONFIG_RT_LWIP_TCP_SND_BUF
=
8196
CONFIG_RT_LWIP_TCP_WND
=
8196
CONFIG_RT_LWIP_TCPTHREAD_PRIORITY
=
10
CONFIG_RT_LWIP_TCPTHREAD_MBOX_SIZE
=
8
CONFIG_RT_LWIP_TCPTHREAD_STACKSIZE
=
1024
CONFIG_RT_LWIP_ETHTHREAD_PRIORITY
=
12
CONFIG_RT_LWIP_ETHTHREAD_STACKSIZE
=
1024
CONFIG_RT_LWIP_ETHTHREAD_MBOX_SIZE
=
8
# CONFIG_RT_LWIP_REASSEMBLY_FRAG is not set
CONFIG_LWIP_NETIF_STATUS_CALLBACK
=
1
CONFIG_SO_REUSE
=
1
CONFIG_LWIP_SO_RCVTIMEO
=
1
CONFIG_LWIP_SO_SNDTIMEO
=
1
CONFIG_LWIP_SO_RCVBUF
=
1
#
# Modbus master and slave stack
#
# CONFIG_RT_USING_MODBUS is not set
# CONFIG_RT_USING_NETUTILS is not set
#
# RT-Thread UI Engine
#
# CONFIG_RT_USING_GUIENGINE is not set
#
# VBUS(Virtual Software BUS)
#
# CONFIG_RT_USING_VBUS is not set
#
# RT-Thread online packages
#
#
# system packages
#
# CONFIG_PKG_USING_PARTITION is not set
# CONFIG_PKG_USING_SQLITE is not set
#
# IoT - internet of things
#
# CONFIG_PKG_USING_PAHOMQTT is not set
# CONFIG_PKG_USING_WEBCLIENT is not set
# CONFIG_PKG_USING_MONGOOSE is not set
# CONFIG_PKG_USING_WEBTERMINAL is not set
# CONFIG_PKG_USING_CJSON is not set
# CONFIG_PKG_USING_EZXML is not set
#
# Marvell WiFi
#
# CONFIG_PKG_USING_MARVELLWIFI is not set
#
# security packages
#
# CONFIG_PKG_USING_MBEDTLS is not set
#
# language packages
#
# CONFIG_PKG_USING_JERRYSCRIPT is not set
#
# multimedia packages
#
# CONFIG_PKG_USING_FASTLZ is not set
#
# tools packages
#
# CONFIG_PKG_USING_CMBACKTRACE is not set
# CONFIG_PKG_USING_EASYLOGGER is not set
# CONFIG_PKG_USING_SYSTEMVIEW is not set
#
# miscellaneous packages
#
# CONFIG_PKG_USING_HELLO is not set
CONFIG_RT_USING_UART0
=
y
CONFIG_USE_EXT_SDRAM
=
y
bsp/lpc54608-LPCXpresso/Kconfig
0 → 100644
浏览文件 @
e79f9e6b
mainmenu "RT-Thread Configuration"
config $BSP_DIR
string
option env="BSP_ROOT"
default "."
config $RTT_DIR
string
option env="RTT_ROOT"
default "../.."
# you can change the RTT_ROOT default "../.." to your rtthread_root,
# example : default "F:/git_repositories/rt-thread"
config $PKGS_DIR
string
option env="PKGS_ROOT"
default "packages"
source "$RTT_DIR/KConfig"
source "$PKGS_DIR/KConfig"
source "$BSP_DIR/drivers/Kconfig"
\ No newline at end of file
bsp/lpc54608-LPCXpresso/applications/mnt.c
浏览文件 @
e79f9e6b
...
@@ -54,12 +54,14 @@ int mnt_init(void)
...
@@ -54,12 +54,14 @@ int mnt_init(void)
/* initilize sd card */
/* initilize sd card */
mci_hw_init
(
"sd0"
);
mci_hw_init
(
"sd0"
);
#ifdef RT_DFS_ELM_REENTRANT
/* mount sd card fat partition 1 as root directory */
/* mount sd card fat partition 1 as root directory */
if
(
dfs_mount
(
"sd0"
,
SD_ROOT
,
"elm"
,
0
,
0
)
==
0
)
if
(
dfs_mount
(
"sd0"
,
SD_ROOT
,
"elm"
,
0
,
0
)
==
0
)
rt_kprintf
(
"File System initialized!
\n
"
);
rt_kprintf
(
"File System initialized!
\n
"
);
else
else
rt_kprintf
(
"File System init failed!
\n
"
);
rt_kprintf
(
"File System init failed!
\n
"
);
#endif
return
0
;
return
0
;
}
}
...
...
bsp/lpc54608-LPCXpresso/drivers/Kconfig
0 → 100644
浏览文件 @
e79f9e6b
config RT_USING_UART0
bool "Enable UART0"
default y
config RT_DFS_ELM_REENTRANT
bool "Enable SD Card"
default y
config USE_EXT_SDRAM
bool "Enable SDRAM"
default y
\ No newline at end of file
bsp/lpc54608-LPCXpresso/drivers/board.c
浏览文件 @
e79f9e6b
...
@@ -65,7 +65,10 @@ void rt_hw_board_init()
...
@@ -65,7 +65,10 @@ void rt_hw_board_init()
/*init uart device*/
/*init uart device*/
rt_hw_uart_init
();
rt_hw_uart_init
();
#ifdef RT_USING_CONSOLE
rt_console_set_device
(
RT_CONSOLE_DEVICE_NAME
);
rt_console_set_device
(
RT_CONSOLE_DEVICE_NAME
);
#endif
#if LPC_EXT_SDRAM == 1
#if LPC_EXT_SDRAM == 1
lpc_sdram_hw_init
();
lpc_sdram_hw_init
();
...
...
bsp/lpc54608-LPCXpresso/drivers/board.h
浏览文件 @
e79f9e6b
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#include <rtthread.h>
#include <rtthread.h>
/* disable SDRAM in default */
/* disable SDRAM in default */
#ifndef
LPC
_EXT_SDRAM
#ifndef
USE
_EXT_SDRAM
#define LPC_EXT_SDRAM 1
#define LPC_EXT_SDRAM 1
#endif
#endif
...
@@ -35,14 +35,6 @@
...
@@ -35,14 +35,6 @@
// <integer name="LPC_EXT_SDRAM_END" description="End Address of External SDRAM" default="0xA2000000" />
// <integer name="LPC_EXT_SDRAM_END" description="End Address of External SDRAM" default="0xA2000000" />
#define LPC_EXT_SDRAM_END 0xA0800000
#define LPC_EXT_SDRAM_END 0xA0800000
// <bool name="RT_USING_UART0" description="Using UART0" default="true" />
#define RT_USING_UART0
// <bool name="RT_USING_UART1" description="Using UART1" default="true" />
//#define RT_USING_UART1
// <bool name="RT_USING_UART2" description="Using UART2" default="true" />
//#define RT_USING_UART2
// <string name="RT_CONSOLE_DEVICE_NAME" description="The name of console device" default="" />
#define RT_CONSOLE_DEVICE_NAME "uart0"
// </RDTConfigurator>
// </RDTConfigurator>
...
...
bsp/lpc54608-LPCXpresso/drivers/drv_uart.c
浏览文件 @
e79f9e6b
...
@@ -149,6 +149,7 @@ void rt_hw_uart_init(void)
...
@@ -149,6 +149,7 @@ void rt_hw_uart_init(void)
struct
lpc_uart
*
uart
;
struct
lpc_uart
*
uart
;
struct
serial_configure
config
=
RT_SERIAL_CONFIG_DEFAULT
;
struct
serial_configure
config
=
RT_SERIAL_CONFIG_DEFAULT
;
#ifdef RT_USING_UART0
uart
=
&
uart0
;
uart
=
&
uart0
;
...
@@ -191,4 +192,5 @@ void rt_hw_uart_init(void)
...
@@ -191,4 +192,5 @@ void rt_hw_uart_init(void)
rt_hw_serial_register
(
&
serial0
,
"uart0"
,
rt_hw_serial_register
(
&
serial0
,
"uart0"
,
RT_DEVICE_FLAG_RDWR
|
RT_DEVICE_FLAG_INT_RX
|
RT_DEVICE_FLAG_STREAM
,
RT_DEVICE_FLAG_RDWR
|
RT_DEVICE_FLAG_INT_RX
|
RT_DEVICE_FLAG_STREAM
,
uart
);
uart
);
#endif
}
}
bsp/lpc54608-LPCXpresso/project.uvoptx
浏览文件 @
e79f9e6b
此差异已折叠。
点击以展开。
bsp/lpc54608-LPCXpresso/project.uvprojx
浏览文件 @
e79f9e6b
...
@@ -10,19 +10,19 @@
...
@@ -10,19 +10,19 @@
<TargetName>
rtthread-lpc546xx
</TargetName>
<TargetName>
rtthread-lpc546xx
</TargetName>
<ToolsetNumber>
0x4
</ToolsetNumber>
<ToolsetNumber>
0x4
</ToolsetNumber>
<ToolsetName>
ARM-ADS
</ToolsetName>
<ToolsetName>
ARM-ADS
</ToolsetName>
<pCCUsed>
5060
061::V5.06 update 1 (build 61
)::ARMCC
</pCCUsed>
<pCCUsed>
5060
422::V5.06 update 4 (build 422
)::ARMCC
</pCCUsed>
<TargetOption>
<TargetOption>
<TargetCommonOption>
<TargetCommonOption>
<Device>
ARMCM4_FP
</Device>
<Device>
LPC54608J512ET180:M4
</Device>
<Vendor>
ARM
</Vendor>
<Vendor>
NXP
</Vendor>
<PackID>
ARM.CMSIS.4
.5.0
</PackID>
<PackID>
Keil.LPC54000_DFP.2
.5.0
</PackID>
<PackURL>
http://www.keil.com/pack/
</PackURL>
<PackURL>
http://www.keil.com/pack/
</PackURL>
<Cpu>
IROM(0x00000000,0x
80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ESEL
ELITTLE
</Cpu>
<Cpu>
IROM(0x00000000,0x
00080000) IRAM(0x20000000,0x00028000) IRAM2(0x04000000,0x00008000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000)
ELITTLE
</Cpu>
<FlashUtilSpec></FlashUtilSpec>
<FlashUtilSpec></FlashUtilSpec>
<StartupFile></StartupFile>
<StartupFile></StartupFile>
<FlashDriverDll>
UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0
NEW_DEVICE -FS00 -FL080000 -FP0($$Device:ARMCM4_FP$Device\ARM\Flash\NEW_DEVICE
.FLM))
</FlashDriverDll>
<FlashDriverDll>
UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0
LPC5460x_512 -FS00 -FL080000 -FP0($$Device:LPC54608J512ET180$Flash\LPC5460x_512
.FLM))
</FlashDriverDll>
<DeviceId>
0
</DeviceId>
<DeviceId>
0
</DeviceId>
<RegisterFile>
$$Device:
ARMCM4_FP$Device\ARM\ARMCM4\Include\ARMCM4_FP
.h
</RegisterFile>
<RegisterFile>
$$Device:
LPC54608J512ET180$Device\Include\LPC54608
.h
</RegisterFile>
<MemoryEnv></MemoryEnv>
<MemoryEnv></MemoryEnv>
<Cmp></Cmp>
<Cmp></Cmp>
<Asm></Asm>
<Asm></Asm>
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<SLE66CMisc></SLE66CMisc>
<SLE66CMisc></SLE66CMisc>
<SLE66AMisc></SLE66AMisc>
<SLE66AMisc></SLE66AMisc>
<SLE66LinkerMisc></SLE66LinkerMisc>
<SLE66LinkerMisc></SLE66LinkerMisc>
<SFDFile>
$$Device:
ARMCM4_FP$Device\ARM\SVD\ARMCM4
.svd
</SFDFile>
<SFDFile>
$$Device:
LPC54608J512ET180$SVD\LPC54608
.svd
</SFDFile>
<bCustSvd>
0
</bCustSvd>
<bCustSvd>
0
</bCustSvd>
<UseEnv>
0
</UseEnv>
<UseEnv>
0
</UseEnv>
<BinPath></BinPath>
<BinPath></BinPath>
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
</Flash1>
</Flash1>
<bUseTDR>
1
</bUseTDR>
<bUseTDR>
1
</bUseTDR>
<Flash2>
BIN\UL2CM3.DLL
</Flash2>
<Flash2>
BIN\UL2CM3.DLL
</Flash2>
<Flash3></Flash3>
<Flash3>
"" ()
</Flash3>
<Flash4></Flash4>
<Flash4></Flash4>
<pFcarmOut></pFcarmOut>
<pFcarmOut></pFcarmOut>
<pFcarmGrp></pFcarmGrp>
<pFcarmGrp></pFcarmGrp>
...
@@ -183,11 +183,11 @@
...
@@ -183,11 +183,11 @@
<hadXRAM>
0
</hadXRAM>
<hadXRAM>
0
</hadXRAM>
<uocXRam>
0
</uocXRam>
<uocXRam>
0
</uocXRam>
<RvdsVP>
2
</RvdsVP>
<RvdsVP>
2
</RvdsVP>
<hadIRAM2>
0
</hadIRAM2>
<hadIRAM2>
1
</hadIRAM2>
<hadIROM2>
0
</hadIROM2>
<hadIROM2>
0
</hadIROM2>
<StupSel>
8
</StupSel>
<StupSel>
8
</StupSel>
<useUlib>
1
</useUlib>
<useUlib>
1
</useUlib>
<EndSel>
1
</EndSel>
<EndSel>
0
</EndSel>
<uLtcg>
0
</uLtcg>
<uLtcg>
0
</uLtcg>
<nSecure>
0
</nSecure>
<nSecure>
0
</nSecure>
<RoSelD>
3
</RoSelD>
<RoSelD>
3
</RoSelD>
...
@@ -243,7 +243,7 @@
...
@@ -243,7 +243,7 @@
<IRAM>
<IRAM>
<Type>
0
</Type>
<Type>
0
</Type>
<StartAddress>
0x20000000
</StartAddress>
<StartAddress>
0x20000000
</StartAddress>
<Size>
0x2
0
000
</Size>
<Size>
0x2
8
000
</Size>
</IRAM>
</IRAM>
<IROM>
<IROM>
<Type>
1
</Type>
<Type>
1
</Type>
...
@@ -298,12 +298,12 @@
...
@@ -298,12 +298,12 @@
<OCR_RVCT9>
<OCR_RVCT9>
<Type>
0
</Type>
<Type>
0
</Type>
<StartAddress>
0x20000000
</StartAddress>
<StartAddress>
0x20000000
</StartAddress>
<Size>
0x2
0
000
</Size>
<Size>
0x2
8
000
</Size>
</OCR_RVCT9>
</OCR_RVCT9>
<OCR_RVCT10>
<OCR_RVCT10>
<Type>
0
</Type>
<Type>
0
</Type>
<StartAddress>
0x0
</StartAddress>
<StartAddress>
0x
400000
0
</StartAddress>
<Size>
0x0
</Size>
<Size>
0x
800
0
</Size>
</OCR_RVCT10>
</OCR_RVCT10>
</OnChipMemories>
</OnChipMemories>
<RvctStartVector></RvctStartVector>
<RvctStartVector></RvctStartVector>
...
@@ -328,11 +328,14 @@
...
@@ -328,11 +328,14 @@
<v6LangP>
0
</v6LangP>
<v6LangP>
0
</v6LangP>
<vShortEn>
1
</vShortEn>
<vShortEn>
1
</vShortEn>
<vShortWch>
1
</vShortWch>
<vShortWch>
1
</vShortWch>
<v6Lto>
0
</v6Lto>
<v6WtE>
0
</v6WtE>
<v6Rtti>
0
</v6Rtti>
<VariousControls>
<VariousControls>
<MiscControls>
--library_interface=armcc --library_type=standardlib --diag_suppress=66,1296,186
</MiscControls>
<MiscControls>
--library_interface=armcc --library_type=standardlib --diag_suppress=66,1296,186
</MiscControls>
<Define>
CPU_LPC54608J512ET180=1, CPU_LPC54608, CORE_M4, RT_USING_ARM_LIBC
</Define>
<Define>
CPU_LPC54608J512ET180=1, CPU_LPC54608, CORE_M4, RT_USING_ARM_LIBC
</Define>
<Undefine></Undefine>
<Undefine></Undefine>
<IncludePath>
applications;.;drivers;SDK_2.2_LPCXpresso54608\CMSIS\Include;SDK_2.2_LPCXpresso54608\devices\LPC54608;SDK_2.2_LPCXpresso54608\devices\LPC54608\drivers;SDK_2.2_LPCXpresso54608\devices\LPC54608\utilities;SDK_2.2_LPCXpresso54608\sdmmc_2.1.2\inc;SDK_2.2_LPCXpresso54608\sdmmc_2.1.2\src;..\..\include;..\..\libcpu\arm\cortex-m4;..\..\libcpu\arm\common;..\..\components\dfs\include;..\..\components\dfs\filesystems\
devfs;..\..\components\dfs\filesystems\elmfat
;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\spi;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh;..\..\components\libc\compilers\armlibc;..\..\components\libc\pthreads;..\..\components\net\lwip-1.4.1\src;..\..\components\net\lwip-1.4.1\src\include;..\..\components\net\lwip-1.4.1\src\include\ipv4;..\..\components\net\lwip-1.4.1\src\arch\include;..\..\components\net\lwip-1.4.1\src\include\netif
</IncludePath>
<IncludePath>
applications;.;drivers;SDK_2.2_LPCXpresso54608\CMSIS\Include;SDK_2.2_LPCXpresso54608\devices\LPC54608;SDK_2.2_LPCXpresso54608\devices\LPC54608\drivers;SDK_2.2_LPCXpresso54608\devices\LPC54608\utilities;SDK_2.2_LPCXpresso54608\sdmmc_2.1.2\inc;SDK_2.2_LPCXpresso54608\sdmmc_2.1.2\src;..\..\include;..\..\libcpu\arm\cortex-m4;..\..\libcpu\arm\common;..\..\components\dfs\include;..\..\components\dfs\filesystems\
elmfat;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include
;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\spi;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh;..\..\components\libc\compilers\armlibc;..\..\components\libc\pthreads;..\..\components\net\lwip-1.4.1\src;..\..\components\net\lwip-1.4.1\src\include;..\..\components\net\lwip-1.4.1\src\include\ipv4;..\..\components\net\lwip-1.4.1\src\arch\include;..\..\components\net\lwip-1.4.1\src\include\netif
</IncludePath>
</VariousControls>
</VariousControls>
</Cads>
</Cads>
<Aads>
<Aads>
...
@@ -345,6 +348,7 @@
...
@@ -345,6 +348,7 @@
<NoWarn>
0
</NoWarn>
<NoWarn>
0
</NoWarn>
<uSurpInc>
0
</uSurpInc>
<uSurpInc>
0
</uSurpInc>
<useXO>
0
</useXO>
<useXO>
0
</useXO>
<uClangAs>
0
</uClangAs>
<VariousControls>
<VariousControls>
<MiscControls></MiscControls>
<MiscControls></MiscControls>
<Define></Define>
<Define></Define>
...
@@ -835,11 +839,6 @@
...
@@ -835,11 +839,6 @@
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<FilePath>
..\..\components\dfs\src\dfs_posix.c
</FilePath>
<FilePath>
..\..\components\dfs\src\dfs_posix.c
</FilePath>
</File>
</File>
<File>
<FileName>
devfs.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\dfs\filesystems\devfs\devfs.c
</FilePath>
</File>
<File>
<File>
<FileName>
dfs_elm.c
</FileName>
<FileName>
dfs_elm.c
</FileName>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
...
@@ -850,11 +849,6 @@
...
@@ -850,11 +849,6 @@
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<FilePath>
..\..\components\dfs\filesystems\elmfat\ff.c
</FilePath>
<FilePath>
..\..\components\dfs\filesystems\elmfat\ff.c
</FilePath>
</File>
</File>
<File>
<FileName>
ccfile.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\dfs\filesystems\elmfat\option\ccfile.c
</FilePath>
</File>
</Files>
</Files>
</Group>
</Group>
<Group>
<Group>
...
@@ -870,11 +864,51 @@
...
@@ -870,11 +864,51 @@
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<FilePath>
..\..\components\drivers\i2c\i2c_dev.c
</FilePath>
<FilePath>
..\..\components\drivers\i2c\i2c_dev.c
</FilePath>
</File>
</File>
<File>
<FileName>
i2c-bit-ops.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\drivers\i2c\i2c-bit-ops.c
</FilePath>
</File>
<File>
<FileName>
pin.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\drivers\misc\pin.c
</FilePath>
</File>
<File>
<FileName>
mtd_nand.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\drivers\mtd\mtd_nand.c
</FilePath>
</File>
<File>
<File>
<FileName>
rtc.c
</FileName>
<FileName>
rtc.c
</FileName>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<FilePath>
..\..\components\drivers\rtc\rtc.c
</FilePath>
<FilePath>
..\..\components\drivers\rtc\rtc.c
</FilePath>
</File>
</File>
<File>
<FileName>
block_dev.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\drivers\sdio\block_dev.c
</FilePath>
</File>
<File>
<FileName>
mmcsd_core.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\drivers\sdio\mmcsd_core.c
</FilePath>
</File>
<File>
<FileName>
sd.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\drivers\sdio\sd.c
</FilePath>
</File>
<File>
<FileName>
sdio.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\drivers\sdio\sdio.c
</FilePath>
</File>
<File>
<FileName>
mmc.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\drivers\sdio\mmc.c
</FilePath>
</File>
<File>
<File>
<FileName>
serial.c
</FileName>
<FileName>
serial.c
</FileName>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
...
@@ -890,6 +924,11 @@
...
@@ -890,6 +924,11 @@
<FileType>
1
</FileType>
<FileType>
1
</FileType>
<FilePath>
..\..\components\drivers\spi\spi_dev.c
</FilePath>
<FilePath>
..\..\components\drivers\spi\spi_dev.c
</FilePath>
</File>
</File>
<File>
<FileName>
enc28j60.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\drivers\spi\enc28j60.c
</FilePath>
</File>
<File>
<File>
<FileName>
completion.c
</FileName>
<FileName>
completion.c
</FileName>
<FileType>
1
</FileType>
<FileType>
1
</FileType>
...
@@ -1286,4 +1325,10 @@
...
@@ -1286,4 +1325,10 @@
</Target>
</Target>
</Targets>
</Targets>
<RTE>
<apis/>
<components/>
<files/>
</RTE>
</Project>
</Project>
bsp/lpc54608-LPCXpresso/rtconfig.h
浏览文件 @
e79f9e6b
/* RT-Thread config file */
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__
#ifndef __RTTHREAD_CFG_H__
/* Automatically generated file; DO NOT EDIT. */
#define __RTTHREAD_CFG_H__
/* RT-Thread Configuration */
/
/ <RDTConfigurator URL="http://www.rt-thread.com/eclipse">
/
* RT-Thread Kernel */
// <integer name="RT_NAME_MAX" description="Maximal size of kernel object name length" default="6" />
#define RT_NAME_MAX 8
#define RT_NAME_MAX 8
// <integer name="RT_ALIGN_SIZE" description="Alignment size for CPU architecture data access" default="4" />
#define RT_ALIGN_SIZE 4
#define RT_ALIGN_SIZE 4
// <integer name="RT_THREAD_PRIORITY_MAX" description="Maximal level of thread priority" default="32">
// <item description="8">8</item>
// <item description="32">32</item>
// <item description="256">256</item>
// </integer>
#define RT_THREAD_PRIORITY_MAX 32
#define RT_THREAD_PRIORITY_MAX 32
// <integer name="RT_TICK_PER_SECOND" description="OS tick per second" default="100" />
#define RT_TICK_PER_SECOND 1000
#define RT_TICK_PER_SECOND 1000
// <integer name="IDLE_THREAD_STACK_SIZE" description="The stack size of idle thread" default="512" />
#define IDLE_THREAD_STACK_SIZE 512
// <bool name="RT_USING_MODULE" description="Using Application Module" default="true" />
// #define RT_USING_MODULE
// <section name="RT_DEBUG" description="Kernel Debug Configuration" default="true" >
#define RT_DEBUG
#define RT_DEBUG
// <bool name="RT_DEBUG_INIT" description="debug init enable" default=0 />
#define RT_DEBUG_INIT 0
// <bool name="RT_THREAD_DEBUG" description="Thread debug enable" default="false" />
// #define RT_THREAD_DEBUG
// <bool name="RT_USING_OVERFLOW_CHECK" description="Thread stack over flow detect" default="true" />
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_OVERFLOW_CHECK
// </section>
#define RT_DEBUG_INIT 0
#define RT_DEBUG_THREAD 0
// <bool name="RT_USING_HOOK" description="Using hook functions" default="true" />
#define RT_USING_HOOK
#define RT_USING_HOOK
// <section name="RT_USING_TIMER_SOFT" description="Using software timer which will start a thread to handle soft-timer" default="true" >
#define IDLE_THREAD_STACK_SIZE 256
#define RT_USING_TIMER_SOFT
#define RT_USING_TIMER_SOFT
// <integer name="RT_TIMER_THREAD_PRIO" description="The priority level of timer thread" default="4" />
#define RT_TIMER_THREAD_PRIO 4
#define RT_TIMER_THREAD_PRIO 4
// <integer name="RT_TIMER_THREAD_STACK_SIZE" description="The stack size of timer thread" default="512" />
#define RT_TIMER_THREAD_STACK_SIZE 512
#define RT_TIMER_THREAD_STACK_SIZE 512
// </section>
/
/ <section name="IPC" description="Inter-Thread communication" default="always" >
/
* Inter-Thread communication */
// <bool name="RT_USING_SEMAPHORE" description="Using semaphore in the system" default="true" />
#define RT_USING_SEMAPHORE
#define RT_USING_SEMAPHORE
// <bool name="RT_USING_MUTEX" description="Using mutex in the system" default="true" />
#define RT_USING_MUTEX
#define RT_USING_MUTEX
// <bool name="RT_USING_EVENT" description="Using event group in the system" default="true" />
#define RT_USING_EVENT
#define RT_USING_EVENT
// <bool name="RT_USING_MAILBOX" description="Using mailbox in the system" default="true" />
#define RT_USING_MAILBOX
#define RT_USING_MAILBOX
// <bool name="RT_USING_MESSAGEQUEUE" description="Using message queue in the system" default="true" />
#define RT_USING_MESSAGEQUEUE
#define RT_USING_MESSAGEQUEUE
// </section>
/* RT_USING_SIGNALS is not set */
/* Memory Management */
// <section name="MM" description="Memory Management" default="always" >
// <bool name="RT_USING_MEMPOOL" description="Using Memory Pool Management in the system" default="true" />
#define RT_USING_MEMPOOL
#define RT_USING_MEMPOOL
// <bool name="RT_USING_MEMHEAP" description="Using Memory Heap Object in the system" default="true" />
#define RT_USING_MEMHEAP
#define RT_USING_MEMHEAP
// <bool name="RT_USING_HEAP" description="Using Dynamic Heap Management in the system" default="true" />
#define RT_USING_HEAP
#define RT_USING_HEAP
// <bool name="RT_USING_SMALL_MEM" description="Optimizing for small memory" default="false" />
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM
/
/ <bool name="RT_USING_SLAB" description="Using SLAB memory management for large memory" default="false" />
/
* RT_USING_SLAB is not set */
// #define RT_USING_SLAB
/
/ </section>
/
* Kernel Device Object */
// <section name="RT_USING_DEVICE" description="Using Device Driver Framework" default="true" >
#define RT_USING_DEVICE
#define RT_USING_DEVICE
// <bool name=RT_USING_DEVICE_IPC description="Using IPC in Device Driver Framework" default="true" />
/* RT_USING_INTERRUPT_INFO is not set */
#define RT_USING_DEVICE_IPC
// <bool name="RT_USING_SERIAL" description="Using Serial Device Driver Framework" default="true" />
#define RT_USING_SERIAL
// <integer name="RT_UART_RX_BUFFER_SIZE" description="The buffer size for UART reception" default="64" />
#define RT_UART_RX_BUFFER_SIZE 2048
// <bool name="RT_USING_MTD_NAND" description="Using MTD NAND Framework" default="true" />
// #define RT_USING_MTD_NAND
// <bool name="RT_MTD_NAND_DEBUG" description="Enable MTD NAND Framework Debug" default="true" />
// #define RT_MTD_NAND_DEBUG
// <bool name="RT_USING_NFTL" description="Using NFTL layer" default="true" />
// #define RT_USING_NFTL
// <bool name="RT_USING_SPI" description="Using SPI Device Driver Framework" default="true" />
#define RT_USING_SPI
// <bool name="RT_USING_I2C" description="Using I2C Device Driver Framework" default="true" />
#define RT_USING_I2C
//#define RT_USING_I2C_BITOPS
// <bool name="RT_USING_RTC" description="Using RTC Device Driver Framework" default="true" />
#define RT_USING_RTC
// <integer name="RT_MMCSD_THREAD_PREORITY" description="The prority of mmcsd thread" default="15" />
#define RT_MMCSD_THREAD_PREORITY 15
// <section name="RT_USING_CONSOLE" description="Using console" default="true" >
#define RT_USING_CONSOLE
#define RT_USING_CONSOLE
// <integer name="RT_CONSOLEBUF_SIZE" description="The buffer size for console output" default="128" />
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLEBUF_SIZE 128
// <string name="RT_CONSOLE_DEVICE_NAME" description="The device name for console" default="uart" />
#define RT_CONSOLE_DEVICE_NAME "uart0"
#define RT_CONSOLE_DEVICE_NAME "uart0"
// </section>
/* RT_USING_MODULE is not set */
/* RT-Thread Components */
// <bool name="RT_USING_COMPONENTS_INIT" description="Using RT-Thread components initialization" default="true" />
#define RT_USING_COMPONENTS_INIT
#define RT_USING_COMPONENTS_INIT
// <section name="RT_USING_FINSH" description="Using finsh as shell, which is a C-Express shell" default="true" >
/* RT_USING_USER_MAIN is not set */
/* C++ features */
/* RT_USING_CPLUSPLUS is not set */
/* Command shell */
#define RT_USING_FINSH
#define RT_USING_FINSH
// <bool name="FINSH_USING_SYMTAB" description="Using symbol table in finsh shell" default="true" />
#define FINSH_USING_HISTORY
#define FINSH_USING_SYMTAB
#define FINSH_USING_SYMTAB
// <bool name="FINSH_USING_DESCRIPTION" description="Keeping description in symbol table" default="true" />
#define FINSH_USING_DESCRIPTION
#define FINSH_USING_DESCRIPTION
// <integer name="FINSH_THREAD_STACK_SIZE" description="The stack size for finsh thread" default="4096" />
#define FINSH_THREAD_PRIORITY 20
#define FINSH_THREAD_STACK_SIZE 4096
#define FINSH_THREAD_STACK_SIZE 4096
// <bool name="FINSH_USING_MSH" description="Using module shell in finsh" default="true" />
#define FINSH_CMD_SIZE 80
/* FINSH_USING_AUTH is not set */
#define FINSH_USING_MSH
#define FINSH_USING_MSH
// <bool name="FINSH_USING_MSH_DEFAULT" description="Using module shell as default shell" default="true" />
#define FINSH_USING_MSH_DEFAULT
#define FINSH_USING_MSH_DEFAULT
// <bool name="FINSH_USING_MSH_ONLY" description="Only using module shell" default="false" />
/* FINSH_USING_MSH_ONLY is not set */
// #define FINSH_USING_MSH_ONLY
// </section>
// <section name="LIBC" description="C Runtime library setting" default="always" >
/* Device virtual file system */
// <bool name="RT_USING_LIBC" description="Using libc library" default="true" />
#define RT_USING_LIBC
// <bool name="RT_USING_PTHREADS" description="Using POSIX threads library" default="true" />
#define RT_USING_PTHREADS
//#define RT_USING_CPLUSPLUS
// </section>
// <section name="RT_USING_DFS" description="Device file system" default="true" >
#define RT_USING_DFS
#define RT_USING_DFS
// <bool name="DFS_USING_WORKDIR" description="Using working directory" default="true" />
#define DFS_USING_WORKDIR
#define DFS_USING_WORKDIR
// <integer name="DFS_FILESYSTEM_TYPES_MAX" description="The maximal number of the supported file system type" default="4" />
#define DFS_FILESYSTEMS_MAX 2
#define DFS_FILESYSTEM_TYPES_MAX 4
#define DFS_FD_MAX 4
// <integer name="DFS_FILESYSTEMS_MAX" description="The maximal number of mounted file system" default="4" />
#define DFS_FILESYSTEMS_MAX 4
// <integer name="DFS_FD_MAX" description="The maximal number of opened files" default="4" />
#define DFS_FD_MAX 32
// <bool name="RT_USING_DFS_ELMFAT" description="Using ELM FatFs" default="true" />
#define RT_USING_DFS_ELMFAT
#define RT_USING_DFS_ELMFAT
// <integer name="RT_DFS_ELM_DRIVES" description="The maximal number of drives of FatFs" default="4" />
#define RT_DFS_ELM_DRIVES 4
/* elm-chan's FatFs, Generic FAT Filesystem Module */
// <bool name="RT_DFS_ELM_REENTRANT" description="Support reentrant" default="true" />
#define RT_DFS_ELM_REENTRANT
// <integer name="RT_DFS_ELM_USE_LFN" description="Support long file name" default="0">
// <item description="LFN with static LFN working buffer">1</item>
// <item description="LFN with dynamic LFN working buffer on the stack">2</item>
// <item description="LFN with dynamic LFN working buffer on the heap">3</item>
// </integer>
#define RT_DFS_ELM_USE_LFN 3
// <integer name="RT_DFS_ELM_CODE_PAGE" description="OEM code page" default="936">
#define RT_DFS_ELM_CODE_PAGE 437
#define RT_DFS_ELM_CODE_PAGE 437
// <bool name="RT_DFS_ELM_CODE_PAGE_FILE" description="Using OEM code page file" default="false" />
#define RT_DFS_ELM_WORD_ACCESS
#define RT_DFS_ELM_CODE_PAGE_FILE
#define RT_DFS_ELM_USE_LFN_0
// <integer name="RT_DFS_ELM_MAX_LFN" description="Maximal size of file name length" default="256" />
/* RT_DFS_ELM_USE_LFN_1 is not set */
#define RT_DFS_ELM_MAX_LFN 128
/* RT_DFS_ELM_USE_LFN_2 is not set */
// <integer name="RT_DFS_ELM_MAX_SECTOR_SIZE" description="Maximal size of sector" default="512" />
/* RT_DFS_ELM_USE_LFN_3 is not set */
#define RT_DFS_ELM_MAX_SECTOR_SIZE 4096
#define RT_DFS_ELM_USE_LFN 0
// <bool name="RT_DFS_ELM_USE_ERASE" description="Enable erase feature for flash" default="true" />
#define RT_DFS_ELM_MAX_LFN 255
// #define RT_DFS_ELM_USE_ERASE
#define RT_DFS_ELM_DRIVES 2
// <bool name="RT_USING_DFS_YAFFS2" description="Using YAFFS2" default="false" />
#define RT_DFS_ELM_MAX_SECTOR_SIZE 512
// #define RT_USING_DFS_YAFFS2
/* RT_DFS_ELM_USE_ERASE is not set */
// <bool name="RT_USING_DFS_UFFS" description="Using UFFS" default="false" />
#define RT_DFS_ELM_REENTRANT
// #define RT_USING_DFS_UFFS
/* RT_USING_DFS_DEVFS is not set */
// <bool name="RT_USING_DFS_DEVFS" description="Using devfs for device objects" default="true" />
/* RT_USING_DFS_NET is not set */
#define RT_USING_DFS_DEVFS
/* RT_USING_DFS_ROMFS is not set */
// <bool name="RT_USING_DFS_ROMFS" description="Using ROMFS" default="false" />
/* RT_USING_DFS_RAMFS is not set */
//#define RT_USING_DFS_ROMFS
/* RT_USING_DFS_UFFS is not set */
// <bool name="RT_USING_DFS_NFS" description="Using NFS" default="false" />
/* RT_USING_DFS_NFS is not set */
// #define RT_USING_DFS_NFS
// <string name="RT_NFS_HOST_EXPORT" description="The exported NFS host path" default="192.168.1.10:/" />
/* Device Drivers */
#define RT_NFS_HOST_EXPORT "192.168.1.20:/"
// </section>
#define RT_USING_DEVICE_IPC
#define RT_USING_SERIAL
// <section name="RT_USING_LWIP" description="lwip, a lightweight TCP/IP protocol stack" default="true" >
/* RT_USING_CAN is not set */
/* RT_USING_HWTIMER is not set */
#define RT_USING_I2C
#define RT_USING_I2C_BITOPS
#define RT_USING_PIN
/* RT_USING_MTD_NOR is not set */
#define RT_USING_MTD_NAND
/* RT_MTD_NAND_DEBUG is not set */
#define RT_USING_RTC
#define RT_USING_SDIO
#define RT_USING_SPI
/* RT_USING_SFUD is not set */
/* RT_USING_W25QXX is not set */
/* RT_USING_GD is not set */
#define RT_USING_ENC28J60
/* RT_USING_SPI_WIFI is not set */
/* RT_USING_WDT is not set */
/* RT_USING_USB_HOST is not set */
/* RT_USING_USB_DEVICE is not set */
/* POSIX layer and C standard library */
#define RT_USING_LIBC
#define RT_USING_PTHREADS
/* RT_USING_POSIX is not set */
/* Network stack */
/* light weight TCP/IP stack */
#define RT_USING_LWIP
#define RT_USING_LWIP
// <bool name="RT_USING_LWIP141" description="Using lwIP 1.4.1 version" default="true" />
#define RT_USING_LWIP141
#define RT_USING_LWIP141
// <bool name="RT_LWIP_ICMP" description="Enable ICMP protocol" default="true" />
/* RT_USING_LWIP202 is not set */
/* RT_LWIP_IGMP is not set */
#define RT_LWIP_ICMP
#define RT_LWIP_ICMP
// <bool name="RT_LWIP_IGMP" description="Enable IGMP protocol" default="false" />
/* RT_LWIP_SNMP is not set */
// #define RT_LWIP_IGMP
// <bool name="RT_LWIP_UDP" description="Enable UDP protocol" default="true" />
#define RT_LWIP_UDP
// <bool name="RT_LWIP_TCP" description="Enable TCP protocol" default="true" />
#define RT_LWIP_TCP
// <bool name="RT_LWIP_DNS" description="Enable DNS protocol" default="true" />
#define RT_LWIP_DNS
#define RT_LWIP_DNS
// <integer name="RT_LWIP_PBUF_NUM" description="Maximal number of buffers in the pbuf pool" default="4" />
#define RT_LWIP_DHCP
#define RT_LWIP_PBUF_NUM 8
#define IP_SOF_BROADCAST 1
// <integer name="RT_LWIP_TCP_PCB_NUM" description="Maximal number of simultaneously active TCP connections" default="5" />
#define IP_SOF_BROADCAST_RECV 1
#define RT_LWIP_TCP_PCB_NUM 8
/* LWIP_USING_DHCPD is not set */
// <integer name="RT_LWIP_TCP_SND_BUF" description="TCP sender buffer size" default="8192" />
#define RT_LWIP_TCP_SND_BUF 8192
/* Static IPv4 Address */
// <integer name="RT_LWIP_TCP_WND" description="TCP receive window" default="8192" />
#define RT_LWIP_TCP_WND 4096
// <bool name="RT_LWIP_SNMP" description="Enable SNMP protocol" default="false" />
// #define RT_LWIP_SNMP
// <bool name="RT_LWIP_DHCP" description="Enable DHCP client to get IP address" default="false" />
//#define RT_LWIP_DHCP
// <integer name="RT_LWIP_TCPTHREAD_PRIORITY" description="the thread priority of TCP thread" default="128" />
#define RT_LWIP_TCPTHREAD_PRIORITY 12
// <integer name="RT_LWIP_TCPTHREAD_MBOX_SIZE" description="the mail box size of TCP thread to wait for" default="32" />
#define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
// <integer name="RT_LWIP_TCPTHREAD_STACKSIZE" description="the thread stack size of TCP thread" default="4096" />
#define RT_LWIP_TCPTHREAD_STACKSIZE 4096
// <integer name="RT_LWIP_ETHTHREAD_PRIORITY" description="the thread priority of ethnetif thread" default="144" />
#define RT_LWIP_ETHTHREAD_PRIORITY 14
// <integer name="RT_LWIP_ETHTHREAD_MBOX_SIZE" description="the mail box size of ethnetif thread to wait for" default="8" />
#define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
// <integer name="RT_LWIP_ETHTHREAD_STACKSIZE" description="the stack size of ethnetif thread" default="512" />
#define RT_LWIP_ETHTHREAD_STACKSIZE 512
// <ipaddr name="RT_LWIP_IPADDR" description="IP address of device" default="192.168.1.30" />
#define RT_LWIP_IPADDR "192.168.1.30"
#define RT_LWIP_IPADDR "192.168.1.30"
// <ipaddr name="RT_LWIP_GWADDR" description="Gateway address of device" default="192.168.1.1" />
#define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_GWADDR "192.168.1.1"
// <ipaddr name="RT_LWIP_MSKADDR" description="Mask address of device" default="255.255.255.0" />
#define RT_LWIP_MSKADDR "255.255.255.0"
#define RT_LWIP_MSKADDR "255.255.255.0"
// </section>
#define RT_LWIP_UDP
#define RT_LWIP_TCP
// <section name="RT_USING_RTGUI" description="RT-Thread/GUI" default="true" >
/* RT_LWIP_RAW is not set */
//#define RT_USING_RTGUI
/* RT_LWIP_PPP is not set */
//#define RTGUI_USING_TTF
/* RT_LWIP_PPPOE is not set */
#define UTF8_TO_UNICODE
/* RT_LWIP_PPPOS is not set */
// <integer name="RTGUI_NAME_MAX" description="the name size of RT-Thread/GUI widget/objects" default="12" />
#define RT_LWIP_PBUF_NUM 16
#define RTGUI_NAME_MAX 12
#define RT_LWIP_RAW_PCB_NUM 4
// <integer name="RTGUI_SVR_THREAD_STACK_SIZE" description="The stack size of RTGUI server task." default="2048" />
#define RT_LWIP_UDP_PCB_NUM 4
#define RTGUI_SVR_THREAD_STACK_SIZE 16384
#define RT_LWIP_TCP_PCB_NUM 4
// <bool name="RTGUI_USING_SMALL_SIZE" description="use small size in RT-Thread/GUI" default="true" />
#define RT_LWIP_TCP_SEG_NUM 40
// #define RTGUI_USING_SMALL_SIZE
#define RT_LWIP_TCP_SND_BUF 8196
// <bool name="RTGUI_USING_FONT16" description="support 16 weight font" default="true" />
#define RT_LWIP_TCP_WND 8196
#define RTGUI_USING_FONT16
#define RT_LWIP_TCPTHREAD_PRIORITY 10
// <bool name="RTGUI_USING_FONT12" description="support 12 weight font" default="true" />
#define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
// #define RTGUI_USING_FONT12
#define RT_LWIP_TCPTHREAD_STACKSIZE 1024
// <bool name="RTGUI_USING_FONTHZ" description="support Chinese font" default="true" />
#define RT_LWIP_ETHTHREAD_PRIORITY 12
#define RTGUI_USING_FONTHZ
#define RT_LWIP_ETHTHREAD_STACKSIZE 1024
// <integer name="RTGUI_DEFAULT_FONT_SIZE" description="default font size in RT-Thread/GUI" default="16" />
#define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
#define RTGUI_DEFAULT_FONT_SIZE 16
/* RT_LWIP_REASSEMBLY_FRAG is not set */
// <bool name="RTGUI_USING_DFS_FILERW" description="use RT-Thread/DFS as file interface" default="true" />
#define LWIP_NETIF_STATUS_CALLBACK 1
#define RTGUI_USING_DFS_FILERW
#define SO_REUSE 1
// <bool name="RTGUI_USING_HZ_BMP" description="use Chinese font bitmap engine" default="true" />
#define LWIP_SO_RCVTIMEO 1
// #define RTGUI_USING_HZ_BMP
#define LWIP_SO_SNDTIMEO 1
// <bool name="RTGUI_USING_HZ_FILE" description="use font file as Chinese font" default="false" />
#define LWIP_SO_RCVBUF 1
#define RTGUI_USING_HZ_FILE
// <bool name="RTGUI_USING_MOUSE_CURSOR" description="use mouse cursor" default="false" />
/* Modbus master and slave stack */
// #define RTGUI_USING_MOUSE_CURSOR
// <bool name="RTGUI_IMAGE_XPM" description="support XPM image format" default="true" />
/* RT_USING_MODBUS is not set */
// #define RTGUI_IMAGE_XPM
/* RT_USING_NETUTILS is not set */
// <bool name="RTGUI_IMAGE_BMP" description="support BMP image format" default="true" />
// #define RTGUI_IMAGE_BMP
/* RT-Thread UI Engine */
// <bool name="RTGUI_IMAGE_JPEG" description="support JPEG image format with libjpg" default="false" />
// #define RTGUI_IMAGE_JPEG
/* RT_USING_GUIENGINE is not set */
// <bool name="RTGUI_IMAGE_TJPGD" description="support JPEG image format with TJPGD" default="true" />
// #define RTGUI_IMAGE_TJPGD
/* VBUS(Virtual Software BUS) */
// <bool name="RTGUI_IMAGE_PNG" description="support PNG image format with libpng" default="false" />
// #define RTGUI_IMAGE_PNG
/* RT_USING_VBUS is not set */
// <bool name="RTGUI_IMAGE_LODEPNG" description="support PNG image format with LodePNG" default="true" />
#define RTGUI_IMAGE_LODEPNG
/* RT-Thread online packages */
// <bool name="RTGUI_USING_NOTEBOOK_IMAGE" description="support notebook image" default="true" />
// #define RTGUI_USING_NOTEBOOK_IMAGE
/* system packages */
// <bool name="RTGUI_USING_HW_CURSOR" description="Using hardware cursor in RTGUI" default="true" />
//#define RTGUI_USING_HW_CURSOR
/* PKG_USING_PARTITION is not set */
// <bool name="RTGUI_USING_CALI" description="Using calibration application in rtGUI" default="true" />
/* PKG_USING_SQLITE is not set */
// #define RTGUI_USING_CALI
#define RTGUI_IMAGE_CONTAINER
/* IoT - internet of things */
// </section>
/* PKG_USING_PAHOMQTT is not set */
// </RDTConfigurator>
/* PKG_USING_WEBCLIENT is not set */
/* PKG_USING_MONGOOSE is not set */
/* PKG_USING_WEBTERMINAL is not set */
/* PKG_USING_CJSON is not set */
/* PKG_USING_EZXML is not set */
/* Marvell WiFi */
/* PKG_USING_MARVELLWIFI is not set */
/* security packages */
/* PKG_USING_MBEDTLS is not set */
/* language packages */
/* PKG_USING_JERRYSCRIPT is not set */
/* multimedia packages */
/* PKG_USING_FASTLZ is not set */
/* tools packages */
/* PKG_USING_CMBACKTRACE is not set */
/* PKG_USING_EASYLOGGER is not set */
/* PKG_USING_SYSTEMVIEW is not set */
/* miscellaneous packages */
/* PKG_USING_HELLO is not set */
#define RT_USING_UART0
#define USE_EXT_SDRAM
#endif
#endif
components/dfs/filesystems/nfs/rpc/clnt_generic.c
浏览文件 @
e79f9e6b
...
@@ -50,7 +50,7 @@ CLIENT *clnt_create (const char *hostname, const unsigned long prog,
...
@@ -50,7 +50,7 @@ CLIENT *clnt_create (const char *hostname, const unsigned long prog,
struct
timeval
tv
;
struct
timeval
tv
;
CLIENT
*
client
;
CLIENT
*
client
;
h
=
gethostbyname
(
hostname
);
h
=
(
struct
hostent
*
)
gethostbyname
(
hostname
);
if
(
h
==
NULL
)
{
if
(
h
==
NULL
)
{
rt_kprintf
(
"unknown host
\n
"
);
rt_kprintf
(
"unknown host
\n
"
);
return
(
NULL
);
return
(
NULL
);
...
...
components/net/freemodbus/port/port.h
浏览文件 @
e79f9e6b
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
#ifndef _PORT_H
#ifndef _PORT_H
#define _PORT_H
#define _PORT_H
#include <stm32f10x_conf.h>
#include "mbconfig.h"
#include "mbconfig.h"
#include <rthw.h>
#include <rthw.h>
#include <rtthread.h>
#include <rtthread.h>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录