This commit is contained in:
james 2024-08-15 23:31:04 +08:00
parent 5383047efd
commit dcb1d811dd
6 changed files with 372 additions and 1 deletions

2
.gitignore vendored
View File

@ -32,7 +32,7 @@ Midea-X1
GPATH
GRTAGS
GTAGS
.vscode
JLinkLog.txt
JLinkSettings.ini
DebugConfig/

91
.vscode/c_cpp_properties.json vendored Normal file
View File

@ -0,0 +1,91 @@
{
"configurations": [
{
"name": "rt-thread",
"defines": [
"RT_USING_LIBC",
"RT_USING_NEWLIBC",
"STM32F407xx",
"USE_HAL_DRIVER",
"_POSIX_C_SOURCE=1",
"__RTTHREAD__"
],
"intelliSenseMode": "gcc-arm",
"compilerPath": "c:/Develop/env2/tools/gnu_gcc/arm_gcc/mingw/bin/arm-none-eabi-gcc",
"cStandard": "c99",
"cppStandard": "c++11",
"compileCommands": "build/compile_commands.json",
"includePath": [
"packages\\aht10-latest",
"packages\\ali-iotkit-v3.0.2\\iotkit-embedded\\src\\infra",
"packages\\ali-iotkit-v3.0.2\\iotkit-embedded\\src\\mqtt\\impl",
"packages\\ali-iotkit-v3.0.2\\iotkit-embedded\\src\\mqtt",
"packages\\ali-iotkit-v3.0.2\\iotkit-embedded\\src\\dev_model",
"packages\\ali-iotkit-v3.0.2\\iotkit-embedded\\src\\dev_model\\client",
"packages\\ali-iotkit-v3.0.2\\iotkit-embedded\\src\\dev_model\\server",
"packages\\ali-iotkit-v3.0.2\\iotkit-embedded\\src\\dev_sign",
"packages\\ali-iotkit-v3.0.2\\iotkit-embedded\\wrappers",
"applications",
"Day1",
"Day2",
"Day3",
"Day4",
"Day5",
"packages\\cJSON-v1.7.17",
"rt-thread\\components\\libc\\compilers\\common\\include",
"rt-thread\\components\\libc\\compilers\\newlib",
"rt-thread\\components\\drivers\\include",
"rt-thread\\components\\drivers\\include\\drivers",
"rt-thread\\components\\drivers\\spi",
"rt-thread\\components\\drivers\\spi\\sfud\\inc",
"rt-thread\\components\\drivers\\wlan",
"board",
"board\\CubeMX_Config\\Inc",
"board\\ports",
"board\\ports\\fal",
"board\\ports\\lcd",
"libraries\\HAL_Drivers\\drivers",
"libraries\\HAL_Drivers\\drivers\\config",
"libraries\\HAL_Drivers\\drivers\\drv_flash",
"libraries\\HAL_Drivers",
"libraries\\HAL_Drivers\\CMSIS\\Include",
"rt-thread\\components\\fal\\inc",
"rt-thread\\components\\dfs\\dfs_v1\\include",
"rt-thread\\components\\dfs\\dfs_v1\\filesystems\\devfs",
"rt-thread\\components\\dfs\\dfs_v1\\filesystems\\elmfat",
"rt-thread\\components\\dfs\\dfs_v1\\filesystems\\romfs",
"rt-thread\\components\\finsh",
"packages\\FlexibleButton-v1.0.0",
".",
"rt-thread\\include",
"packages\\kernel_samples-latest\\en",
"rt-thread\\components\\legacy",
"rt-thread\\components\\legacy\\dfs",
"rt-thread\\libcpu\\arm\\common",
"rt-thread\\libcpu\\arm\\cortex-m4",
"libraries\\STM32F4xx_HAL\\STM32F4xx_HAL_Driver\\Inc",
"libraries\\STM32F4xx_HAL\\CMSIS\\Device\\ST\\STM32F4xx\\Include",
"rt-thread\\components\\net\\lwip\\lwip-2.0.3\\src\\include",
"rt-thread\\components\\net\\lwip\\lwip-2.0.3\\src\\include\\ipv4",
"rt-thread\\components\\net\\lwip\\lwip-2.0.3\\src\\include\\netif",
"rt-thread\\components\\net\\lwip\\port",
"rt-thread\\components\\libc\\posix\\io\\epoll",
"rt-thread\\components\\libc\\posix\\io\\eventfd",
"rt-thread\\components\\libc\\posix\\io\\poll",
"rt-thread\\components\\libc\\posix\\ipc",
"packages\\rw007-v2.1.0",
"packages\\rw007-v2.1.0\\inc",
"rt-thread\\components\\net\\netdev\\include",
"rt-thread\\components\\net\\sal\\include",
"rt-thread\\components\\net\\sal\\include\\socket",
"rt-thread\\components\\net\\sal\\impl",
"rt-thread\\components\\net\\sal\\include\\dfs_net",
"rt-thread\\components\\net\\sal\\include\\socket\\sys_socket",
"rt-thread\\components\\utilities\\ulog",
"${workspaceFolder}/dayandnight",
"${workspaceFolder}/packages/netutils-latest/ntp"
]
}
],
"version": 4
}

