Add missing files.

This commit is contained in:
Marco 2023-02-22 18:26:55 +01:00
parent 00b2b28024
commit 5232b8a501
2 changed files with 37 additions and 0 deletions

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

@ -0,0 +1,30 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc build active file",
"command": "/usr/bin/gcc",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}",
"-I/usr/include/libftdi1",
"-lftdi1"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}

7
src/include/ftdi_utils.h Normal file
View File

@ -0,0 +1,7 @@
#include <ftdi.h>
extern struct ftdi_context *ftdi;
ftdi_context* get_ftdi_context() {
return ftdi;
}