[bsp][v2m-mps2] add pin device support and update project files

This commit is contained in:
liang yongxiang 2018-03-25 22:10:34 +08:00
parent 228c820e4d
commit d43e20676f
6 changed files with 3103 additions and 198 deletions

View File

@ -76,6 +76,7 @@ CONFIG_FINSH_USING_HISTORY=y
CONFIG_FINSH_HISTORY_LINES=5 CONFIG_FINSH_HISTORY_LINES=5
CONFIG_FINSH_USING_SYMTAB=y CONFIG_FINSH_USING_SYMTAB=y
CONFIG_FINSH_USING_DESCRIPTION=y CONFIG_FINSH_USING_DESCRIPTION=y
# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set
CONFIG_FINSH_THREAD_PRIORITY=20 CONFIG_FINSH_THREAD_PRIORITY=20
CONFIG_FINSH_THREAD_STACK_SIZE=4096 CONFIG_FINSH_THREAD_STACK_SIZE=4096
CONFIG_FINSH_CMD_SIZE=80 CONFIG_FINSH_CMD_SIZE=80
@ -98,7 +99,7 @@ CONFIG_RT_USING_SERIAL=y
# CONFIG_RT_USING_HWTIMER is not set # CONFIG_RT_USING_HWTIMER is not set
# CONFIG_RT_USING_CPUTIME is not set # CONFIG_RT_USING_CPUTIME is not set
# CONFIG_RT_USING_I2C is not set # CONFIG_RT_USING_I2C is not set
# CONFIG_RT_USING_PIN is not set CONFIG_RT_USING_PIN=y
# CONFIG_RT_USING_MTD_NOR is not set # CONFIG_RT_USING_MTD_NOR is not set
# CONFIG_RT_USING_MTD_NAND is not set # CONFIG_RT_USING_MTD_NAND is not set
# CONFIG_RT_USING_RTC is not set # CONFIG_RT_USING_RTC is not set
@ -118,6 +119,7 @@ CONFIG_RT_USING_SERIAL=y
# #
CONFIG_RT_USING_LIBC=y CONFIG_RT_USING_LIBC=y
# CONFIG_RT_USING_PTHREADS is not set # CONFIG_RT_USING_PTHREADS is not set
# CONFIG_HAVE_SYS_SIGNALS is not set
# #
# Network stack # Network stack
@ -133,11 +135,6 @@ CONFIG_RT_USING_LIBC=y
# #
# CONFIG_RT_USING_MODBUS is not set # CONFIG_RT_USING_MODBUS is not set
#
# RT-Thread UI Engine
#
# CONFIG_PKG_USING_GUIENGINE is not set
# #
# VBUS(Virtual Software BUS) # VBUS(Virtual Software BUS)
# #
@ -162,8 +159,14 @@ CONFIG_RT_USING_LIBC=y
# #
# system packages # system packages
# #
# CONFIG_PKG_USING_PARTITION is not set
#
# RT-Thread GUI Engine
#
# CONFIG_PKG_USING_GUIENGINE is not set
# CONFIG_PKG_USING_PERSIMMON is not set # CONFIG_PKG_USING_PERSIMMON is not set
# CONFIG_PKG_USING_LWEXT4 is not set
# CONFIG_PKG_USING_PARTITION is not set
# CONFIG_PKG_USING_SQLITE is not set # CONFIG_PKG_USING_SQLITE is not set
# CONFIG_PKG_USING_RTI is not set # CONFIG_PKG_USING_RTI is not set
@ -194,6 +197,8 @@ CONFIG_RT_USING_LIBC=y
# #
# CONFIG_PKG_USING_WLAN_WICED is not set # CONFIG_PKG_USING_WLAN_WICED is not set
# CONFIG_PKG_USING_COAP is not set # CONFIG_PKG_USING_COAP is not set
# CONFIG_PKG_USING_NOPOLL is not set
# CONFIG_PKG_USING_NETUTILS is not set
# #
# security packages # security packages
@ -206,7 +211,43 @@ CONFIG_RT_USING_LIBC=y
# language packages # language packages
# #
# CONFIG_PKG_USING_JERRYSCRIPT is not set # CONFIG_PKG_USING_JERRYSCRIPT is not set
# CONFIG_PKG_USING_MICROPYTHON is not set CONFIG_PKG_USING_MICROPYTHON=y
CONFIG_PKG_MICROPYTHON_PATH="/packages/language/micropython"
#
# System Module
#
# CONFIG_MICROPYTHON_USING_UOS is not set
# CONFIG_MICROPYTHON_USING_USELECT is not set
# CONFIG_MICROPYTHON_USING_UCTYPES is not set
# CONFIG_MICROPYTHON_USING_UERRNO is not set
#
# Tools Module
#
# CONFIG_MICROPYTHON_USING_CMATH is not set
# CONFIG_MICROPYTHON_USING_UBINASCII is not set
# CONFIG_MICROPYTHON_USING_UHASHLIB is not set
# CONFIG_MICROPYTHON_USING_UHEAPQ is not set
# CONFIG_MICROPYTHON_USING_UJSON is not set
# CONFIG_MICROPYTHON_USING_URE is not set
# CONFIG_MICROPYTHON_USING_UZLIB is not set
# CONFIG_MICROPYTHON_USING_URANDOM is not set
#
# Network Module
#
# CONFIG_MICROPYTHON_USING_USOCKET is not set
#
# Hardware Module
#
# CONFIG_MICROPYTHON_USING_MACHINE_I2C is not set
# CONFIG_MICROPYTHON_USING_MACHINE_SPI is not set
CONFIG_PKG_MICROPYTHON_HEAP_SIZE=8192
CONFIG_PKG_USING_MICROPYTHON_LATEST_VERSION=y
# CONFIG_PKG_USING_MICROPYTHON_V10903 is not set
CONFIG_PKG_MICROPYTHON_VER="latest"
# #
# multimedia packages # multimedia packages
@ -217,6 +258,7 @@ CONFIG_RT_USING_LIBC=y
# tools packages # tools packages
# #
# CONFIG_PKG_USING_CMBACKTRACE is not set # CONFIG_PKG_USING_CMBACKTRACE is not set
# CONFIG_PKG_USING_EASYFLASH is not set
# CONFIG_PKG_USING_EASYLOGGER is not set # CONFIG_PKG_USING_EASYLOGGER is not set
# CONFIG_PKG_USING_SYSTEMVIEW is not set # CONFIG_PKG_USING_SYSTEMVIEW is not set
# CONFIG_PKG_USING_IPERF is not set # CONFIG_PKG_USING_IPERF is not set
@ -226,6 +268,8 @@ CONFIG_RT_USING_LIBC=y
# #
# CONFIG_PKG_USING_FASTLZ is not set # CONFIG_PKG_USING_FASTLZ is not set
# CONFIG_PKG_USING_MINILZO is not set # CONFIG_PKG_USING_MINILZO is not set
# CONFIG_PKG_USING_QUICKLZ is not set
# CONFIG_PKG_USING_MULTIBUTTON is not set
# #
# example package: hello # example package: hello
@ -243,10 +287,6 @@ CONFIG_RT_USING_LIBC=y
# Network Utilities # Network Utilities
# #
# CONFIG_PKG_USING_WLAN_WICED_SRC is not set # CONFIG_PKG_USING_WLAN_WICED_SRC is not set
#
# Cloudsdk: RT_thread IOT Cloudsdk
#
# CONFIG_PKG_USING_CLOUDSDK is not set # CONFIG_PKG_USING_CLOUDSDK is not set
# #
@ -255,6 +295,7 @@ CONFIG_RT_USING_LIBC=y
# CONFIG_PKG_USING_WEBNET is not set # CONFIG_PKG_USING_WEBNET is not set
# CONFIG_PKG_USING_COREMARK is not set # CONFIG_PKG_USING_COREMARK is not set
# CONFIG_PKG_USING_POWER_MANAGER is not set # CONFIG_PKG_USING_POWER_MANAGER is not set
# CONFIG_PKG_USING_RT_OTA is not set
CONFIG_SOC_V2M_MPS2=y CONFIG_SOC_V2M_MPS2=y
CONFIG_RT_USING_UART=y CONFIG_RT_USING_UART=y
CONFIG_RT_USING_UART0=y CONFIG_RT_USING_UART0=y

