Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
duck
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jp7g21
duck
Commits
a8feb213
Commit
a8feb213
authored
3 years ago
by
jp7g21
Browse files
Options
Downloads
Patches
Plain Diff
Made command.h work in c++
parent
3777e58c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
emb/command.h
+14
-6
14 additions, 6 deletions
emb/command.h
with
14 additions
and
6 deletions
emb/command.h
+
14
−
6
View file @
a8feb213
...
...
@@ -3,12 +3,20 @@
#include
<stdint.h>
struct
command
{
char
comm_ch
;
/* Character of command (ie 's', 'v', 'd') */
int16_t
arg
[
2
];
};
#ifdef __cplusplus
extern
"C"
{
#endif
uint8_t
uart_add_ch
(
char
c
);
struct
command
*
get_command
(
void
);
struct
command
{
char
comm_ch
;
/* Character of command (ie 's', 'v', 'd') */
int16_t
arg
[
2
];
};
uint8_t
uart_add_ch
(
char
c
);
struct
command
*
get_command
(
void
);
#ifdef __cplusplus
}
#endif
#endif
/* _COMMAND_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment