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
Jakob
firmware
Commits
60cff058
Commit
60cff058
authored
5 years ago
by
ch3
Browse files
Options
Downloads
Patches
Plain Diff
feat(use-api): Add leds_set() function to API
parent
886472d0
Branches
ch3/leds-api
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
epicardium/epicardium.h
+3
-0
3 additions, 0 deletions
epicardium/epicardium.h
epicardium/main.c
+6
-0
6 additions, 0 deletions
epicardium/main.c
with
9 additions
and
0 deletions
epicardium/epicardium.h
+
3
−
0
View file @
60cff058
...
...
@@ -12,4 +12,7 @@ API(API_UART_WRITE, void epic_uart_write_str(char*str, intptr_t length));
#define API_UART_READ 0x2
API
(
API_UART_READ
,
char
epic_uart_read_chr
(
void
));
#define API_LEDS_SET 0x3
API
(
API_LEDS_SET
,
void
epic_leds_set
(
int
led
,
uint8_t
r
,
uint8_t
g
,
uint8_t
b
));
#endif
/* _EPICARDIUM_H */
This diff is collapsed.
Click to expand it.
epicardium/main.c
+
6
−
0
View file @
60cff058
...
...
@@ -15,6 +15,12 @@ char epic_uart_read_chr(void)
return
UART_ReadByte
(
ConsoleUart
);
}
void
epic_leds_set
(
int
led
,
uint8_t
r
,
uint8_t
g
,
uint8_t
b
)
{
leds_set
(
led
,
r
,
g
,
b
);
leds_update
();
}
int
main
(
void
)
{
card10_init
();
...
...
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