-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit de0949c Author: MayGe <[email protected]> Date: Mon Oct 21 19:53:37 2024 +0800 feat: Lab3 Sol added (#47) * 修改: Labs/lab3/Demo/README.md 新文件: Labs/lab3/Demo/README.md.bak 修改: Labs/lab3/README.md * 新文件: Labs/Solutions/Lab3-Sol.tar.gz commit 92eaa61 Author: MayGe <[email protected]> Date: Mon Oct 21 19:52:14 2024 +0800 perf: 修改了README,现在更明确,更简单了 (#46) * 修改: Labs/lab3/Demo/README.md 新文件: Labs/lab3/Demo/README.md.bak 修改: Labs/lab3/README.md * 新文件: Labs/Solutions/Lab3-Sol.tar.gz commit bd786e7 Author: focused_xy <[email protected]> Date: Sun Oct 20 14:53:34 2024 +0800 format Lab3 README
- Loading branch information
1 parent
3484d15
commit b9bcaa1
Showing
27 changed files
with
2,862 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## 任务答题卡 | ||
### 任务一 文件配对 | ||
**Q1:task0.c对应哪个.ihx文件呢** | ||
- [ ] maomao.ihx | ||
- [ ] miaomiao.ihx | ||
- [ ] wangwang.ihx | ||
|
||
**Q2:task1.c对应哪个.ihx文件呢** | ||
- [ ] maomao.ihx | ||
- [ ] miaomiao.ihx | ||
- [ ] wangwang.ihx | ||
|
||
**Q3:task2.c对应哪个.ihx文件呢** | ||
- [ ] maomao.ihx | ||
- [ ] miaomiao.ihx | ||
- [ ] wangwang.ihx | ||
|
||
### 任务二 完善呼吸灯 | ||
**Q4:请把代码输入到代码框中**(C语言代码和编译生成的十六进制数据都粘帖上来吧) | ||
|
||
**这里是C语言代码** | ||
```c | ||
|
||
``` | ||
|
||
**这里是编译产生的十六进制数据** | ||
```hex | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
BasedOnStyle: Microsoft | ||
Language: Cpp | ||
|
||
################################### | ||
# indent conf | ||
################################### | ||
|
||
UseTab: Never | ||
IndentWidth: 4 | ||
TabWidth: 4 | ||
ColumnLimit: 0 | ||
AccessModifierOffset: -4 | ||
NamespaceIndentation: All | ||
FixNamespaceComments: false | ||
BreakBeforeBraces: Linux | ||
|
||
################################### | ||
# other styles | ||
################################### | ||
|
||
# | ||
# for more conf, you can ref: https://clang.llvm.org/docs/ClangFormatStyleOptions.html | ||
# | ||
|
||
AllowShortIfStatementsOnASingleLine: true | ||
|
||
AllowShortLoopsOnASingleLine: true | ||
|
||
AllowShortBlocksOnASingleLine: true | ||
|
||
IndentCaseLabels: true | ||
|
||
SortIncludes: false | ||
|
||
AlignConsecutiveMacros: AcrossEmptyLines | ||
|
||
AlignConsecutiveAssignments: Consecutive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
########################################################################################## | ||
# Append Compiler Options For Source Files | ||
# | ||
# syntax: | ||
# <your matcher expr>: <your compiler command> | ||
# | ||
# examples: | ||
# 'main.cpp': --cpp11 -Og ... | ||
# 'src/*.c': -gnu -O2 ... | ||
# 'src/lib/**/*.cpp': --cpp11 -Os ... | ||
# '!Application/*.c': -O0 | ||
# '**/*.c': -O2 -gnu ... | ||
# | ||
# For more syntax, please refer to: https://www.npmjs.com/package/micromatch | ||
# | ||
########################################################################################## | ||
|
||
version: '1.0' | ||
|
||
# | ||
# for source files with filesystem paths | ||
# | ||
files: | ||
# './test/**/*.c': --c99 | ||
|
||
# | ||
# for source files with virtual paths | ||
# | ||
virtualPathFiles: | ||
# 'virtual_folder/**/*.c': --c99 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"version": 3, | ||
"beforeBuildTasks": [], | ||
"afterBuildTasks": [], | ||
"global": { | ||
"device": "mcs51", | ||
"optimize-type": "speed", | ||
"misc-controls": "--iram-size 256 --xram-size 0 --code-size 8192" | ||
}, | ||
"c/cpp-compiler": { | ||
"language-c": "c99" | ||
}, | ||
"asm-compiler": {}, | ||
"linker": { | ||
"$mainFileName": "main", | ||
"output-format": "hex" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"name": "Demo", | ||
"type": "C51", | ||
"dependenceList": [], | ||
"srcDirs": [ | ||
"src", | ||
"inc" | ||
], | ||
"virtualFolder": { | ||
"name": "<virtual_root>", | ||
"files": [], | ||
"folders": [] | ||
}, | ||
"outDir": "build", | ||
"deviceName": null, | ||
"packDir": null, | ||
"miscInfo": { | ||
"uid": "657417bca61dce1087a93a37f599d290" | ||
}, | ||
"targets": { | ||
"Debug": { | ||
"excludeList": [], | ||
"toolchain": "SDCC", | ||
"compileConfig": { | ||
"options": "null" | ||
}, | ||
"uploader": "Custom", | ||
"uploadConfig": { | ||
"bin": "", | ||
"commandLine": "sudo chmod 666 /dev/ttyUSB0 && python ./tools/stcflash.py -p /dev/ttyUSB0 \"${hexFile}\"", | ||
"eraseChipCommand": "" | ||
}, | ||
"uploadConfigMap": {}, | ||
"custom_dep": { | ||
"name": "default", | ||
"incList": [], | ||
"libList": [], | ||
"defineList": [] | ||
} | ||
} | ||
}, | ||
"version": "3.4" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "." | ||
} | ||
], | ||
"settings": { | ||
"EIDE.SourceTree.AutoSearchIncludePath": true, | ||
"EIDE.SourceTree.AutoSearchObjFile": true, | ||
"files.associations": { | ||
"*.C": "c", | ||
".eideignore": "ignore", | ||
"stdio.h": "c", | ||
"*.a51": "a51", | ||
"*.h": "c", | ||
"*.c": "c", | ||
"*.hxx": "cpp", | ||
"*.hpp": "cpp", | ||
"*.c++": "cpp", | ||
"*.cpp": "cpp", | ||
"*.cxx": "cpp", | ||
"*.cc": "cpp" | ||
}, | ||
"files.autoGuessEncoding": true, | ||
"EIDE.ARM.Option.AutoGenerateRTE_Components": false, | ||
"C_Cpp.default.configurationProvider": "cl.eide", | ||
"C_Cpp.errorSquiggles": "disabled", | ||
"[yaml]": { | ||
"editor.insertSpaces": true, | ||
"editor.tabSize": 4, | ||
"editor.autoIndent": "advanced" | ||
} | ||
}, | ||
"extensions": { | ||
"recommendations": [ | ||
"cl.eide", | ||
"keroc.hex-fmt", | ||
"xiaoyongdong.srecord", | ||
"hars.cppsnippets", | ||
"zixuanwang.linkerscript", | ||
"redhat.vscode-yaml", | ||
"IBM.output-colorizer", | ||
"cschlosser.doxdocgen", | ||
"ms-vscode.vscode-serial-monitor", | ||
"alefragnani.project-manager", | ||
"cl.stm8-debug" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# 使用说明 | ||
这是使用EIDE的一个示例 |
Oops, something went wrong.