Skip to content

Commit

Permalink
Merge branch 'main' into BAYCKRC-add-BAYCKRC-targets
Browse files Browse the repository at this point in the history
  • Loading branch information
BAYCKRC authored Sep 13, 2024
2 parents 0a91d0b + b381092 commit a1192b7
Show file tree
Hide file tree
Showing 58 changed files with 8,897 additions and 689 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ Keil_Projects/Listings
*~
*.map
*.o
.DS_Store
.vscode/settings.json
25 changes: 21 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,18 @@
"${workspaceFolder}/obj/openocd.cfg",
],
"showDevDebugOutput": "none",

"serverpath": "${workspaceFolder}${/}tools${/}${config:OS}${/}openocd${/}bin${/}openocd",
"armToolchainPath": "${workspaceRoot}/tools/${config:OS}/xpack-arm-none-eabi-gcc-10.3.1-2.3/bin",
"osx": {
"serverpath": "${workspaceFolder}/tools/macos/openocd/bin/openocd",
"armToolchainPath": "${workspaceFolder}/tools/macos/xpack-arm-none-eabi-gcc-10.3.1-2.3/bin"
},
"linux": {
"serverpath": "${workspaceFolder}/tools/linux/openocd/bin/openocd",
"armToolchainPath": "${workspaceFolder}/tools/linux/xpack-arm-none-eabi-gcc-10.3.1-2.3/bin"
},
"windows": {
"serverpath": "${workspaceFolder}\\tools\\windows\\openocd\\bin\\openocd",
"armToolchainPath": "${workspaceFolder}\\tools\\windows\\xpack-arm-none-eabi-gcc-10.3.1-2.3\\bin"
}
},

// JLink configuration
Expand All @@ -32,7 +41,15 @@
"name": "AM32 JLink",
"cwd": "${workspaceRoot}",
"device" : "-AT32F421K8U7",
"gdbPath": "${workspaceRoot}/tools/${config:OS}/xpack-arm-none-eabi-gcc-10.3.1-2.3/bin/arm-none-eabi-gdb",
"osx": {
"gdbPath": "${workspaceRoot}/tools/macos/xpack-arm-none-eabi-gcc-10.3.1-2.3/bin/arm-none-eabi-gdb"
},
"linux": {
"gdbPath": "${workspaceRoot}/tools/linux/xpack-arm-none-eabi-gcc-10.3.1-2.3/bin/arm-none-eabi-gdb"
},
"windows": {
"gdbPath": "${workspaceRoot}\\tools\\windows\\xpack-arm-none-eabi-gcc-10.3.1-2.3\\bin\\arm-none-eabi-gdb"
},
"executable": "${workspaceRoot}/obj/debug.elf",
"showDevDebugOutput": "raw",
"servertype" : "jlink",
Expand Down
27 changes: 0 additions & 27 deletions .vscode/settings.json

This file was deleted.

25 changes: 25 additions & 0 deletions .vscode/settings.json.linux
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"OS": "linux",
"makefile.makePath": "/usr/bin/make",

"makefile.configurations": [
{
"name": "MakeSingle",
"makeArgs": [
"-j1"
]
},
{
"name": "MakeParallel-8",
"makeArgs": [
"-j8"
]
},
{
"name": "MakeParallel-MAX",
"makeArgs": [
"-j"
]
}
]
}
25 changes: 25 additions & 0 deletions .vscode/settings.json.macos
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"OS": "macos",
"makefile.makePath": "/usr/bin/make",

"makefile.configurations": [
{
"name": "MakeSingle",
"makeArgs": [
"-j1"
]
},
{
"name": "MakeParallel-8",
"makeArgs": [
"-j8"
]
},
{
"name": "MakeParallel-MAX",
"makeArgs": [
"-j"
]
}
]
}
25 changes: 25 additions & 0 deletions .vscode/settings.json.windows
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"OS": "windows",
"makefile.makePath": "tools/windows/make/bin/make.exe",

"makefile.configurations": [
{
"name": "MakeSingle",
"makeArgs": [
"-j1"
]
},
{
"name": "MakeParallel-8",
"makeArgs": [
"-j8"
]
},
{
"name": "MakeParallel-MAX",
"makeArgs": [
"-j"
]
}
]
}
2 changes: 1 addition & 1 deletion Inc/functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "main.h"
#include "targets.h"

int getAbsDif(int number1, int number2);
uint32_t getAbsDif(int number1, int number2);
void delayMicros(uint32_t micros);
void delayMillis(uint32_t millis);
long map(long x, long in_min, long in_max, long out_min, long out_max);
Expand Down
Loading

0 comments on commit a1192b7

Please sign in to comment.