Skip to content

Commit

Permalink
bsp_key
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxCrazy1101 committed Mar 24, 2023
1 parent 02ce207 commit bfe5664
Show file tree
Hide file tree
Showing 59 changed files with 32,708 additions and 130 deletions.
50 changes: 40 additions & 10 deletions .eide/eide.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"dependenceList": [],
"srcDirs": [
".eide/deps",
"Hardware"
"Hardware",
"FreeRTOS",
"App"
],
"virtualFolder": {
"name": "<virtual_root>",
Expand All @@ -15,11 +17,6 @@
"files": [],
"folders": []
},
{
"name": "App",
"files": [],
"folders": []
},
{
"name": "CMSIS",
"files": [
Expand Down Expand Up @@ -170,9 +167,15 @@
{
"name": "User",
"files": [
{
"path": "User/FreeRTOSHook.c"
},
{
"path": "User/gd32f4xx_it.c"
},
{
"path": "User/gd32f4xx_tim_it.c"
},
{
"path": "User/main.c"
},
Expand All @@ -194,16 +197,30 @@
"Target 1": {
"excludeList": [
"Firmware/CMSIS/DSP/ComputeGraph",
"Firmware/CMSIS/DSP/ComputeLibrary"
"Firmware/CMSIS/DSP/ComputeLibrary",
"FreeRTOS/portable/MemMang/heap_5.c",
"FreeRTOS/portable/MemMang/heap_3.c",
"FreeRTOS/portable/MemMang/heap_2.c",
"FreeRTOS/portable/MemMang/heap_1.c"
],
"toolchain": "AC6",
"compileConfig": {
"cpuType": "Cortex-M4",
"floatingPointHardware": "single",
"useCustomScatterFile": false,
"scatterFilePath": "<YOUR_SCATTER_FILE>.sct",
"useCustomScatterFile": true,
"scatterFilePath": "GD32F470.sct",
"storageLayout": {
"RAM": [
{
"tag": "RAM",
"id": 1,
"mem": {
"startAddr": "0xC0000000",
"size": "0x10000000"
},
"isChecked": true,
"noInit": false
},
{
"tag": "IRAM",
"id": 1,
Expand All @@ -213,6 +230,16 @@
},
"isChecked": true,
"noInit": false
},
{
"tag": "IRAM",
"id": 2,
"mem": {
"startAddr": "0x10000000",
"size": "0x10000"
},
"isChecked": true,
"noInit": false
}
],
"ROM": [
Expand Down Expand Up @@ -288,7 +315,10 @@
"3rd_party/lvgl",
"3rd_party/lvgl/porting",
"Firmware/CMSIS/DSP/Include",
"Firmware/CMSIS/DSP/PrivateInclude"
"Firmware/CMSIS/DSP/PrivateInclude",
"FreeRTOS/include",
"FreeRTOS/portable/GCC/ARM_CM4F",
"App/Include"
],
"libList": [],
"sourceDirList": [],
Expand Down
2 changes: 0 additions & 2 deletions .eide/target 1.arm.options.v6.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"optimization": "level-1",
"language-c": "c99",
"language-cpp": "c++03",
"link-time-optimization": true,
"one-elf-section-per-function": true,
"short-enums#wchar": true,
"warnings": "ac5-like-warnings"
Expand All @@ -21,7 +20,6 @@
"linker": {
"output-format": "elf",
"misc-controls": "--diag_suppress=L6329",
"xo-base": "",
"ro-base": "0x08000000",
"rw-base": "0x20000000"
}
Expand Down
2 changes: 1 addition & 1 deletion .vscode/.cortex-debug.peripherals.state.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[]
[{"node":"TIMER6","expanded":true,"format":0,"pinned":false},{"node":"TIMER6.CTL0","expanded":true,"format":0},{"node":"TIMER6.CTL1","expanded":true,"format":0},{"node":"TIMER6.DMAINTEN","expanded":true,"format":0},{"node":"TIMER6.INTF","expanded":true,"format":0},{"node":"TIMER6.SWEVG","expanded":true,"format":0},{"node":"TIMER6.CNT","expanded":true,"format":0},{"node":"TIMER6.PSC","expanded":true,"format":0},{"node":"TIMER6.CAR","expanded":true,"format":0}]
20 changes: 20 additions & 0 deletions App/Include/my_app.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#ifndef MY_APP_H
#define MY_APP_H
#ifdef __cplusplus
extern "C" {
#endif
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"

/**
* @brief 创建任务
*/
void app_create_task();

void app_main();

#ifdef __cplusplus
}
#endif
#endif /* MY_APP_H */
Loading

0 comments on commit bfe5664

Please sign in to comment.