Add missing files.
This commit is contained in:
parent
00b2b28024
commit
5232b8a501
30
.vscode/tasks.json
vendored
Normal file
30
.vscode/tasks.json
vendored
Normal 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
7
src/include/ftdi_utils.h
Normal file
@ -0,0 +1,7 @@
|
||||
#include <ftdi.h>
|
||||
|
||||
extern struct ftdi_context *ftdi;
|
||||
|
||||
ftdi_context* get_ftdi_context() {
|
||||
return ftdi;
|
||||
}
|
Loading…
Reference in New Issue
Block a user