View File

@ -11,6 +11,9 @@ drv_uart.c
CPPPATH = [cwd] CPPPATH = [cwd]
CPPDEFINES = [] CPPDEFINES = []
if GetDepend('RT_USING_PIN'):
src += ['drv_pin.c']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES) group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
Return('group') Return('group')

View File

@ -0,0 +1,89 @@
/*
* File : drv_pin.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006-2013, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date Author Notes
* 2018-03-25 Tanek the first version.
*/
#include <rtthread.h>
#include <rthw.h>
#include <drivers/pin.h>
#include <SMM_MPS2.h>
#ifdef RT_USING_PIN
// pin 0 ~ 7 : switch 0 ~ 7
// pin 8 ~ 15 : user led 0 ~ 7
static void v2m_pin_mode(rt_device_t dev, rt_base_t pin, rt_base_t mode)
{
return ;
}
static int v2m_pin_read(rt_device_t dev, rt_base_t pin)
{
RT_ASSERT(dev != RT_NULL);
if (0 <= pin && pin <= 7)
{
return !!(MPS2_SCC->CFG_REG3 & (0x01 << pin)); // switchs
}
else if (8 <= pin && pin <= 15)
{
return !!(MPS2_SCC->CFG_REG1 & (0x01 << (pin - 8))); // leds
}
else
{
RT_ASSERT(RT_NULL);
return 0;
}
}
static void v2m_pin_write(rt_device_t dev, rt_base_t pin, rt_base_t value)
{
RT_ASSERT(dev != RT_NULL);
if (8 <= pin && pin <= 15)
{
rt_uint32_t reg = MPS2_SCC->CFG_REG1;
if (value)
reg |= 1 << (pin - 8);
else
reg &= ~(1 << (pin - 8));
MPS2_SCC->CFG_REG1 = reg;
}
else
{
RT_ASSERT(RT_NULL);
}
}
int rt_hw_pin_init(void)
{
int ret = RT_EOK;
static const struct rt_pin_ops v2m_pin_ops =
{
v2m_pin_mode,
v2m_pin_write,
v2m_pin_read,
RT_NULL,
RT_NULL,
RT_NULL
};
ret = rt_device_pin_register("pin", &v2m_pin_ops, RT_NULL);
return ret;
}
INIT_BOARD_EXPORT(rt_hw_pin_init);
#endif /*RT_USING_PIN */

