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
3b5a0b4f
Verified
Commit
3b5a0b4f
authored
5 years ago
by
Gerd
Committed by
rahix
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
refactor(epicardium): Move leds into own source file
Closes
!13
parent
5054fdeb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
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
8 additions
and
7 deletions
epicardium/main.c
+
0
−
7
View file @
3b5a0b4f
...
...
@@ -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 @
3b5a0b4f
...
...
@@ -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 @
3b5a0b4f
#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.
rahix
@rahix
mentioned in merge request
!13 (closed)
·
5 years ago
mentioned in merge request
!13 (closed)
mentioned in merge request !13
Toggle commit list
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