diff options
Diffstat (limited to 'bsp/lpc408x')
| -rw-r--r-- | bsp/lpc408x/.config | 46 | ||||
| -rw-r--r-- | bsp/lpc408x/project.uvproj | 70 | ||||
| -rw-r--r-- | bsp/lpc408x/project.uvprojx | 70 | ||||
| -rw-r--r-- | bsp/lpc408x/rtconfig.h | 20 |
4 files changed, 137 insertions, 69 deletions
diff --git a/bsp/lpc408x/.config b/bsp/lpc408x/.config index 7ffb5f8906..d26436bcc5 100644 --- a/bsp/lpc408x/.config +++ b/bsp/lpc408x/.config @@ -9,6 +9,7 @@ CONFIG_RT_NAME_MAX=8 # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMART is not set +# CONFIG_RT_USING_AMP is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=8 # CONFIG_RT_THREAD_PRIORITY_8 is not set @@ -31,18 +32,10 @@ CONFIG_IDLE_THREAD_STACK_SIZE=256 # CONFIG_RT_KSERVICE_USING_TINY_SIZE is not set # CONFIG_RT_USING_TINY_FFS is not set # CONFIG_RT_KPRINTF_USING_LONGLONG is not set -CONFIG_RT_DEBUG=y -CONFIG_RT_DEBUG_COLOR=y -# CONFIG_RT_DEBUG_INIT_CONFIG is not set -# CONFIG_RT_DEBUG_THREAD_CONFIG is not set -# CONFIG_RT_DEBUG_SCHEDULER_CONFIG is not set -# CONFIG_RT_DEBUG_IPC_CONFIG is not set -# CONFIG_RT_DEBUG_TIMER_CONFIG is not set -# CONFIG_RT_DEBUG_IRQ_CONFIG is not set -# CONFIG_RT_DEBUG_MEM_CONFIG is not set -# CONFIG_RT_DEBUG_SLAB_CONFIG is not set -# CONFIG_RT_DEBUG_MEMHEAP_CONFIG is not set -# CONFIG_RT_DEBUG_MODULE_CONFIG is not set +CONFIG_RT_USING_DEBUG=y +CONFIG_RT_DEBUGING_COLOR=y +CONFIG_RT_DEBUGING_CONTEXT=y +# CONFIG_RT_DEBUGING_INIT is not set # # Inter-Thread communication @@ -52,6 +45,7 @@ CONFIG_RT_USING_MUTEX=y CONFIG_RT_USING_EVENT=y CONFIG_RT_USING_MAILBOX=y CONFIG_RT_USING_MESSAGEQUEUE=y +# CONFIG_RT_USING_MESSAGEQUEUE_PRIORITY is not set # CONFIG_RT_USING_SIGNALS is not set # @@ -83,7 +77,7 @@ CONFIG_RT_USING_DEVICE=y CONFIG_RT_USING_CONSOLE=y CONFIG_RT_CONSOLEBUF_SIZE=128 CONFIG_RT_CONSOLE_DEVICE_NAME="uart0" -CONFIG_RT_VER_NUM=0x50001 +CONFIG_RT_VER_NUM=0x50002 # CONFIG_RT_USING_STDC_ATOMIC is not set # CONFIG_RT_USING_CACHE is not set CONFIG_RT_USING_HW_ATOMIC=y @@ -117,6 +111,7 @@ CONFIG_FINSH_USING_DESCRIPTION=y # CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set # CONFIG_FINSH_USING_AUTH is not set CONFIG_FINSH_ARG_MAX=10 +CONFIG_FINSH_USING_OPTION_COMPLETION=y # # DFS: device virtual file system @@ -158,6 +153,7 @@ CONFIG_RT_USING_DFS_DEVFS=y # CONFIG_RT_USING_DFS_CROMFS is not set # CONFIG_RT_USING_DFS_RAMFS is not set # CONFIG_RT_USING_DFS_TMPFS is not set +# CONFIG_RT_USING_DFS_MQUEUE is not set # CONFIG_RT_USING_FAL is not set # @@ -201,6 +197,7 @@ CONFIG_RT_USING_PIN=y # CONFIG_RT_USING_DEV_BUS is not set # CONFIG_RT_USING_WIFI is not set # CONFIG_RT_USING_VIRTIO is not set +CONFIG_RT_USING_KTIME=y # # Using USB @@ -212,7 +209,19 @@ CONFIG_RT_USING_PIN=y # # C/C++ and POSIX layer # -CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 + +# +# ISO-ANSI C layer +# + +# +# Timezone and Daylight Saving Time +# +# CONFIG_RT_LIBC_USING_FULL_TZ_DST is not set +CONFIG_RT_LIBC_USING_LIGHT_TZ_DST=y +CONFIG_RT_LIBC_TZ_DEFAULT_HOUR=8 +CONFIG_RT_LIBC_TZ_DEFAULT_MIN=0 +CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0 # # POSIX (Portable Operating System Interface) layer @@ -251,6 +260,7 @@ CONFIG_RT_USING_POSIX_DELAY=y # CONFIG_RT_USING_ULOG is not set # CONFIG_RT_USING_UTEST is not set # CONFIG_RT_USING_VAR_EXPORT is not set +# CONFIG_RT_USING_RESOURCE_ID is not set # CONFIG_RT_USING_ADT is not set # CONFIG_RT_USING_RT_LINK is not set # CONFIG_RT_USING_VBUS is not set @@ -278,7 +288,6 @@ CONFIG_RT_USING_POSIX_DELAY=y # CONFIG_PKG_USING_KAWAII_MQTT is not set # CONFIG_PKG_USING_BC28_MQTT is not set # CONFIG_PKG_USING_WEBTERMINAL is not set -# CONFIG_PKG_USING_LIBMODBUS is not set # CONFIG_PKG_USING_FREEMODBUS is not set # CONFIG_PKG_USING_NANOPB is not set @@ -714,6 +723,8 @@ CONFIG_RT_USING_POSIX_DELAY=y # CONFIG_PKG_USING_LRF_NV7LIDAR is not set # CONFIG_PKG_USING_AIP650 is not set # CONFIG_PKG_USING_FINGERPRINT is not set +# CONFIG_PKG_USING_BT_ECB02C is not set +# CONFIG_PKG_USING_UAT is not set # CONFIG_PKG_USING_SPI_TOOLS is not set # @@ -807,7 +818,7 @@ CONFIG_RT_USING_POSIX_DELAY=y # CONFIG_PKG_USING_RTDUINO is not set # -# Projects +# Projects and Demos # # CONFIG_PKG_USING_ARDUINO_MSGQ_C_CPP_DEMO is not set # CONFIG_PKG_USING_ARDUINO_ULTRASOUND_RADAR is not set @@ -956,12 +967,11 @@ CONFIG_RT_USING_POSIX_DELAY=y # # Display # -# CONFIG_PKG_USING_ARDUINO_TFT_ESPI is not set # CONFIG_PKG_USING_ARDUINO_ADAFRUIT_GFX_LIBRARY is not set # CONFIG_PKG_USING_ARDUINO_U8G2 is not set -# CONFIG_PKG_USING_ARDUINO_U8GLIB_ARDUINO is not set # CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ST7735 is not set # CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SSD1306 is not set +# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ILI9341 is not set # CONFIG_PKG_USING_SEEED_TM1637 is not set # diff --git a/bsp/lpc408x/project.uvproj b/bsp/lpc408x/project.uvproj index 720406b0c1..86c4ce7edf 100644 --- a/bsp/lpc408x/project.uvproj +++ b/bsp/lpc408x/project.uvproj @@ -359,7 +359,7 @@ <MiscControls /> <Define>__STDC_LIMIT_MACROS, CORE_M4, RT_USING_LIBC, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, RT_USING_ARMLIBC</Define> <Undefine /> - <IncludePath>applications;..\..\components\dfs\filesystems\devfs;..\..\components\libc\compilers\common\extension;..\..\components\drivers\include;..\..\libcpu\arm\cortex-m4;..\..\components\finsh;..\..\components\drivers\include;..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\components\libc\posix\io\stdio;..\..\components\dfs\filesystems\elmfat;Libraries\CMSIS\Include;Libraries\Drivers\include;..\..\components\dfs\include;drivers;..\..\include;..\..\components\drivers\include;..\..\libcpu\arm\common;.;..\..\components\libc\posix\ipc;Libraries\Device\NXP\LPC407x_8x_177x_8x\Include;..\..\components\libc\posix\io\poll;..\..\components\libc\compilers\common\include;..\..\components\libc\posix\delay</IncludePath> + <IncludePath>..\..\components\libc\posix\io\poll;..\..\components\libc\compilers\common\extension;..\..\components\drivers\ktime\inc;Libraries\CMSIS\Include;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\ktime;..\..\include;..\..\components\libc\posix\delay;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\dfs\dfs_v1\include;..\..\components\drivers\include;..\..\components\libc\compilers\common\include;..\..\components\libc\posix\ipc;..\..\components\libc\posix\io\eventfd;..\..\components\drivers\include;applications;..\..\components\dfs\dfs_v1\filesystems\elmfat;..\..\libcpu\arm\common;..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\components\dfs\dfs_v1\filesystems\devfs;Libraries\Drivers\include;..\..\components\libc\posix\io\epoll;.;drivers;..\..\components\finsh;Libraries\Device\NXP\LPC407x_8x_177x_8x\Include</IncludePath> </VariousControls> </Cads> <Aads> @@ -434,13 +434,6 @@ </Files> <Files> <File> - <FileName>cstdio.c</FileName> - <FileType>1</FileType> - <FilePath>..\..\components\libc\compilers\common\cstdio.c</FilePath> - </File> - </Files> - <Files> - <File> <FileName>cstdlib.c</FileName> <FileType>1</FileType> <FilePath>..\..\components\libc\compilers\common\cstdlib.c</FilePath> @@ -462,6 +455,13 @@ </Files> <Files> <File> + <FileName>cunistd.c</FileName> + <FileType>1</FileType> + <FilePath>..\..\components\libc\compilers\common\cunistd.c</FilePath> + </File> + </Files> + <Files> + <File> <FileName>cwchar.c</FileName> <FileType>1</FileType> <FilePath>..\..\components\libc\compilers\common\cwchar.c</FilePath> @@ -510,6 +510,13 @@ <GroupName>DeviceDrivers</GroupName> <Files> <File> + <FileName>device.c</FileName> + <FileType>1</FileType> + <FilePath>..\..\components\drivers\core\device.c</FilePath> + </File> + </Files> + <Files> + <File> <FileName>completion.c</FileName> <FileType>1</FileType> <FilePath>..\..\components\drivers\ipc\completion.c</FilePath> @@ -595,56 +602,56 @@ <File> <FileName>devfs.c</FileName> <FileType>1</FileType> - <FilePath>..\..\components\dfs\filesystems\devfs\devfs.c</FilePath> + <FilePath>..\..\components\dfs\dfs_v1\filesystems\devfs\devfs.c</FilePath> </File> </Files> <Files> <File> <FileName>dfs_elm.c</FileName> <FileType>1</FileType> - <FilePath>..\..\components\dfs\filesystems\elmfat\dfs_elm.c</FilePath> + <FilePath>..\..\components\dfs\dfs_v1\filesystems\elmfat\dfs_elm.c</FilePath> </File> </Files> <Files> <File> <FileName>ff.c</FileName> <FileType>1</FileType> - <FilePath>..\..\components\dfs\filesystems\elmfat\ff.c</FilePath> + <FilePath>..\..\components\dfs\dfs_v1\filesystems\elmfat\ff.c</FilePath> </File> </Files> <Files> <File> <FileName>ffunicode.c</FileName> <FileType>1</FileType> - <FilePath>..\..\components\dfs\filesystems\elmfat\ffunicode.c</FilePath> + <FilePath>..\..\components\dfs\dfs_v1\filesystems\elmfat\ffunicode.c</FilePath> </File> </Files> <Files> <File> <FileName>dfs.c</FileName> <FileType>1</FileType> - <FilePath>..\..\components\dfs\src\dfs.c</FilePath> + <FilePath>..\..\components\dfs\dfs_v1\src\dfs.c</FilePath> </File> </Files> <Files> <File> <FileName>dfs_file.c</FileName> <FileType>1</FileType> - <FilePath>..\..\components\dfs\src\dfs_file.c</FilePath> + <FilePath>..\..\components\dfs\dfs_v1\src\dfs_file.c</FilePath> </File> </Files> <Files> <File> <FileName>dfs_fs.c</FileName> <FileType>1</FileType> - <FilePath>..\..\components\dfs\src\dfs_fs.c</FilePath> + <FilePath>..\..\components\dfs\dfs_v1\src\dfs_fs.c</FilePath> </File> </Files> <Files> <File> <FileName>dfs_posix.c</FileName> <FileType>1</FileType> - <FilePath>..\..\components\dfs\src\dfs_posix.c</FilePath> + <FilePath>..\..\components\dfs\dfs_v1\src\dfs_posix.c</FilePath> </File> </Files> </Group> @@ -704,13 +711,6 @@ </Files> <Files> <File> - <FileName>device.c</FileName> - <FileType>1</FileType> - <FilePath>..\..\src\device.c</FilePath> - </File> - </Files> - <Files> - <File> <FileName>idle.c</FileName> <FileType>1</FileType> <FilePath>..\..\src\idle.c</FilePath> @@ -781,6 +781,30 @@ </Files> </Group> <Group> + <GroupName>ktime</GroupName> + <Files> + <File> + <FileName>cputimer.c</FileName> + <FileType>1</FileType> + <FilePath>..\..\components\drivers\ktime\src\cputimer.c</FilePath> + </File> + </Files> + <Files> + <File> + <FileName>boottime.c</FileName> + <FileType>1</FileType> + <FilePath>..\..\components\drivers\ktime\src\boottime.c</FilePath> + </File> + </Files> + <Files> + <File> + <FileName>hrtimer.c</FileName> + <FileType>1</FileType> + <FilePath>..\..\components\drivers\ktime\src\hrtimer.c</FilePath> + </File> + </Files> + </Group> + <Group> <GroupName>Libraries</GroupName> <Files> <File> diff --git a/bsp/lpc408x/project.uvprojx b/bsp/lpc408x/project.uvprojx index 59ec97e5f2..fd296ae7a0 100644 --- a/bsp/lpc408x/project.uvprojx +++ b/bsp/lpc408x/project.uvprojx @@ -333,7 +333,7 @@ <MiscControls>--library_interface=armcc --library_type=standardlib --diag_suppress=66,1296,186</MiscControls> <Define>__STDC_LIMIT_MACROS, CORE_M4, RT_USING_LIBC, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, RT_USING_ARMLIBC</Define> <Undefine /> - <IncludePath>applications;..\..\components\dfs\filesystems\devfs;..\..\components\libc\compilers\common\extension;..\..\components\drivers\include;..\..\libcpu\arm\cortex-m4;..\..\components\finsh;..\..\components\drivers\include;..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\components\libc\posix\io\stdio;..\..\components\dfs\filesystems\elmfat;Libraries\CMSIS\Include;Libraries\Drivers\include;..\..\components\dfs\include;drivers;..\..\include;..\..\components\drivers\include;..\..\libcpu\arm\common;.;..\..\components\libc\posix\ipc;Libraries\Device\NXP\LPC407x_8x_177x_8x\Include;..\..\components\libc\posix\io\poll;..\..\components\libc\compilers\common\include;..\..\components\libc\posix\delay</IncludePath> + <IncludePath>..\..\components\libc\posix\io\poll;..\..\components\libc\compilers\common\extension;..\..\components\drivers\ktime\inc;Libraries\CMSIS\Include;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\ktime;..\..\include;..\..\components\libc\posix\delay;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\dfs\dfs_v1\include;..\..\components\drivers\include;..\..\components\libc\compilers\common\include;..\..\components\libc\posix\ipc;..\..\components\libc\posix\io\eventfd;..\..\components\drivers\include;applications;..\..\components\dfs\dfs_v1\filesystems\elmfat;..\..\libcpu\arm\common;..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\components\dfs\dfs_v1\filesystems\devfs;Libraries\Drivers\include;..\..\components\libc\posix\io\epoll;.;drivers;..\..\components\finsh;Libraries\Device\NXP\LPC407x_8x_177x_8x\Include</IncludePath> </VariousControls> </Cads> <Aads> @@ -409,13 +409,6 @@ </Files> <Files> <File> - <FileName>cstdio.c</FileName> - <FileType>1</FileType> - <FilePath>..\..\components\libc\compilers\common\cstdio.c</FilePath> - </File> - </Files> - <Files> - <File> <FileName>cstdlib.c</FileName> <FileType>1</FileType> <FilePath>..\..\components\libc\compilers\common\cstdlib.c</FilePath> @@ -437,6 +430,13 @@ </Files> <Files> <File> + <FileName>cunistd.c</FileName> + <FileType>1</FileType> + <FilePath>..\..\components\libc\compilers\common\cunistd.c</FilePath> + </File> + </Files> + <Files> + <File> <FileName>cwchar.c</FileName> <FileType>1</FileType> <FilePath>..\..\components\libc\compilers\common\cwchar.c</FilePath> @@ -485,6 +485,13 @@ <GroupName>DeviceDrivers</GroupName> <Files> <File> + <FileName>device.c</FileName> + <FileType>1</FileType> + <FilePath>..\..\components\drivers\core\device.c</FilePath> + </File> + </Files> + <Files> + <File> <FileName>completion.c</FileName> <FileType>1</FileType> <FilePath>..\..\components\drivers\ipc\completion.c</FilePath> @@ -570,56 +577,56 @@ <File> <FileName>devfs.c</FileName> <FileType>1</FileType> - <FilePath>..\..\components\dfs\filesystems\devfs\devfs.c</FilePath> + <FilePath>..\..\components\dfs\dfs_v1\filesystems\devfs\devfs.c</FilePath> </File> </Files> <Files> <File> <FileName>dfs_elm.c</FileName> <FileType>1</FileType> - <FilePath>..\..\components\dfs\filesystems\elmfat\dfs_elm.c</FilePath> + <FilePath>..\..\components\dfs\dfs_v1\filesystems\elmfat\dfs_elm.c</FilePath> </File> </Files> <Files> <File> <FileName>ff.c</FileName> <FileType>1</FileType> - <FilePath>..\..\components\dfs\filesystems\elmfat\ff.c</FilePath> + <FilePath>..\..\components\dfs\dfs_v1\filesystems\elmfat\ff.c</FilePath> </File> </Files> <Files> <File> <FileName>ffunicode.c</FileName> <FileType>1</FileType> - <FilePath>..\..\components\dfs\filesystems\elmfat\ffunicode.c</FilePath> + <FilePath>..\..\components\dfs\dfs_v1\filesystems\elmfat\ffunicode.c</FilePath> </File> </Files> <Files> <File> <FileName>dfs.c</FileName> <FileType>1</FileType> - <FilePath>..\..\components\dfs\src\dfs.c</FilePath> + <FilePath>..\..\components\dfs\dfs_v1\src\dfs.c</FilePath> </File> </Files> <Files> <File> <FileName>dfs_file.c</FileName> <FileType>1</FileType> - <FilePath>..\..\components\dfs\src\dfs_file.c</FilePath> + <FilePath>..\..\components\dfs\dfs_v1\src\dfs_file.c</FilePath> </File> </Files> <Files> <File> <FileName>dfs_fs.c</FileName> <FileType>1</FileType> - <FilePath>..\..\components\dfs\src\dfs_fs.c</FilePath> + <FilePath>..\..\components\dfs\dfs_v1\src\dfs_fs.c</FilePath> </File> </Files> <Files> <File> <FileName>dfs_posix.c</FileName> <FileType>1</FileType> - <FilePath>..\..\components\dfs\src\dfs_posix.c</FilePath> + <FilePath>..\..\components\dfs\dfs_v1\src\dfs_posix.c</FilePath> </File> </Files> </Group> @@ -679,13 +686,6 @@ </Files> <Files> <File> - <FileName>device.c</FileName> - <FileType>1</FileType> - <FilePath>..\..\src\device.c</FilePath> - </File> - </Files> - <Files> - <File> <FileName>idle.c</FileName> <FileType>1</FileType> <FilePath>..\..\src\idle.c</FilePath> @@ -756,6 +756,30 @@ </Files> </Group> <Group> + <GroupName>ktime</GroupName> + <Files> + <File> + <FileName>boottime.c</FileName> + <FileType>1</FileType> + <FilePath>..\..\components\drivers\ktime\src\boottime.c</FilePath> + </File> + </Files> + <Files> + <File> + <FileName>cputimer.c</FileName> + <FileType>1</FileType> + <FilePath>..\..\components\drivers\ktime\src\cputimer.c</FilePath> + </File> + </Files> + <Files> + <File> + <FileName>hrtimer.c</FileName> + <FileType>1</FileType> + <FilePath>..\..\components\drivers\ktime\src\hrtimer.c</FilePath> + </File> + </Files> + </Group> + <Group> <GroupName>Libraries</GroupName> <Files> <File> diff --git a/bsp/lpc408x/rtconfig.h b/bsp/lpc408x/rtconfig.h index e8313d5ca9..b9151dd17f 100644 --- a/bsp/lpc408x/rtconfig.h +++ b/bsp/lpc408x/rtconfig.h @@ -20,8 +20,9 @@ /* kservice optimization */ -#define RT_DEBUG -#define RT_DEBUG_COLOR +#define RT_USING_DEBUG +#define RT_DEBUGING_COLOR +#define RT_DEBUGING_CONTEXT /* Inter-Thread communication */ @@ -46,7 +47,7 @@ #define RT_USING_CONSOLE #define RT_CONSOLEBUF_SIZE 128 #define RT_CONSOLE_DEVICE_NAME "uart0" -#define RT_VER_NUM 0x50001 +#define RT_VER_NUM 0x50002 #define RT_USING_HW_ATOMIC #define RT_USING_CPU_FFS #define ARCH_ARM @@ -72,6 +73,7 @@ #define MSH_USING_BUILT_IN_COMMANDS #define FINSH_USING_DESCRIPTION #define FINSH_ARG_MAX 10 +#define FINSH_USING_OPTION_COMPLETION /* DFS: device virtual file system */ @@ -108,13 +110,21 @@ #define RT_SERIAL_USING_DMA #define RT_SERIAL_RB_BUFSZ 64 #define RT_USING_PIN +#define RT_USING_KTIME /* Using USB */ /* C/C++ and POSIX layer */ -#define RT_LIBC_DEFAULT_TIMEZONE 8 +/* ISO-ANSI C layer */ + +/* Timezone and Daylight Saving Time */ + +#define RT_LIBC_USING_LIGHT_TZ_DST +#define RT_LIBC_TZ_DEFAULT_HOUR 8 +#define RT_LIBC_TZ_DEFAULT_MIN 0 +#define RT_LIBC_TZ_DEFAULT_SEC 0 /* POSIX (Portable Operating System Interface) layer */ @@ -217,7 +227,7 @@ /* Arduino libraries */ -/* Projects */ +/* Projects and Demos */ /* Sensors */ |
