Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Huebler
firmware
Commits
154cc573
Verified
Commit
154cc573
authored
5 years ago
by
rahix
Browse files
Options
Downloads
Patches
Plain Diff
feat(api): Add API-call for soft-reset
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
24be7ca2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
epicardium/epicardium.h
+6
-0
6 additions, 0 deletions
epicardium/epicardium.h
epicardium/modules/lifecycle.c
+8
-0
8 additions, 0 deletions
epicardium/modules/lifecycle.c
with
14 additions
and
0 deletions
epicardium/epicardium.h
+
6
−
0
View file @
154cc573
...
...
@@ -31,6 +31,7 @@ typedef _Bool bool;
/* clang-format off */
#define API_SYSTEM_EXIT 0x1
#define API_SYSTEM_EXEC 0x2
#define API_SYSTEM_RESET 0x3
#define API_INTERRUPT_ENABLE 0xA
#define API_INTERRUPT_DISABLE 0xB
...
...
@@ -196,6 +197,11 @@ int epic_exec(char *name);
*/
API
(
API_SYSTEM_EXEC
,
int
__epic_exec
(
char
*
name
));
/**
* Reset/Restart card10
*/
API
(
API_SYSTEM_RESET
,
void
epic_system_reset
(
void
));
/**
* UART/Serial Interface
* =====================
...
...
This diff is collapsed.
Click to expand it.
epicardium/modules/lifecycle.c
+
8
−
0
View file @
154cc573
...
...
@@ -275,6 +275,14 @@ static void load_menu(bool reset)
/* Helpers }}} */
/* API {{{ */
/*
* Restart the firmware
*/
void
epic_system_reset
(
void
)
{
card10_reset
();
}
/*
* This is NOT the epic_exec() called from Pycardium, but an implementation of
* the same call for use in Epicardium. This function is synchroneous and will
...
...
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