From d43e20676f02b9bffa7fdda168609aa19cbc667b Mon Sep 17 00:00:00 2001 From: liang yongxiang Date: Sun, 25 Mar 2018 22:10:34 +0800 Subject: [PATCH] [bsp][v2m-mps2] add pin device support and update project files --- bsp/v2m-mps2/.config | 65 +- bsp/v2m-mps2/drivers/SConscript | 3 + bsp/v2m-mps2/drivers/drv_pin.c | 89 ++ bsp/v2m-mps2/project.uvoptx | 2165 +++++++++++++++++++++++++++++-- bsp/v2m-mps2/project.uvprojx | 880 ++++++++++++- bsp/v2m-mps2/rtconfig.h | 99 +- 6 files changed, 3103 insertions(+), 198 deletions(-) create mode 100644 bsp/v2m-mps2/drivers/drv_pin.c diff --git a/bsp/v2m-mps2/.config b/bsp/v2m-mps2/.config index 93ae20e65e..d2d7d9b47e 100644 --- a/bsp/v2m-mps2/.config +++ b/bsp/v2m-mps2/.config @@ -76,6 +76,7 @@ CONFIG_FINSH_USING_HISTORY=y CONFIG_FINSH_HISTORY_LINES=5 CONFIG_FINSH_USING_SYMTAB=y CONFIG_FINSH_USING_DESCRIPTION=y +# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set CONFIG_FINSH_THREAD_PRIORITY=20 CONFIG_FINSH_THREAD_STACK_SIZE=4096 CONFIG_FINSH_CMD_SIZE=80 @@ -98,7 +99,7 @@ CONFIG_RT_USING_SERIAL=y # CONFIG_RT_USING_HWTIMER is not set # CONFIG_RT_USING_CPUTIME 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_NAND 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_PTHREADS is not set +# CONFIG_HAVE_SYS_SIGNALS is not set # # Network stack @@ -133,11 +135,6 @@ CONFIG_RT_USING_LIBC=y # # CONFIG_RT_USING_MODBUS is not set -# -# RT-Thread UI Engine -# -# CONFIG_PKG_USING_GUIENGINE is not set - # # VBUS(Virtual Software BUS) # @@ -162,8 +159,14 @@ CONFIG_RT_USING_LIBC=y # # 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_LWEXT4 is not set +# CONFIG_PKG_USING_PARTITION is not set # CONFIG_PKG_USING_SQLITE 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_COAP is not set +# CONFIG_PKG_USING_NOPOLL is not set +# CONFIG_PKG_USING_NETUTILS is not set # # security packages @@ -206,7 +211,43 @@ CONFIG_RT_USING_LIBC=y # language packages # # 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 @@ -217,6 +258,7 @@ CONFIG_RT_USING_LIBC=y # tools packages # # CONFIG_PKG_USING_CMBACKTRACE is not set +# CONFIG_PKG_USING_EASYFLASH is not set # CONFIG_PKG_USING_EASYLOGGER is not set # CONFIG_PKG_USING_SYSTEMVIEW 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_MINILZO is not set +# CONFIG_PKG_USING_QUICKLZ is not set +# CONFIG_PKG_USING_MULTIBUTTON is not set # # example package: hello @@ -243,10 +287,6 @@ CONFIG_RT_USING_LIBC=y # Network Utilities # # CONFIG_PKG_USING_WLAN_WICED_SRC is not set - -# -# Cloudsdk: RT_thread IOT Cloudsdk -# # 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_COREMARK 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_RT_USING_UART=y CONFIG_RT_USING_UART0=y diff --git a/bsp/v2m-mps2/drivers/SConscript b/bsp/v2m-mps2/drivers/SConscript index d1ca64e4b0..fa38d4cb34 100644 --- a/bsp/v2m-mps2/drivers/SConscript +++ b/bsp/v2m-mps2/drivers/SConscript @@ -11,6 +11,9 @@ drv_uart.c CPPPATH = [cwd] CPPDEFINES = [] +if GetDepend('RT_USING_PIN'): + src += ['drv_pin.c'] + group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES) Return('group') diff --git a/bsp/v2m-mps2/drivers/drv_pin.c b/bsp/v2m-mps2/drivers/drv_pin.c new file mode 100644 index 0000000000..ddb93e6424 --- /dev/null +++ b/bsp/v2m-mps2/drivers/drv_pin.c @@ -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 +#include +#include +#include + +#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 */ diff --git a/bsp/v2m-mps2/project.uvoptx b/bsp/v2m-mps2/project.uvoptx index 49b2063e01..5a89df19a8 100644 --- a/bsp/v2m-mps2/project.uvoptx +++ b/bsp/v2m-mps2/project.uvoptx @@ -148,7 +148,24 @@ UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000) - + + + 0 + 0 + 150 + 1 +
5262
+ 0 + 0 + 0 + 0 + 0 + 1 + ..\..\src\components.c + + \\rtthread_v2m_mps2\../../src/components.c\150 +
+
0 @@ -202,7 +219,7 @@ Applications - 0 + 1 0 0 0 @@ -222,7 +239,7 @@ Drivers - 0 + 1 0 0 0 @@ -250,26 +267,26 @@ 0 0 - - - - Kernel - 0 - 0 - 0 - 0 - 3 + 2 4 1 0 0 0 - ..\..\src\clock.c - clock.c + drivers\drv_pin.c + drv_pin.c 0 0 + + + + MicroPython + 0 + 0 + 0 + 0 3 5 @@ -277,8 +294,8 @@ 0 0 0 - ..\..\src\components.c - components.c + packages\micropython\py\argcheck.c + argcheck.c 0 0 @@ -289,8 +306,8 @@ 0 0 0 - ..\..\src\device.c - device.c + packages\micropython\py\asmarm.c + asmarm.c 0 0 @@ -301,8 +318,8 @@ 0 0 0 - ..\..\src\idle.c - idle.c + packages\micropython\py\asmbase.c + asmbase.c 0 0 @@ -313,8 +330,8 @@ 0 0 0 - ..\..\src\ipc.c - ipc.c + packages\micropython\py\asmthumb.c + asmthumb.c 0 0 @@ -325,8 +342,8 @@ 0 0 0 - ..\..\src\irq.c - irq.c + packages\micropython\py\asmx64.c + asmx64.c 0 0 @@ -337,8 +354,8 @@ 0 0 0 - ..\..\src\kservice.c - kservice.c + packages\micropython\py\asmx86.c + asmx86.c 0 0 @@ -349,8 +366,8 @@ 0 0 0 - ..\..\src\memheap.c - memheap.c + packages\micropython\py\asmxtensa.c + asmxtensa.c 0 0 @@ -361,8 +378,8 @@ 0 0 0 - ..\..\src\object.c - object.c + packages\micropython\py\bc.c + bc.c 0 0 @@ -373,8 +390,8 @@ 0 0 0 - ..\..\src\scheduler.c - scheduler.c + packages\micropython\py\binary.c + binary.c 0 0 @@ -385,8 +402,8 @@ 0 0 0 - ..\..\src\signal.c - signal.c + packages\micropython\py\builtinevex.c + builtinevex.c 0 0 @@ -397,8 +414,8 @@ 0 0 0 - ..\..\src\thread.c - thread.c + packages\micropython\py\builtinhelp.c + builtinhelp.c 0 0 @@ -409,6 +426,1934 @@ 0 0 0 + packages\micropython\py\builtinimport.c + builtinimport.c + 0 + 0 + + + 3 + 17 + 1 + 0 + 0 + 0 + packages\micropython\py\compile.c + compile.c + 0 + 0 + + + 3 + 18 + 1 + 0 + 0 + 0 + packages\micropython\py\emitbc.c + emitbc.c + 0 + 0 + + + 3 + 19 + 1 + 0 + 0 + 0 + packages\micropython\py\emitcommon.c + emitcommon.c + 0 + 0 + + + 3 + 20 + 1 + 0 + 0 + 0 + packages\micropython\py\emitglue.c + emitglue.c + 0 + 0 + + + 3 + 21 + 1 + 0 + 0 + 0 + packages\micropython\py\emitinlinethumb.c + emitinlinethumb.c + 0 + 0 + + + 3 + 22 + 1 + 0 + 0 + 0 + packages\micropython\py\emitinlinextensa.c + emitinlinextensa.c + 0 + 0 + + + 3 + 23 + 1 + 0 + 0 + 0 + packages\micropython\py\emitnative.c + emitnative.c + 0 + 0 + + + 3 + 24 + 1 + 0 + 0 + 0 + packages\micropython\py\formatfloat.c + formatfloat.c + 0 + 0 + + + 3 + 25 + 1 + 0 + 0 + 0 + packages\micropython\py\frozenmod.c + frozenmod.c + 0 + 0 + + + 3 + 26 + 1 + 0 + 0 + 0 + packages\micropython\py\gc.c + gc.c + 0 + 0 + + + 3 + 27 + 1 + 0 + 0 + 0 + packages\micropython\py\lexer.c + lexer.c + 0 + 0 + + + 3 + 28 + 1 + 0 + 0 + 0 + packages\micropython\py\malloc.c + malloc.c + 0 + 0 + + + 3 + 29 + 1 + 0 + 0 + 0 + packages\micropython\py\map.c + map.c + 0 + 0 + + + 3 + 30 + 1 + 0 + 0 + 0 + packages\micropython\py\modarray.c + modarray.c + 0 + 0 + + + 3 + 31 + 1 + 0 + 0 + 0 + packages\micropython\py\modbuiltins.c + modbuiltins.c + 0 + 0 + + + 3 + 32 + 1 + 0 + 0 + 0 + packages\micropython\py\modcmath.c + modcmath.c + 0 + 0 + + + 3 + 33 + 1 + 0 + 0 + 0 + packages\micropython\py\modcollections.c + modcollections.c + 0 + 0 + + + 3 + 34 + 1 + 0 + 0 + 0 + packages\micropython\py\modgc.c + modgc.c + 0 + 0 + + + 3 + 35 + 1 + 0 + 0 + 0 + packages\micropython\py\modio.c + modio.c + 0 + 0 + + + 3 + 36 + 1 + 0 + 0 + 0 + packages\micropython\py\modmath.c + modmath.c + 0 + 0 + + + 3 + 37 + 1 + 0 + 0 + 0 + packages\micropython\py\modmicropython.c + modmicropython.c + 0 + 0 + + + 3 + 38 + 1 + 0 + 0 + 0 + packages\micropython\py\modstruct.c + modstruct.c + 0 + 0 + + + 3 + 39 + 1 + 0 + 0 + 0 + packages\micropython\py\modsys.c + modsys.c + 0 + 0 + + + 3 + 40 + 1 + 0 + 0 + 0 + packages\micropython\py\modthread.c + modthread.c + 0 + 0 + + + 3 + 41 + 1 + 0 + 0 + 0 + packages\micropython\py\moduerrno.c + moduerrno.c + 0 + 0 + + + 3 + 42 + 1 + 0 + 0 + 0 + packages\micropython\py\mpprint.c + mpprint.c + 0 + 0 + + + 3 + 43 + 1 + 0 + 0 + 0 + packages\micropython\py\mpstate.c + mpstate.c + 0 + 0 + + + 3 + 44 + 1 + 0 + 0 + 0 + packages\micropython\py\mpy_scheduler.c + mpy_scheduler.c + 0 + 0 + + + 3 + 45 + 1 + 0 + 0 + 0 + packages\micropython\py\mpz.c + mpz.c + 0 + 0 + + + 3 + 46 + 1 + 0 + 0 + 0 + packages\micropython\py\nativeglue.c + nativeglue.c + 0 + 0 + + + 3 + 47 + 1 + 0 + 0 + 0 + packages\micropython\py\nlr.c + nlr.c + 0 + 0 + + + 3 + 48 + 1 + 0 + 0 + 0 + packages\micropython\py\nlrsetjmp.c + nlrsetjmp.c + 0 + 0 + + + 3 + 49 + 1 + 0 + 0 + 0 + packages\micropython\py\nlrthumb.c + nlrthumb.c + 0 + 0 + + + 3 + 50 + 1 + 0 + 0 + 0 + packages\micropython\py\nlrx64.c + nlrx64.c + 0 + 0 + + + 3 + 51 + 1 + 0 + 0 + 0 + packages\micropython\py\nlrx86.c + nlrx86.c + 0 + 0 + + + 3 + 52 + 1 + 0 + 0 + 0 + packages\micropython\py\nlrxtensa.c + nlrxtensa.c + 0 + 0 + + + 3 + 53 + 1 + 0 + 0 + 0 + packages\micropython\py\obj.c + obj.c + 0 + 0 + + + 3 + 54 + 1 + 0 + 0 + 0 + packages\micropython\py\objarray.c + objarray.c + 0 + 0 + + + 3 + 55 + 1 + 0 + 0 + 0 + packages\micropython\py\objattrtuple.c + objattrtuple.c + 0 + 0 + + + 3 + 56 + 1 + 0 + 0 + 0 + packages\micropython\py\objbool.c + objbool.c + 0 + 0 + + + 3 + 57 + 1 + 0 + 0 + 0 + packages\micropython\py\objboundmeth.c + objboundmeth.c + 0 + 0 + + + 3 + 58 + 1 + 0 + 0 + 0 + packages\micropython\py\objcell.c + objcell.c + 0 + 0 + + + 3 + 59 + 1 + 0 + 0 + 0 + packages\micropython\py\objclosure.c + objclosure.c + 0 + 0 + + + 3 + 60 + 1 + 0 + 0 + 0 + packages\micropython\py\objcomplex.c + objcomplex.c + 0 + 0 + + + 3 + 61 + 1 + 0 + 0 + 0 + packages\micropython\py\objdeque.c + objdeque.c + 0 + 0 + + + 3 + 62 + 1 + 0 + 0 + 0 + packages\micropython\py\objdict.c + objdict.c + 0 + 0 + + + 3 + 63 + 1 + 0 + 0 + 0 + packages\micropython\py\objenumerate.c + objenumerate.c + 0 + 0 + + + 3 + 64 + 1 + 0 + 0 + 0 + packages\micropython\py\objexcept.c + objexcept.c + 0 + 0 + + + 3 + 65 + 1 + 0 + 0 + 0 + packages\micropython\py\objfilter.c + objfilter.c + 0 + 0 + + + 3 + 66 + 1 + 0 + 0 + 0 + packages\micropython\py\objfloat.c + objfloat.c + 0 + 0 + + + 3 + 67 + 1 + 0 + 0 + 0 + packages\micropython\py\objfun.c + objfun.c + 0 + 0 + + + 3 + 68 + 1 + 0 + 0 + 0 + packages\micropython\py\objgenerator.c + objgenerator.c + 0 + 0 + + + 3 + 69 + 1 + 0 + 0 + 0 + packages\micropython\py\objgetitemiter.c + objgetitemiter.c + 0 + 0 + + + 3 + 70 + 1 + 0 + 0 + 0 + packages\micropython\py\objint.c + objint.c + 0 + 0 + + + 3 + 71 + 1 + 0 + 0 + 0 + packages\micropython\py\objint_longlong.c + objint_longlong.c + 0 + 0 + + + 3 + 72 + 1 + 0 + 0 + 0 + packages\micropython\py\objint_mpz.c + objint_mpz.c + 0 + 0 + + + 3 + 73 + 1 + 0 + 0 + 0 + packages\micropython\py\objlist.c + objlist.c + 0 + 0 + + + 3 + 74 + 1 + 0 + 0 + 0 + packages\micropython\py\objmap.c + objmap.c + 0 + 0 + + + 3 + 75 + 1 + 0 + 0 + 0 + packages\micropython\py\objmodule.c + objmodule.c + 0 + 0 + + + 3 + 76 + 1 + 0 + 0 + 0 + packages\micropython\py\objnamedtuple.c + objnamedtuple.c + 0 + 0 + + + 3 + 77 + 1 + 0 + 0 + 0 + packages\micropython\py\objnone.c + objnone.c + 0 + 0 + + + 3 + 78 + 1 + 0 + 0 + 0 + packages\micropython\py\objobject.c + objobject.c + 0 + 0 + + + 3 + 79 + 1 + 0 + 0 + 0 + packages\micropython\py\objpolyiter.c + objpolyiter.c + 0 + 0 + + + 3 + 80 + 1 + 0 + 0 + 0 + packages\micropython\py\objproperty.c + objproperty.c + 0 + 0 + + + 3 + 81 + 1 + 0 + 0 + 0 + packages\micropython\py\objrange.c + objrange.c + 0 + 0 + + + 3 + 82 + 1 + 0 + 0 + 0 + packages\micropython\py\objreversed.c + objreversed.c + 0 + 0 + + + 3 + 83 + 1 + 0 + 0 + 0 + packages\micropython\py\objset.c + objset.c + 0 + 0 + + + 3 + 84 + 1 + 0 + 0 + 0 + packages\micropython\py\objsingleton.c + objsingleton.c + 0 + 0 + + + 3 + 85 + 1 + 0 + 0 + 0 + packages\micropython\py\objslice.c + objslice.c + 0 + 0 + + + 3 + 86 + 1 + 0 + 0 + 0 + packages\micropython\py\objstr.c + objstr.c + 0 + 0 + + + 3 + 87 + 1 + 0 + 0 + 0 + packages\micropython\py\objstringio.c + objstringio.c + 0 + 0 + + + 3 + 88 + 1 + 0 + 0 + 0 + packages\micropython\py\objstrunicode.c + objstrunicode.c + 0 + 0 + + + 3 + 89 + 1 + 0 + 0 + 0 + packages\micropython\py\objtuple.c + objtuple.c + 0 + 0 + + + 3 + 90 + 1 + 0 + 0 + 0 + packages\micropython\py\objtype.c + objtype.c + 0 + 0 + + + 3 + 91 + 1 + 0 + 0 + 0 + packages\micropython\py\objzip.c + objzip.c + 0 + 0 + + + 3 + 92 + 1 + 0 + 0 + 0 + packages\micropython\py\opmethods.c + opmethods.c + 0 + 0 + + + 3 + 93 + 1 + 0 + 0 + 0 + packages\micropython\py\parse.c + parse.c + 0 + 0 + + + 3 + 94 + 1 + 0 + 0 + 0 + packages\micropython\py\parsenum.c + parsenum.c + 0 + 0 + + + 3 + 95 + 1 + 0 + 0 + 0 + packages\micropython\py\parsenumbase.c + parsenumbase.c + 0 + 0 + + + 3 + 96 + 1 + 0 + 0 + 0 + packages\micropython\py\persistentcode.c + persistentcode.c + 0 + 0 + + + 3 + 97 + 1 + 0 + 0 + 0 + packages\micropython\py\pystack.c + pystack.c + 0 + 0 + + + 3 + 98 + 1 + 0 + 0 + 0 + packages\micropython\py\qstr.c + qstr.c + 0 + 0 + + + 3 + 99 + 1 + 0 + 0 + 0 + packages\micropython\py\reader.c + reader.c + 0 + 0 + + + 3 + 100 + 1 + 0 + 0 + 0 + packages\micropython\py\repl.c + repl.c + 0 + 0 + + + 3 + 101 + 1 + 0 + 0 + 0 + packages\micropython\py\runtime.c + runtime.c + 0 + 0 + + + 3 + 102 + 1 + 0 + 0 + 0 + packages\micropython\py\runtime_utils.c + runtime_utils.c + 0 + 0 + + + 3 + 103 + 1 + 0 + 0 + 0 + packages\micropython\py\scope.c + scope.c + 0 + 0 + + + 3 + 104 + 1 + 0 + 0 + 0 + packages\micropython\py\sequence.c + sequence.c + 0 + 0 + + + 3 + 105 + 1 + 0 + 0 + 0 + packages\micropython\py\showbc.c + showbc.c + 0 + 0 + + + 3 + 106 + 1 + 0 + 0 + 0 + packages\micropython\py\smallint.c + smallint.c + 0 + 0 + + + 3 + 107 + 1 + 0 + 0 + 0 + packages\micropython\py\stackctrl.c + stackctrl.c + 0 + 0 + + + 3 + 108 + 1 + 0 + 0 + 0 + packages\micropython\py\stream.c + stream.c + 0 + 0 + + + 3 + 109 + 1 + 0 + 0 + 0 + packages\micropython\py\unicode.c + unicode.c + 0 + 0 + + + 3 + 110 + 1 + 0 + 0 + 0 + packages\micropython\py\vm.c + vm.c + 0 + 0 + + + 3 + 111 + 1 + 0 + 0 + 0 + packages\micropython\py\vstr.c + vstr.c + 0 + 0 + + + 3 + 112 + 1 + 0 + 0 + 0 + packages\micropython\py\warning.c + warning.c + 0 + 0 + + + 3 + 113 + 1 + 0 + 0 + 0 + packages\micropython\lib\mp-readline\readline.c + readline.c + 0 + 0 + + + 3 + 114 + 1 + 0 + 0 + 0 + packages\micropython\lib\utils\interrupt_char.c + interrupt_char.c + 0 + 0 + + + 3 + 115 + 1 + 0 + 0 + 0 + packages\micropython\lib\utils\printf.c + printf.c + 0 + 0 + + + 3 + 116 + 1 + 0 + 0 + 0 + packages\micropython\lib\utils\pyexec.c + pyexec.c + 0 + 0 + + + 3 + 117 + 1 + 0 + 0 + 0 + packages\micropython\lib\utils\stdout_helpers.c + stdout_helpers.c + 0 + 0 + + + 3 + 118 + 1 + 0 + 0 + 0 + packages\micropython\extmod\machine_i2c.c + machine_i2c.c + 0 + 0 + + + 3 + 119 + 1 + 0 + 0 + 0 + packages\micropython\extmod\machine_mem.c + machine_mem.c + 0 + 0 + + + 3 + 120 + 1 + 0 + 0 + 0 + packages\micropython\extmod\machine_pinbase.c + machine_pinbase.c + 0 + 0 + + + 3 + 121 + 1 + 0 + 0 + 0 + packages\micropython\extmod\machine_pulse.c + machine_pulse.c + 0 + 0 + + + 3 + 122 + 1 + 0 + 0 + 0 + packages\micropython\extmod\machine_signal.c + machine_signal.c + 0 + 0 + + + 3 + 123 + 1 + 0 + 0 + 0 + packages\micropython\extmod\machine_spi.c + machine_spi.c + 0 + 0 + + + 3 + 124 + 1 + 0 + 0 + 0 + packages\micropython\extmod\modbtree.c + modbtree.c + 0 + 0 + + + 3 + 125 + 1 + 0 + 0 + 0 + packages\micropython\extmod\modframebuf.c + modframebuf.c + 0 + 0 + + + 3 + 126 + 1 + 0 + 0 + 0 + packages\micropython\extmod\modubinascii.c + modubinascii.c + 0 + 0 + + + 3 + 127 + 1 + 0 + 0 + 0 + packages\micropython\extmod\moductypes.c + moductypes.c + 0 + 0 + + + 3 + 128 + 1 + 0 + 0 + 0 + packages\micropython\extmod\moduhashlib.c + moduhashlib.c + 0 + 0 + + + 3 + 129 + 1 + 0 + 0 + 0 + packages\micropython\extmod\moduheapq.c + moduheapq.c + 0 + 0 + + + 3 + 130 + 1 + 0 + 0 + 0 + packages\micropython\extmod\modujson.c + modujson.c + 0 + 0 + + + 3 + 131 + 1 + 0 + 0 + 0 + packages\micropython\extmod\modurandom.c + modurandom.c + 0 + 0 + + + 3 + 132 + 1 + 0 + 0 + 0 + packages\micropython\extmod\modure.c + modure.c + 0 + 0 + + + 3 + 133 + 1 + 0 + 0 + 0 + packages\micropython\extmod\moduselect.c + moduselect.c + 0 + 0 + + + 3 + 134 + 1 + 0 + 0 + 0 + packages\micropython\extmod\modussl_axtls.c + modussl_axtls.c + 0 + 0 + + + 3 + 135 + 1 + 0 + 0 + 0 + packages\micropython\extmod\modussl_mbedtls.c + modussl_mbedtls.c + 0 + 0 + + + 3 + 136 + 1 + 0 + 0 + 0 + packages\micropython\extmod\modutimeq.c + modutimeq.c + 0 + 0 + + + 3 + 137 + 1 + 0 + 0 + 0 + packages\micropython\extmod\moduzlib.c + moduzlib.c + 0 + 0 + + + 3 + 138 + 1 + 0 + 0 + 0 + packages\micropython\extmod\modwebrepl.c + modwebrepl.c + 0 + 0 + + + 3 + 139 + 1 + 0 + 0 + 0 + packages\micropython\extmod\modwebsocket.c + modwebsocket.c + 0 + 0 + + + 3 + 140 + 1 + 0 + 0 + 0 + packages\micropython\extmod\uos_dupterm.c + uos_dupterm.c + 0 + 0 + + + 3 + 141 + 1 + 0 + 0 + 0 + packages\micropython\extmod\utime_mphal.c + utime_mphal.c + 0 + 0 + + + 3 + 142 + 1 + 0 + 0 + 0 + packages\micropython\extmod\vfs.c + vfs.c + 0 + 0 + + + 3 + 143 + 1 + 0 + 0 + 0 + packages\micropython\extmod\vfs_fat.c + vfs_fat.c + 0 + 0 + + + 3 + 144 + 1 + 0 + 0 + 0 + packages\micropython\extmod\vfs_fat_diskio.c + vfs_fat_diskio.c + 0 + 0 + + + 3 + 145 + 1 + 0 + 0 + 0 + packages\micropython\extmod\vfs_fat_file.c + vfs_fat_file.c + 0 + 0 + + + 3 + 146 + 1 + 0 + 0 + 0 + packages\micropython\extmod\vfs_reader.c + vfs_reader.c + 0 + 0 + + + 3 + 147 + 1 + 0 + 0 + 0 + packages\micropython\extmod\virtpin.c + virtpin.c + 0 + 0 + + + 3 + 148 + 1 + 0 + 0 + 0 + packages\micropython\port\_frozen_mpy.c + _frozen_mpy.c + 0 + 0 + + + 3 + 149 + 1 + 0 + 0 + 0 + packages\micropython\port\file.c + file.c + 0 + 0 + + + 3 + 150 + 1 + 0 + 0 + 0 + packages\micropython\port\help.c + help.c + 0 + 0 + + + 3 + 151 + 1 + 0 + 0 + 0 + packages\micropython\port\machine_pin.c + machine_pin.c + 0 + 0 + + + 3 + 152 + 1 + 0 + 0 + 0 + packages\micropython\port\modmachine.c + modmachine.c + 0 + 0 + + + 3 + 153 + 1 + 0 + 0 + 0 + packages\micropython\port\modnetwork.c + modnetwork.c + 0 + 0 + + + 3 + 154 + 1 + 0 + 0 + 0 + packages\micropython\port\modpyb.c + modpyb.c + 0 + 0 + + + 3 + 155 + 1 + 0 + 0 + 0 + packages\micropython\port\modrtthread.c + modrtthread.c + 0 + 0 + + + 3 + 156 + 1 + 0 + 0 + 0 + packages\micropython\port\moduos.c + moduos.c + 0 + 0 + + + 3 + 157 + 1 + 0 + 0 + 0 + packages\micropython\port\moduos_file.c + moduos_file.c + 0 + 0 + + + 3 + 158 + 1 + 0 + 0 + 0 + packages\micropython\port\modusocket.c + modusocket.c + 0 + 0 + + + 3 + 159 + 1 + 0 + 0 + 0 + packages\micropython\port\modutime.c + modutime.c + 0 + 0 + + + 3 + 160 + 1 + 0 + 0 + 0 + packages\micropython\port\mpy_main.c + mpy_main.c + 0 + 0 + + + 3 + 161 + 1 + 0 + 0 + 0 + packages\micropython\port\rtt_getchar.c + rtt_getchar.c + 0 + 0 + + + 3 + 162 + 1 + 0 + 0 + 0 + packages\micropython\port\uart_core.c + uart_core.c + 0 + 0 + + + 3 + 163 + 1 + 0 + 0 + 0 + packages\micropython\lib\netutils\netutils.c + netutils.c + 0 + 0 + + + + + Kernel + 0 + 0 + 0 + 0 + + 4 + 164 + 1 + 0 + 0 + 0 + ..\..\src\clock.c + clock.c + 0 + 0 + + + 4 + 165 + 1 + 0 + 0 + 0 + ..\..\src\components.c + components.c + 0 + 0 + + + 4 + 166 + 1 + 0 + 0 + 0 + ..\..\src\device.c + device.c + 0 + 0 + + + 4 + 167 + 1 + 0 + 0 + 0 + ..\..\src\idle.c + idle.c + 0 + 0 + + + 4 + 168 + 1 + 0 + 0 + 0 + ..\..\src\ipc.c + ipc.c + 0 + 0 + + + 4 + 169 + 1 + 0 + 0 + 0 + ..\..\src\irq.c + irq.c + 0 + 0 + + + 4 + 170 + 1 + 0 + 0 + 0 + ..\..\src\kservice.c + kservice.c + 0 + 0 + + + 4 + 171 + 1 + 0 + 0 + 0 + ..\..\src\memheap.c + memheap.c + 0 + 0 + + + 4 + 172 + 1 + 0 + 0 + 0 + ..\..\src\object.c + object.c + 0 + 0 + + + 4 + 173 + 1 + 0 + 0 + 0 + ..\..\src\scheduler.c + scheduler.c + 0 + 0 + + + 4 + 174 + 1 + 0 + 0 + 0 + ..\..\src\signal.c + signal.c + 0 + 0 + + + 4 + 175 + 1 + 0 + 0 + 0 + ..\..\src\thread.c + thread.c + 0 + 0 + + + 4 + 176 + 1 + 0 + 0 + 0 ..\..\src\timer.c timer.c 0 @@ -423,8 +2368,8 @@ 0 0 - 4 - 17 + 5 + 177 1 0 0 @@ -435,8 +2380,8 @@ 0 - 4 - 18 + 5 + 178 2 0 0 @@ -447,8 +2392,8 @@ 0 - 4 - 19 + 5 + 179 1 0 0 @@ -459,8 +2404,8 @@ 0 - 4 - 20 + 5 + 180 1 0 0 @@ -471,8 +2416,8 @@ 0 - 4 - 21 + 5 + 181 1 0 0 @@ -491,8 +2436,20 @@ 0 0 - 5 - 22 + 6 + 182 + 1 + 0 + 0 + 0 + ..\..\components\drivers\misc\pin.c + pin.c + 0 + 0 + + + 6 + 183 1 0 0 @@ -503,8 +2460,8 @@ 0 - 5 - 23 + 6 + 184 1 0 0 @@ -515,8 +2472,8 @@ 0 - 5 - 24 + 6 + 185 1 0 0 @@ -527,8 +2484,8 @@ 0 - 5 - 25 + 6 + 186 1 0 0 @@ -539,8 +2496,8 @@ 0 - 5 - 26 + 6 + 187 1 0 0 @@ -551,8 +2508,8 @@ 0 - 5 - 27 + 6 + 188 1 0 0 @@ -563,8 +2520,8 @@ 0 - 5 - 28 + 6 + 189 1 0 0 @@ -583,8 +2540,8 @@ 0 0 - 6 - 29 + 7 + 190 1 0 0 @@ -595,8 +2552,8 @@ 0 - 6 - 30 + 7 + 191 1 0 0 @@ -607,8 +2564,8 @@ 0 - 6 - 31 + 7 + 192 1 0 0 @@ -619,8 +2576,8 @@ 0 - 6 - 32 + 7 + 193 1 0 0 @@ -631,8 +2588,8 @@ 0 - 6 - 33 + 7 + 194 1 0 0 @@ -643,8 +2600,8 @@ 0 - 6 - 34 + 7 + 195 1 0 0 @@ -655,8 +2612,8 @@ 0 - 6 - 35 + 7 + 196 1 0 0 @@ -667,8 +2624,8 @@ 0 - 6 - 36 + 7 + 197 1 0 0 @@ -679,8 +2636,8 @@ 0 - 6 - 37 + 7 + 198 1 0 0 @@ -691,8 +2648,8 @@ 0 - 6 - 38 + 7 + 199 1 0 0 @@ -703,8 +2660,8 @@ 0 - 6 - 39 + 7 + 200 1 0 0 @@ -715,8 +2672,8 @@ 0 - 6 - 40 + 7 + 201 1 0 0 @@ -727,8 +2684,8 @@ 0 - 6 - 41 + 7 + 202 1 0 0 @@ -739,8 +2696,8 @@ 0 - 6 - 42 + 7 + 203 1 0 0 @@ -751,8 +2708,8 @@ 0 - 6 - 43 + 7 + 204 1 0 0 @@ -763,8 +2720,8 @@ 0 - 6 - 44 + 7 + 205 1 0 0 @@ -783,8 +2740,8 @@ 0 0 - 7 - 45 + 8 + 206 1 0 0 @@ -795,8 +2752,8 @@ 0 - 7 - 46 + 8 + 207 1 0 0 @@ -807,8 +2764,8 @@ 0 - 7 - 47 + 8 + 208 1 0 0 @@ -819,8 +2776,8 @@ 0 - 7 - 48 + 8 + 209 1 0 0 @@ -831,8 +2788,8 @@ 0 - 7 - 49 + 8 + 210 1 0 0 @@ -843,8 +2800,8 @@ 0 - 7 - 50 + 8 + 211 1 0 0 diff --git a/bsp/v2m-mps2/project.uvprojx b/bsp/v2m-mps2/project.uvprojx index cd325e7a74..75718cc144 100644 --- a/bsp/v2m-mps2/project.uvprojx +++ b/bsp/v2m-mps2/project.uvprojx @@ -336,7 +336,7 @@ --library_interface=armcc --library_type=standardlib --diag_suppress=66,1296,186 RT_USING_ARM_LIBC - applications;.;drivers;..\..\include;..\..\libcpu\arm\cortex-m7;..\..\libcpu\arm\common;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh;..\..\components\libc\compilers\armlibc + 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 @@ -400,6 +400,879 @@ 1 drivers\drv_uart.c + + drv_pin.c + 1 + drivers\drv_pin.c + + + + + MicroPython + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 0 + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + + --c99 --gnu + + + + + + + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + + + + argcheck.c + 1 + packages\micropython\py\argcheck.c + + + asmarm.c + 1 + packages\micropython\py\asmarm.c + + + asmbase.c + 1 + packages\micropython\py\asmbase.c + + + asmthumb.c + 1 + packages\micropython\py\asmthumb.c + + + asmx64.c + 1 + packages\micropython\py\asmx64.c + + + asmx86.c + 1 + packages\micropython\py\asmx86.c + + + asmxtensa.c + 1 + packages\micropython\py\asmxtensa.c + + + bc.c + 1 + packages\micropython\py\bc.c + + + binary.c + 1 + packages\micropython\py\binary.c + + + builtinevex.c + 1 + packages\micropython\py\builtinevex.c + + + builtinhelp.c + 1 + packages\micropython\py\builtinhelp.c + + + builtinimport.c + 1 + packages\micropython\py\builtinimport.c + + + compile.c + 1 + packages\micropython\py\compile.c + + + emitbc.c + 1 + packages\micropython\py\emitbc.c + + + emitcommon.c + 1 + packages\micropython\py\emitcommon.c + + + emitglue.c + 1 + packages\micropython\py\emitglue.c + + + emitinlinethumb.c + 1 + packages\micropython\py\emitinlinethumb.c + + + emitinlinextensa.c + 1 + packages\micropython\py\emitinlinextensa.c + + + emitnative.c + 1 + packages\micropython\py\emitnative.c + + + formatfloat.c + 1 + packages\micropython\py\formatfloat.c + + + frozenmod.c + 1 + packages\micropython\py\frozenmod.c + + + gc.c + 1 + packages\micropython\py\gc.c + + + lexer.c + 1 + packages\micropython\py\lexer.c + + + malloc.c + 1 + packages\micropython\py\malloc.c + + + map.c + 1 + packages\micropython\py\map.c + + + modarray.c + 1 + packages\micropython\py\modarray.c + + + modbuiltins.c + 1 + packages\micropython\py\modbuiltins.c + + + modcmath.c + 1 + packages\micropython\py\modcmath.c + + + modcollections.c + 1 + packages\micropython\py\modcollections.c + + + modgc.c + 1 + packages\micropython\py\modgc.c + + + modio.c + 1 + packages\micropython\py\modio.c + + + modmath.c + 1 + packages\micropython\py\modmath.c + + + modmicropython.c + 1 + packages\micropython\py\modmicropython.c + + + modstruct.c + 1 + packages\micropython\py\modstruct.c + + + modsys.c + 1 + packages\micropython\py\modsys.c + + + modthread.c + 1 + packages\micropython\py\modthread.c + + + moduerrno.c + 1 + packages\micropython\py\moduerrno.c + + + mpprint.c + 1 + packages\micropython\py\mpprint.c + + + mpstate.c + 1 + packages\micropython\py\mpstate.c + + + mpy_scheduler.c + 1 + packages\micropython\py\mpy_scheduler.c + + + mpz.c + 1 + packages\micropython\py\mpz.c + + + nativeglue.c + 1 + packages\micropython\py\nativeglue.c + + + nlr.c + 1 + packages\micropython\py\nlr.c + + + nlrsetjmp.c + 1 + packages\micropython\py\nlrsetjmp.c + + + nlrthumb.c + 1 + packages\micropython\py\nlrthumb.c + + + nlrx64.c + 1 + packages\micropython\py\nlrx64.c + + + nlrx86.c + 1 + packages\micropython\py\nlrx86.c + + + nlrxtensa.c + 1 + packages\micropython\py\nlrxtensa.c + + + obj.c + 1 + packages\micropython\py\obj.c + + + objarray.c + 1 + packages\micropython\py\objarray.c + + + objattrtuple.c + 1 + packages\micropython\py\objattrtuple.c + + + objbool.c + 1 + packages\micropython\py\objbool.c + + + objboundmeth.c + 1 + packages\micropython\py\objboundmeth.c + + + objcell.c + 1 + packages\micropython\py\objcell.c + + + objclosure.c + 1 + packages\micropython\py\objclosure.c + + + objcomplex.c + 1 + packages\micropython\py\objcomplex.c + + + objdeque.c + 1 + packages\micropython\py\objdeque.c + + + objdict.c + 1 + packages\micropython\py\objdict.c + + + objenumerate.c + 1 + packages\micropython\py\objenumerate.c + + + objexcept.c + 1 + packages\micropython\py\objexcept.c + + + objfilter.c + 1 + packages\micropython\py\objfilter.c + + + objfloat.c + 1 + packages\micropython\py\objfloat.c + + + objfun.c + 1 + packages\micropython\py\objfun.c + + + objgenerator.c + 1 + packages\micropython\py\objgenerator.c + + + objgetitemiter.c + 1 + packages\micropython\py\objgetitemiter.c + + + objint.c + 1 + packages\micropython\py\objint.c + + + objint_longlong.c + 1 + packages\micropython\py\objint_longlong.c + + + objint_mpz.c + 1 + packages\micropython\py\objint_mpz.c + + + objlist.c + 1 + packages\micropython\py\objlist.c + + + objmap.c + 1 + packages\micropython\py\objmap.c + + + objmodule.c + 1 + packages\micropython\py\objmodule.c + + + objnamedtuple.c + 1 + packages\micropython\py\objnamedtuple.c + + + objnone.c + 1 + packages\micropython\py\objnone.c + + + objobject.c + 1 + packages\micropython\py\objobject.c + + + objpolyiter.c + 1 + packages\micropython\py\objpolyiter.c + + + objproperty.c + 1 + packages\micropython\py\objproperty.c + + + objrange.c + 1 + packages\micropython\py\objrange.c + + + objreversed.c + 1 + packages\micropython\py\objreversed.c + + + objset.c + 1 + packages\micropython\py\objset.c + + + objsingleton.c + 1 + packages\micropython\py\objsingleton.c + + + objslice.c + 1 + packages\micropython\py\objslice.c + + + objstr.c + 1 + packages\micropython\py\objstr.c + + + objstringio.c + 1 + packages\micropython\py\objstringio.c + + + objstrunicode.c + 1 + packages\micropython\py\objstrunicode.c + + + objtuple.c + 1 + packages\micropython\py\objtuple.c + + + objtype.c + 1 + packages\micropython\py\objtype.c + + + objzip.c + 1 + packages\micropython\py\objzip.c + + + opmethods.c + 1 + packages\micropython\py\opmethods.c + + + parse.c + 1 + packages\micropython\py\parse.c + + + parsenum.c + 1 + packages\micropython\py\parsenum.c + + + parsenumbase.c + 1 + packages\micropython\py\parsenumbase.c + + + persistentcode.c + 1 + packages\micropython\py\persistentcode.c + + + pystack.c + 1 + packages\micropython\py\pystack.c + + + qstr.c + 1 + packages\micropython\py\qstr.c + + + reader.c + 1 + packages\micropython\py\reader.c + + + repl.c + 1 + packages\micropython\py\repl.c + + + runtime.c + 1 + packages\micropython\py\runtime.c + + + runtime_utils.c + 1 + packages\micropython\py\runtime_utils.c + + + scope.c + 1 + packages\micropython\py\scope.c + + + sequence.c + 1 + packages\micropython\py\sequence.c + + + showbc.c + 1 + packages\micropython\py\showbc.c + + + smallint.c + 1 + packages\micropython\py\smallint.c + + + stackctrl.c + 1 + packages\micropython\py\stackctrl.c + + + stream.c + 1 + packages\micropython\py\stream.c + + + unicode.c + 1 + packages\micropython\py\unicode.c + + + vm.c + 1 + packages\micropython\py\vm.c + + + vstr.c + 1 + packages\micropython\py\vstr.c + + + warning.c + 1 + packages\micropython\py\warning.c + + + readline.c + 1 + packages\micropython\lib\mp-readline\readline.c + + + interrupt_char.c + 1 + packages\micropython\lib\utils\interrupt_char.c + + + printf.c + 1 + packages\micropython\lib\utils\printf.c + + + pyexec.c + 1 + packages\micropython\lib\utils\pyexec.c + + + stdout_helpers.c + 1 + packages\micropython\lib\utils\stdout_helpers.c + + + machine_i2c.c + 1 + packages\micropython\extmod\machine_i2c.c + + + machine_mem.c + 1 + packages\micropython\extmod\machine_mem.c + + + machine_pinbase.c + 1 + packages\micropython\extmod\machine_pinbase.c + + + machine_pulse.c + 1 + packages\micropython\extmod\machine_pulse.c + + + machine_signal.c + 1 + packages\micropython\extmod\machine_signal.c + + + machine_spi.c + 1 + packages\micropython\extmod\machine_spi.c + + + modbtree.c + 1 + packages\micropython\extmod\modbtree.c + + + modframebuf.c + 1 + packages\micropython\extmod\modframebuf.c + + + modubinascii.c + 1 + packages\micropython\extmod\modubinascii.c + + + moductypes.c + 1 + packages\micropython\extmod\moductypes.c + + + moduhashlib.c + 1 + packages\micropython\extmod\moduhashlib.c + + + moduheapq.c + 1 + packages\micropython\extmod\moduheapq.c + + + modujson.c + 1 + packages\micropython\extmod\modujson.c + + + modurandom.c + 1 + packages\micropython\extmod\modurandom.c + + + modure.c + 1 + packages\micropython\extmod\modure.c + + + moduselect.c + 1 + packages\micropython\extmod\moduselect.c + + + modussl_axtls.c + 1 + packages\micropython\extmod\modussl_axtls.c + + + modussl_mbedtls.c + 1 + packages\micropython\extmod\modussl_mbedtls.c + + + modutimeq.c + 1 + packages\micropython\extmod\modutimeq.c + + + moduzlib.c + 1 + packages\micropython\extmod\moduzlib.c + + + modwebrepl.c + 1 + packages\micropython\extmod\modwebrepl.c + + + modwebsocket.c + 1 + packages\micropython\extmod\modwebsocket.c + + + uos_dupterm.c + 1 + packages\micropython\extmod\uos_dupterm.c + + + utime_mphal.c + 1 + packages\micropython\extmod\utime_mphal.c + + + vfs.c + 1 + packages\micropython\extmod\vfs.c + + + vfs_fat.c + 1 + packages\micropython\extmod\vfs_fat.c + + + vfs_fat_diskio.c + 1 + packages\micropython\extmod\vfs_fat_diskio.c + + + vfs_fat_file.c + 1 + packages\micropython\extmod\vfs_fat_file.c + + + vfs_reader.c + 1 + packages\micropython\extmod\vfs_reader.c + + + virtpin.c + 1 + packages\micropython\extmod\virtpin.c + + + _frozen_mpy.c + 1 + packages\micropython\port\_frozen_mpy.c + + + file.c + 1 + packages\micropython\port\file.c + + + help.c + 1 + packages\micropython\port\help.c + + + machine_pin.c + 1 + packages\micropython\port\machine_pin.c + + + modmachine.c + 1 + packages\micropython\port\modmachine.c + + + modnetwork.c + 1 + packages\micropython\port\modnetwork.c + + + modpyb.c + 1 + packages\micropython\port\modpyb.c + + + modrtthread.c + 1 + packages\micropython\port\modrtthread.c + + + moduos.c + 1 + packages\micropython\port\moduos.c + + + moduos_file.c + 1 + packages\micropython\port\moduos_file.c + + + modusocket.c + 1 + packages\micropython\port\modusocket.c + + + modutime.c + 1 + packages\micropython\port\modutime.c + + + mpy_main.c + 1 + packages\micropython\port\mpy_main.c + + + rtt_getchar.c + 1 + packages\micropython\port\rtt_getchar.c + + + uart_core.c + 1 + packages\micropython\port\uart_core.c + + + netutils.c + 1 + packages\micropython\lib\netutils\netutils.c + @@ -505,6 +1378,11 @@ DeviceDrivers + + pin.c + 1 + ..\..\components\drivers\misc\pin.c + serial.c 1 diff --git a/bsp/v2m-mps2/rtconfig.h b/bsp/v2m-mps2/rtconfig.h index 58e1ed58e3..4eea8c0d39 100644 --- a/bsp/v2m-mps2/rtconfig.h +++ b/bsp/v2m-mps2/rtconfig.h @@ -8,9 +8,7 @@ #define RT_NAME_MAX 8 #define RT_ALIGN_SIZE 4 -/* RT_THREAD_PRIORITY_8 is not set */ #define RT_THREAD_PRIORITY_32 -/* RT_THREAD_PRIORITY_256 is not set */ #define RT_THREAD_PRIORITY_MAX 32 #define RT_TICK_PER_SECOND 100 #define RT_DEBUG @@ -19,7 +17,6 @@ #define RT_DEBUG_THREAD 0 #define RT_USING_HOOK #define IDLE_THREAD_STACK_SIZE 256 -/* RT_USING_TIMER_SOFT is not set */ /* Inter-Thread communication */ @@ -28,26 +25,19 @@ #define RT_USING_EVENT #define RT_USING_MAILBOX #define RT_USING_MESSAGEQUEUE -/* RT_USING_SIGNALS is not set */ /* Memory Management */ -/* RT_USING_MEMPOOL is not set */ #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_HEAP /* Kernel Device Object */ #define RT_USING_DEVICE -/* RT_USING_INTERRUPT_INFO is not set */ #define RT_USING_CONSOLE #define RT_CONSOLEBUF_SIZE 128 #define RT_CONSOLE_DEVICE_NAME "uart0" -/* RT_USING_MODULE is not set */ #define ARCH_ARM #define ARCH_ARM_CORTEX_M #define ARCH_ARM_CORTEX_M7 @@ -60,7 +50,6 @@ /* C++ features */ -/* RT_USING_CPLUSPLUS is not set */ /* Command shell */ @@ -73,152 +62,100 @@ #define FINSH_THREAD_PRIORITY 20 #define FINSH_THREAD_STACK_SIZE 4096 #define FINSH_CMD_SIZE 80 -/* FINSH_USING_AUTH is not set */ #define FINSH_USING_MSH -/* FINSH_USING_MSH_DEFAULT is not set */ -/* FINSH_USING_MSH_ONLY is not set */ /* Device virtual file system */ -/* RT_USING_DFS is not set */ /* Device Drivers */ #define RT_USING_DEVICE_IPC #define RT_USING_SERIAL -/* RT_USING_CAN is not set */ -/* 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 */ +#define RT_USING_PIN /* Using USB */ -/* RT_USING_USB_HOST is not set */ -/* RT_USING_USB_DEVICE is not set */ /* POSIX layer and C standard library */ #define RT_USING_LIBC -/* RT_USING_PTHREADS is not set */ /* Network stack */ /* light weight TCP/IP stack */ -/* RT_USING_LWIP is not set */ /* 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) */ -/* RT_USING_VBUS is not set */ /* Utilities */ -/* RT_USING_LOGTRACE is not set */ -/* RT_USING_RYM is not set */ /* ARM CMSIS */ -/* RT_USING_CMSIS_OS is not set */ -/* RT_USING_RTT_CMSIS is not set */ /* RT-Thread online packages */ /* system packages */ -/* PKG_USING_PARTITION is not set */ -/* PKG_USING_PERSIMMON is not set */ -/* PKG_USING_SQLITE is not set */ -/* PKG_USING_RTI is not set */ +/* RT-Thread GUI Engine */ + /* 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 */ /* Marvell WiFi */ -/* PKG_USING_WLANMARVELL is not set */ /* Wiced WiFi */ -/* PKG_USING_WLAN_WICED is not set */ -/* PKG_USING_COAP is not set */ /* security packages */ -/* PKG_USING_MBEDTLS is not set */ -/* PKG_USING_libsodium is not set */ -/* PKG_USING_TINYCRYPT is not set */ /* language packages */ -/* PKG_USING_JERRYSCRIPT is not set */ -/* PKG_USING_MICROPYTHON is not set */ +#define PKG_USING_MICROPYTHON + +/* System Module */ + + +/* Tools Module */ + + +/* Network Module */ + + +/* Hardware Module */ + +#define PKG_MICROPYTHON_HEAP_SIZE 8192 +#define PKG_USING_MICROPYTHON_LATEST_VERSION /* multimedia packages */ -/* PKG_USING_OPENMV is not set */ /* 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 */ -/* PKG_USING_FASTLZ is not set */ -/* PKG_USING_MINILZO is not set */ /* example package: hello */ -/* PKG_USING_HELLO is not set */ /* 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 */ -/* 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 */ -/* PKG_USING_WEBNET is not set */ -/* PKG_USING_COREMARK is not set */ -/* PKG_USING_POWER_MANAGER is not set */ #define SOC_V2M_MPS2 #define RT_USING_UART #define RT_USING_UART0