File diff suppressed because it is too large Load Diff

View File

@ -336,7 +336,7 @@
<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>RT_USING_ARM_LIBC</Define> <Define>RT_USING_ARM_LIBC</Define>
<Undefine></Undefine> <Undefine></Undefine>
<IncludePath>applications;.;drivers;..\..\include;..\..\libcpu\arm\cortex-m7;..\..\libcpu\arm\common;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh;..\..\components\libc\compilers\armlibc</IncludePath> <IncludePath>applications;.;drivers;packages\micropython;packages\micropython\port;packages\micropython\lib\netutils;..\..\include;..\..\libcpu\arm\cortex-m7;..\..\libcpu\arm\common;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh;..\..\components\libc\compilers\armlibc</IncludePath>
</VariousControls> </VariousControls>
</Cads> </Cads>
<Aads> <Aads>
@ -400,6 +400,879 @@
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>drivers\drv_uart.c</FilePath> <FilePath>drivers\drv_uart.c</FilePath>
</File> </File>
<File>
<FileName>drv_pin.c</FileName>
<FileType>1</FileType>
<FilePath>drivers\drv_pin.c</FilePath>
</File>
</Files>
</Group>
<Group>
<GroupName>MicroPython</GroupName>
<GroupOption>
<CommonProperty>
<UseCPPCompiler>0</UseCPPCompiler>
<RVCTCodeConst>0</RVCTCodeConst>
<RVCTZI>0</RVCTZI>
<RVCTOtherData>0</RVCTOtherData>
<ModuleSelection>0</ModuleSelection>
<IncludeInBuild>1</IncludeInBuild>
<AlwaysBuild>0</AlwaysBuild>
<GenerateAssemblyFile>0</GenerateAssemblyFile>
<AssembleAssemblyFile>0</AssembleAssemblyFile>
<PublicsOnly>0</PublicsOnly>
<StopOnExitCode>3</StopOnExitCode>
<CustomArgument></CustomArgument>
<IncludeLibraryModules></IncludeLibraryModules>
<ComprImg>0</ComprImg>
</CommonProperty>
<GroupArmAds>
<Cads>
<interw>2</interw>
<Optim>0</Optim>
<oTime>2</oTime>
<SplitLS>2</SplitLS>
<OneElfS>2</OneElfS>
<Strict>2</Strict>
<EnumInt>2</EnumInt>
<PlainCh>2</PlainCh>
<Ropi>2</Ropi>
<Rwpi>2</Rwpi>
<wLevel>0</wLevel>
<uThumb>2</uThumb>
<uSurpInc>2</uSurpInc>
<uC99>2</uC99>
<useXO>2</useXO>
<v6Lang>0</v6Lang>
<v6LangP>0</v6LangP>
<vShortEn>2</vShortEn>
<vShortWch>2</vShortWch>
<v6Lto>2</v6Lto>
<v6WtE>2</v6WtE>
<v6Rtti>2</v6Rtti>
<VariousControls>
<MiscControls> --c99 --gnu</MiscControls>
<Define> </Define>
<Undefine> </Undefine>
<IncludePath></IncludePath>
</VariousControls>
</Cads>
<Aads>
<interw>2</interw>
<Ropi>2</Ropi>
<Rwpi>2</Rwpi>
<thumb>2</thumb>
<SplitLS>2</SplitLS>
<SwStkChk>2</SwStkChk>
<NoWarn>2</NoWarn>
<uSurpInc>2</uSurpInc>
<useXO>2</useXO>
<uClangAs>2</uClangAs>
<VariousControls>
<MiscControls></MiscControls>
<Define></Define>
<Undefine></Undefine>
<IncludePath></IncludePath>
</VariousControls>
</Aads>
</GroupArmAds>
</GroupOption>
<Files>
<File>
<FileName>argcheck.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\argcheck.c</FilePath>
</File>
<File>
<FileName>asmarm.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\asmarm.c</FilePath>
</File>
<File>
<FileName>asmbase.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\asmbase.c</FilePath>
</File>
<File>
<FileName>asmthumb.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\asmthumb.c</FilePath>
</File>
<File>
<FileName>asmx64.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\asmx64.c</FilePath>
</File>
<File>
<FileName>asmx86.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\asmx86.c</FilePath>
</File>
<File>
<FileName>asmxtensa.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\asmxtensa.c</FilePath>
</File>
<File>
<FileName>bc.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\bc.c</FilePath>
</File>
<File>
<FileName>binary.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\binary.c</FilePath>
</File>
<File>
<FileName>builtinevex.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\builtinevex.c</FilePath>
</File>
<File>
<FileName>builtinhelp.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\builtinhelp.c</FilePath>
</File>
<File>
<FileName>builtinimport.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\builtinimport.c</FilePath>
</File>
<File>
<FileName>compile.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\compile.c</FilePath>
</File>
<File>
<FileName>emitbc.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\emitbc.c</FilePath>
</File>
<File>
<FileName>emitcommon.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\emitcommon.c</FilePath>
</File>
<File>
<FileName>emitglue.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\emitglue.c</FilePath>
</File>
<File>
<FileName>emitinlinethumb.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\emitinlinethumb.c</FilePath>
</File>
<File>
<FileName>emitinlinextensa.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\emitinlinextensa.c</FilePath>
</File>
<File>
<FileName>emitnative.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\emitnative.c</FilePath>
</File>
<File>
<FileName>formatfloat.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\formatfloat.c</FilePath>
</File>
<File>
<FileName>frozenmod.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\frozenmod.c</FilePath>
</File>
<File>
<FileName>gc.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\gc.c</FilePath>
</File>
<File>
<FileName>lexer.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\lexer.c</FilePath>
</File>
<File>
<FileName>malloc.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\malloc.c</FilePath>
</File>
<File>
<FileName>map.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\map.c</FilePath>
</File>
<File>
<FileName>modarray.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\modarray.c</FilePath>
</File>
<File>
<FileName>modbuiltins.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\modbuiltins.c</FilePath>
</File>
<File>
<FileName>modcmath.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\modcmath.c</FilePath>
</File>
<File>
<FileName>modcollections.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\modcollections.c</FilePath>
</File>
<File>
<FileName>modgc.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\modgc.c</FilePath>
</File>
<File>
<FileName>modio.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\modio.c</FilePath>
</File>
<File>
<FileName>modmath.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\modmath.c</FilePath>
</File>
<File>
<FileName>modmicropython.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\modmicropython.c</FilePath>
</File>
<File>
<FileName>modstruct.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\modstruct.c</FilePath>
</File>
<File>
<FileName>modsys.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\modsys.c</FilePath>
</File>
<File>
<FileName>modthread.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\modthread.c</FilePath>
</File>
<File>
<FileName>moduerrno.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\moduerrno.c</FilePath>
</File>
<File>
<FileName>mpprint.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\mpprint.c</FilePath>
</File>
<File>
<FileName>mpstate.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\mpstate.c</FilePath>
</File>
<File>
<FileName>mpy_scheduler.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\mpy_scheduler.c</FilePath>
</File>
<File>
<FileName>mpz.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\mpz.c</FilePath>
</File>
<File>
<FileName>nativeglue.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\nativeglue.c</FilePath>
</File>
<File>
<FileName>nlr.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\nlr.c</FilePath>
</File>
<File>
<FileName>nlrsetjmp.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\nlrsetjmp.c</FilePath>
</File>
<File>
<FileName>nlrthumb.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\nlrthumb.c</FilePath>
</File>
<File>
<FileName>nlrx64.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\nlrx64.c</FilePath>
</File>
<File>
<FileName>nlrx86.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\nlrx86.c</FilePath>
</File>
<File>
<FileName>nlrxtensa.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\nlrxtensa.c</FilePath>
</File>
<File>
<FileName>obj.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\obj.c</FilePath>
</File>
<File>
<FileName>objarray.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objarray.c</FilePath>
</File>
<File>
<FileName>objattrtuple.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objattrtuple.c</FilePath>
</File>
<File>
<FileName>objbool.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objbool.c</FilePath>
</File>
<File>
<FileName>objboundmeth.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objboundmeth.c</FilePath>
</File>
<File>
<FileName>objcell.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objcell.c</FilePath>
</File>
<File>
<FileName>objclosure.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objclosure.c</FilePath>
</File>
<File>
<FileName>objcomplex.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objcomplex.c</FilePath>
</File>
<File>
<FileName>objdeque.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objdeque.c</FilePath>
</File>
<File>
<FileName>objdict.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objdict.c</FilePath>
</File>
<File>
<FileName>objenumerate.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objenumerate.c</FilePath>
</File>
<File>
<FileName>objexcept.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objexcept.c</FilePath>
</File>
<File>
<FileName>objfilter.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objfilter.c</FilePath>
</File>
<File>
<FileName>objfloat.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objfloat.c</FilePath>
</File>
<File>
<FileName>objfun.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objfun.c</FilePath>
</File>
<File>
<FileName>objgenerator.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objgenerator.c</FilePath>
</File>
<File>
<FileName>objgetitemiter.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objgetitemiter.c</FilePath>
</File>
<File>
<FileName>objint.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objint.c</FilePath>
</File>
<File>
<FileName>objint_longlong.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objint_longlong.c</FilePath>
</File>
<File>
<FileName>objint_mpz.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objint_mpz.c</FilePath>
</File>
<File>
<FileName>objlist.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objlist.c</FilePath>
</File>
<File>
<FileName>objmap.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objmap.c</FilePath>
</File>
<File>
<FileName>objmodule.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objmodule.c</FilePath>
</File>
<File>
<FileName>objnamedtuple.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objnamedtuple.c</FilePath>
</File>
<File>
<FileName>objnone.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objnone.c</FilePath>
</File>
<File>
<FileName>objobject.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objobject.c</FilePath>
</File>
<File>
<FileName>objpolyiter.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objpolyiter.c</FilePath>
</File>
<File>
<FileName>objproperty.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objproperty.c</FilePath>
</File>
<File>
<FileName>objrange.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objrange.c</FilePath>
</File>
<File>
<FileName>objreversed.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objreversed.c</FilePath>
</File>
<File>
<FileName>objset.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objset.c</FilePath>
</File>
<File>
<FileName>objsingleton.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objsingleton.c</FilePath>
</File>
<File>
<FileName>objslice.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objslice.c</FilePath>
</File>
<File>
<FileName>objstr.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objstr.c</FilePath>
</File>
<File>
<FileName>objstringio.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objstringio.c</FilePath>
</File>
<File>
<FileName>objstrunicode.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objstrunicode.c</FilePath>
</File>
<File>
<FileName>objtuple.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objtuple.c</FilePath>
</File>
<File>
<FileName>objtype.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objtype.c</FilePath>
</File>
<File>
<FileName>objzip.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\objzip.c</FilePath>
</File>
<File>
<FileName>opmethods.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\opmethods.c</FilePath>
</File>
<File>
<FileName>parse.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\parse.c</FilePath>
</File>
<File>
<FileName>parsenum.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\parsenum.c</FilePath>
</File>
<File>
<FileName>parsenumbase.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\parsenumbase.c</FilePath>
</File>
<File>
<FileName>persistentcode.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\persistentcode.c</FilePath>
</File>
<File>
<FileName>pystack.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\pystack.c</FilePath>
</File>
<File>
<FileName>qstr.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\qstr.c</FilePath>
</File>
<File>
<FileName>reader.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\reader.c</FilePath>
</File>
<File>
<FileName>repl.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\repl.c</FilePath>
</File>
<File>
<FileName>runtime.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\runtime.c</FilePath>
</File>
<File>
<FileName>runtime_utils.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\runtime_utils.c</FilePath>
</File>
<File>
<FileName>scope.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\scope.c</FilePath>
</File>
<File>
<FileName>sequence.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\sequence.c</FilePath>
</File>
<File>
<FileName>showbc.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\showbc.c</FilePath>
</File>
<File>
<FileName>smallint.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\smallint.c</FilePath>
</File>
<File>
<FileName>stackctrl.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\stackctrl.c</FilePath>
</File>
<File>
<FileName>stream.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\stream.c</FilePath>
</File>
<File>
<FileName>unicode.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\unicode.c</FilePath>
</File>
<File>
<FileName>vm.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\vm.c</FilePath>
</File>
<File>
<FileName>vstr.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\vstr.c</FilePath>
</File>
<File>
<FileName>warning.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\py\warning.c</FilePath>
</File>
<File>
<FileName>readline.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\lib\mp-readline\readline.c</FilePath>
</File>
<File>
<FileName>interrupt_char.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\lib\utils\interrupt_char.c</FilePath>
</File>
<File>
<FileName>printf.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\lib\utils\printf.c</FilePath>
</File>
<File>
<FileName>pyexec.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\lib\utils\pyexec.c</FilePath>
</File>
<File>
<FileName>stdout_helpers.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\lib\utils\stdout_helpers.c</FilePath>
</File>
<File>
<FileName>machine_i2c.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\machine_i2c.c</FilePath>
</File>
<File>
<FileName>machine_mem.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\machine_mem.c</FilePath>
</File>
<File>
<FileName>machine_pinbase.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\machine_pinbase.c</FilePath>
</File>
<File>
<FileName>machine_pulse.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\machine_pulse.c</FilePath>
</File>
<File>
<FileName>machine_signal.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\machine_signal.c</FilePath>
</File>
<File>
<FileName>machine_spi.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\machine_spi.c</FilePath>
</File>
<File>
<FileName>modbtree.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\modbtree.c</FilePath>
</File>
<File>
<FileName>modframebuf.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\modframebuf.c</FilePath>
</File>
<File>
<FileName>modubinascii.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\modubinascii.c</FilePath>
</File>
<File>
<FileName>moductypes.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\moductypes.c</FilePath>
</File>
<File>
<FileName>moduhashlib.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\moduhashlib.c</FilePath>
</File>
<File>
<FileName>moduheapq.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\moduheapq.c</FilePath>
</File>
<File>
<FileName>modujson.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\modujson.c</FilePath>
</File>
<File>
<FileName>modurandom.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\modurandom.c</FilePath>
</File>
<File>
<FileName>modure.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\modure.c</FilePath>
</File>
<File>
<FileName>moduselect.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\moduselect.c</FilePath>
</File>
<File>
<FileName>modussl_axtls.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\modussl_axtls.c</FilePath>
</File>
<File>
<FileName>modussl_mbedtls.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\modussl_mbedtls.c</FilePath>
</File>
<File>
<FileName>modutimeq.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\modutimeq.c</FilePath>
</File>
<File>
<FileName>moduzlib.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\moduzlib.c</FilePath>
</File>
<File>
<FileName>modwebrepl.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\modwebrepl.c</FilePath>
</File>
<File>
<FileName>modwebsocket.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\modwebsocket.c</FilePath>
</File>
<File>
<FileName>uos_dupterm.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\uos_dupterm.c</FilePath>
</File>
<File>
<FileName>utime_mphal.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\utime_mphal.c</FilePath>
</File>
<File>
<FileName>vfs.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\vfs.c</FilePath>
</File>
<File>
<FileName>vfs_fat.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\vfs_fat.c</FilePath>
</File>
<File>
<FileName>vfs_fat_diskio.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\vfs_fat_diskio.c</FilePath>
</File>
<File>
<FileName>vfs_fat_file.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\vfs_fat_file.c</FilePath>
</File>
<File>
<FileName>vfs_reader.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\vfs_reader.c</FilePath>
</File>
<File>
<FileName>virtpin.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\extmod\virtpin.c</FilePath>
</File>
<File>
<FileName>_frozen_mpy.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\port\_frozen_mpy.c</FilePath>
</File>
<File>
<FileName>file.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\port\file.c</FilePath>
</File>
<File>
<FileName>help.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\port\help.c</FilePath>
</File>
<File>
<FileName>machine_pin.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\port\machine_pin.c</FilePath>
</File>
<File>
<FileName>modmachine.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\port\modmachine.c</FilePath>
</File>
<File>
<FileName>modnetwork.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\port\modnetwork.c</FilePath>
</File>
<File>
<FileName>modpyb.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\port\modpyb.c</FilePath>
</File>
<File>
<FileName>modrtthread.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\port\modrtthread.c</FilePath>
</File>
<File>
<FileName>moduos.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\port\moduos.c</FilePath>
</File>
<File>
<FileName>moduos_file.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\port\moduos_file.c</FilePath>
</File>
<File>
<FileName>modusocket.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\port\modusocket.c</FilePath>
</File>
<File>
<FileName>modutime.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\port\modutime.c</FilePath>
</File>
<File>
<FileName>mpy_main.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\port\mpy_main.c</FilePath>
</File>
<File>
<FileName>rtt_getchar.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\port\rtt_getchar.c</FilePath>
</File>
<File>
<FileName>uart_core.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\port\uart_core.c</FilePath>
</File>
<File>
<FileName>netutils.c</FileName>
<FileType>1</FileType>
<FilePath>packages\micropython\lib\netutils\netutils.c</FilePath>
</File>
</Files> </Files>
</Group> </Group>
<Group> <Group>
@ -505,6 +1378,11 @@
<Group> <Group>
<GroupName>DeviceDrivers</GroupName> <GroupName>DeviceDrivers</GroupName>
<Files> <Files>
<File>
<FileName>pin.c</FileName>
<FileType>1</FileType>
<FilePath>..\..\components\drivers\misc\pin.c</FilePath>
</File>
<File> <File>
<FileName>serial.c</FileName> <FileName>serial.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>