30
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,30 @@
{
// 使 IntelliSense
//
// 访: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "rt-spark-openocd",
// "cwd": "${workspaceFolder}",
"executable": "${workspaceRoot}/rt-thread.elf",
"request": "launch",
"type": "cortex-debug",
"runToEntryPoint": "main",
"targetId": "STM32F407ZG",
"servertype": "openocd",
"configFiles": [
"interface/stlink-v2.cfg",
"target/stm32f4x.cfg"
],
"armToolchainPath": "C:/Develop/env2/tools/gnu_gcc/arm_gcc/mingw/bin",
"gdbPath": "C:/Develop/env2/tools/gnu_gcc/arm_gcc/mingw/bin/arm-none-eabi-gdb.exe",
// "serverpath": "C:/Develop/OpenOCD/bin/openocd.exe",
// "cortex-debug.openocdPath": "C:/Develop/OpenOCD/bin/openocd.exe"
}
]
}

28
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,28 @@
{
"files.associations": {
"*.txt": "dockercompose",
"board.h": "c",
"rtthread.h": "c",
"drv_gpio.h": "c",
"rtdevice.h": "c",
"led": "c",
"rtdbg.h": "c",
"drv_common.h": "c",
"my_func.h": "c",
"stdbool.h": "c",
"mysnake.h": "c",
"rthw.h": "c",
"hwtimer.h": "c",
"wewin.h": "c",
"rttlogo.h": "c",
"chrono": "c",
"condition_variable": "c",
"ctime": "c",
"mutex": "c",
"thread": "c",
"stdio.h": "c",
"rtatomic.h": "c",
"time.h": "c",
"icmp.h": "c"
}
}

213
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,213 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"windows": {
"options": {
"shell": {
"executable": "cmd.exe",
"args": [
"/d",
"/c",
"c:\\develop\\env2\\tools\\bin\\env-init.bat && "
]
}
},
},
"tasks": [
{
"label": "更新软件包",
"type": "shell",
"command": "call ${workspaceFolder}\\tools\\pkgs_update.bat",
"problemMatcher": []
},
{
"label": "PyConfig",
"type": "shell",
"command": "tools\\mc_py.bat",
"problemMatcher": []
},
{
"label": "编译(j8)",
"type": "shell",
"command": "scons",
"args": [
"-j8"
],
"options": {},
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "编译(j1)",
"type": "shell",
"command": "scons",
"args": [
"-j1"
],
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
},
{
"label": "编译下载(j1)",
"type": "shell",
"command": "scons -j1 && copy /z ${workspaceFolder}\\rtthread.bin g:\\",
"args": [],
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
},
{
"label": "编译下载(j8)",
"type": "shell",
// "command": "scons -j8 && pyocd flash -t stm32l431rctx ${workspaceFolder}/rt-thread.elf",
"command": "scons -j8 && copy /z ${workspaceFolder}\\rtthread.bin g:\\",
"args": [],
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
},
{
"label": "清理",
"type": "shell",
"command": "scons -c && cd ${workspaceFolder} && rm -fv *.elf *.hex *.bin *.map",
"args": [],
"problemMatcher": []
},
{
"label": "下载固件(pyocd)",
"type": "shell",
// "command": "pyocd flash -t stm32l431rctx ${workspaceFolder}/rt-thread.elf",
"command": "copy /z ${workspaceFolder}/rtthread.bin g:\\",
"args": [],
"args": [],
"problemMatcher": []
},
{
"label": "更新 C/C++ 路径",
"type": "shell",
"command": "scons --target=vsc -s",
"args": [],
"problemMatcher": []
},
{
"label": "全部编译(j1)",
"type": "shell",
"command": "scons -c && cd ${workspaceFolder} && rm -fv *.elf *.hex *.bin *.map && scons -j1",
"args": [],
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
},
{
"label": "全部编译(j8)",
"type": "shell",
"command": "scons -c && cd ${workspaceFolder} && rm -fv *.elf *.hex *.bin *.map && scons -j8",
"args": [],
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
},
{
"label": "全部编译下载(j8)",
"type": "shell",
// "command": "scons -c && cd ${workspaceFolder} && rm -fv *.elf *.hex *.bin *.map && scons -j8 && pyocd flash -t stm32l431rctx ${workspaceFolder}/rt-thread.elf",
"command": "scons -c && cd ${workspaceFolder} && rm -fv *.elf *.hex *.bin *.map && scons -j8 && copy /z ${workspaceFolder}/rtthread.bin g:\\",
"args": [],
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
},
]
}

View File

@ -0,0 +1,9 @@
# 红外遥控贪吃蛇/显示+上传温度等数据到云平台
**梁浚超** 导师:**李镇鸿**
![简略教程封面](/my_picture/简略教程封面.jpg)
[成果展示视频链接(new)(https://www.bilibili.com/video/BV1VqeceTEts) ](https://www.bilibili.com/video/BV1VqeceTEts)
[简略教程视频链接(https://www.bilibili.com/video/BV15uYqeME6t)](https://www.bilibili.com/video/BV15uYqeME6t)
[成果展示视频链接(https://www.bilibili.com/video/BV1x3YSesEcw)](https://www.bilibili.com/video/BV1x3YSesEcw)
## 主要内容
1.