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
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
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
card10
firmware
Commits
fb6bb64c
Verified
Commit
fb6bb64c
authored
5 years ago
by
Gerd
Browse files
Options
Downloads
Patches
Plain Diff
[epicardium] refactor LED to be in own module
parent
1a693480
No related branches found
No related tags found
1 merge request
!13
[epicardium] refactor LED to be in own module [MANUAL MERGE]
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
epicardium/epicardium.h
+1
-0
1 addition, 0 deletions
epicardium/epicardium.h
epicardium/main.c
+0
-7
0 additions, 7 deletions
epicardium/main.c
epicardium/meson.build
+1
-0
1 addition, 0 deletions
epicardium/meson.build
epicardium/modules/leds.c
+7
-0
7 additions, 0 deletions
epicardium/modules/leds.c
with
9 additions
and
7 deletions
epicardium/epicardium.h
+
1
−
0
View file @
fb6bb64c
...
...
@@ -12,6 +12,7 @@ API(API_UART_WRITE, void epic_uart_write_str(const char*str, intptr_t length));
#define API_UART_READ 0x2
API
(
API_UART_READ
,
char
epic_uart_read_chr
(
void
));
// set LED color of led $led to color rgb
#define API_LEDS_SET 0x3
API
(
API_LEDS_SET
,
void
epic_leds_set
(
int
led
,
uint8_t
r
,
uint8_t
g
,
uint8_t
b
));
...
...
This diff is collapsed.
Click to expand it.
epicardium/main.c
+
0
−
7
View file @
fb6bb64c
...
...
@@ -16,13 +16,6 @@
TaskHandle_t
dispatcher_task_id
;
/* TODO: Move out of main.c */
void
epic_leds_set
(
int
led
,
uint8_t
r
,
uint8_t
g
,
uint8_t
b
)
{
leds_set
(
led
,
r
,
g
,
b
);
leds_update
();
}
/*
* API dispatcher task. This task will sleep until an API call is issued and
* then wake up to dispatch it.
...
...
This diff is collapsed.
Click to expand it.
epicardium/meson.build
+
1
−
0
View file @
fb6bb64c
...
...
@@ -67,6 +67,7 @@ elf = executable(
'main.c'
,
'serial.c'
,
'support.c'
,
'modules/leds.c'
,
dependencies
:
[
libcard10
,
max32665_startup_core0
,
maxusb
],
link_with
:
[
api_dispatcher_lib
,
freertos
],
link_whole
:
[
max32665_startup_core0_lib
,
board_card10_lib
],
...
...
This diff is collapsed.
Click to expand it.
epicardium/modules/leds.c
0 → 100644
+
7
−
0
View file @
fb6bb64c
#include
"leds.h"
void
epic_leds_set
(
int
led
,
uint8_t
r
,
uint8_t
g
,
uint8_t
b
)
{
leds_set
(
led
,
r
,
g
,
b
);
leds_update
();
}
\ No newline at end of file
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