View File

@ -8,9 +8,7 @@
#define RT_NAME_MAX 8 #define RT_NAME_MAX 8
#define RT_ALIGN_SIZE 4 #define RT_ALIGN_SIZE 4
/* RT_THREAD_PRIORITY_8 is not set */
#define RT_THREAD_PRIORITY_32 #define RT_THREAD_PRIORITY_32
/* RT_THREAD_PRIORITY_256 is not set */
#define RT_THREAD_PRIORITY_MAX 32 #define RT_THREAD_PRIORITY_MAX 32
#define RT_TICK_PER_SECOND 100 #define RT_TICK_PER_SECOND 100
#define RT_DEBUG #define RT_DEBUG
@ -19,7 +17,6 @@
#define RT_DEBUG_THREAD 0 #define RT_DEBUG_THREAD 0
#define RT_USING_HOOK #define RT_USING_HOOK
#define IDLE_THREAD_STACK_SIZE 256 #define IDLE_THREAD_STACK_SIZE 256
/* RT_USING_TIMER_SOFT is not set */
/* Inter-Thread communication */ /* Inter-Thread communication */
@ -28,26 +25,19 @@
#define RT_USING_EVENT #define RT_USING_EVENT
#define RT_USING_MAILBOX #define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE #define RT_USING_MESSAGEQUEUE
/* RT_USING_SIGNALS is not set */
/* Memory Management */ /* Memory Management */
/* RT_USING_MEMPOOL is not set */
#define RT_USING_MEMHEAP #define RT_USING_MEMHEAP
/* RT_USING_NOHEAP is not set */
/* RT_USING_SMALL_MEM is not set */
/* RT_USING_SLAB is not set */
#define RT_USING_MEMHEAP_AS_HEAP #define RT_USING_MEMHEAP_AS_HEAP
#define RT_USING_HEAP #define RT_USING_HEAP
/* Kernel Device Object */ /* Kernel Device Object */
#define RT_USING_DEVICE #define RT_USING_DEVICE
/* RT_USING_INTERRUPT_INFO is not set */
#define RT_USING_CONSOLE #define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128 #define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart0" #define RT_CONSOLE_DEVICE_NAME "uart0"
/* RT_USING_MODULE is not set */
#define ARCH_ARM #define ARCH_ARM
#define ARCH_ARM_CORTEX_M #define ARCH_ARM_CORTEX_M
#define ARCH_ARM_CORTEX_M7 #define ARCH_ARM_CORTEX_M7
@ -60,7 +50,6 @@
/* C++ features */ /* C++ features */
/* RT_USING_CPLUSPLUS is not set */
/* Command shell */ /* Command shell */
@ -73,152 +62,100 @@
#define FINSH_THREAD_PRIORITY 20 #define FINSH_THREAD_PRIORITY 20
#define FINSH_THREAD_STACK_SIZE 4096 #define FINSH_THREAD_STACK_SIZE 4096
#define FINSH_CMD_SIZE 80 #define FINSH_CMD_SIZE 80
/* FINSH_USING_AUTH is not set */
#define FINSH_USING_MSH #define FINSH_USING_MSH
/* FINSH_USING_MSH_DEFAULT is not set */
/* FINSH_USING_MSH_ONLY is not set */
/* Device virtual file system */ /* Device virtual file system */
/* RT_USING_DFS is not set */
/* Device Drivers */ /* Device Drivers */
#define RT_USING_DEVICE_IPC #define RT_USING_DEVICE_IPC
#define RT_USING_SERIAL #define RT_USING_SERIAL
/* RT_USING_CAN is not set */ #define RT_USING_PIN
/* RT_USING_HWTIMER is not set */
/* RT_USING_CPUTIME is not set */
/* RT_USING_I2C is not set */
/* RT_USING_PIN is not set */
/* RT_USING_MTD_NOR is not set */
/* RT_USING_MTD_NAND is not set */
/* RT_USING_RTC is not set */
/* RT_USING_SDIO is not set */
/* RT_USING_SPI is not set */
/* RT_USING_WDT is not set */
/* RT_USING_WIFI is not set */
/* Using USB */ /* Using USB */
/* RT_USING_USB_HOST is not set */
/* RT_USING_USB_DEVICE is not set */
/* POSIX layer and C standard library */ /* POSIX layer and C standard library */
#define RT_USING_LIBC #define RT_USING_LIBC
/* RT_USING_PTHREADS is not set */
/* Network stack */ /* Network stack */
/* light weight TCP/IP stack */ /* light weight TCP/IP stack */
/* RT_USING_LWIP is not set */
/* Modbus master and slave stack */ /* Modbus master and slave stack */
/* RT_USING_MODBUS is not set */
/* RT-Thread UI Engine */
/* PKG_USING_GUIENGINE is not set */
/* VBUS(Virtual Software BUS) */ /* VBUS(Virtual Software BUS) */
/* RT_USING_VBUS is not set */
/* Utilities */ /* Utilities */
/* RT_USING_LOGTRACE is not set */
/* RT_USING_RYM is not set */
/* ARM CMSIS */ /* ARM CMSIS */
/* RT_USING_CMSIS_OS is not set */
/* RT_USING_RTT_CMSIS is not set */
/* RT-Thread online packages */ /* RT-Thread online packages */
/* system packages */ /* system packages */
/* PKG_USING_PARTITION is not set */ /* RT-Thread GUI Engine */
/* PKG_USING_PERSIMMON is not set */
/* PKG_USING_SQLITE is not set */
/* PKG_USING_RTI is not set */
/* IoT - internet of things */ /* IoT - internet of things */
/* PKG_USING_PAHOMQTT is not set */
/* 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_LJSON is not set */
/* PKG_USING_EZXML is not set */
/* PKG_USING_NANOPB is not set */
/* PKG_USING_GAGENT_CLOUD is not set */
/* Wi-Fi */ /* Wi-Fi */
/* Marvell WiFi */ /* Marvell WiFi */
/* PKG_USING_WLANMARVELL is not set */
/* Wiced WiFi */ /* Wiced WiFi */
/* PKG_USING_WLAN_WICED is not set */
/* PKG_USING_COAP is not set */
/* security packages */ /* security packages */
/* PKG_USING_MBEDTLS is not set */
/* PKG_USING_libsodium is not set */
/* PKG_USING_TINYCRYPT is not set */
/* language packages */ /* language packages */
/* PKG_USING_JERRYSCRIPT is not set */ #define PKG_USING_MICROPYTHON
/* PKG_USING_MICROPYTHON is not set */
/* System Module */
/* Tools Module */
/* Network Module */
/* Hardware Module */
#define PKG_MICROPYTHON_HEAP_SIZE 8192
#define PKG_USING_MICROPYTHON_LATEST_VERSION
/* multimedia packages */ /* multimedia packages */
/* PKG_USING_OPENMV is not set */
/* tools packages */ /* tools packages */
/* PKG_USING_CMBACKTRACE is not set */
/* PKG_USING_EASYLOGGER is not set */
/* PKG_USING_SYSTEMVIEW is not set */
/* PKG_USING_IPERF is not set */
/* miscellaneous packages */ /* miscellaneous packages */
/* PKG_USING_FASTLZ is not set */
/* PKG_USING_MINILZO is not set */
/* example package: hello */ /* example package: hello */
/* PKG_USING_HELLO is not set */
/* Privated Packages of RealThread */ /* Privated Packages of RealThread */
/* PKG_USING_CODEC is not set */
/* PKG_USING_PLAYER is not set */
/* PKG_USING_PERSIMMON_SRC is not set */
/* Network Utilities */ /* Network Utilities */
/* PKG_USING_WLAN_WICED_SRC is not set */
/* Cloudsdk: RT_thread IOT Cloudsdk */
/* PKG_USING_CLOUDSDK is not set */
/* Webnet: A web server package for rt-thread */ /* Webnet: A web server package for rt-thread */
/* PKG_USING_WEBNET is not set */
/* PKG_USING_COREMARK is not set */
/* PKG_USING_POWER_MANAGER is not set */
#define SOC_V2M_MPS2 #define SOC_V2M_MPS2
#define RT_USING_UART #define RT_USING_UART
#define RT_USING_UART0 #define RT_USING_UART0