Skip to content
Snippets Groups Projects
Verified Commit 3b5a0b4f authored by Gerd's avatar Gerd Committed by rahix
Browse files

refactor(epicardium): Move leds into own source file

Closes !13
parent 5054fdeb
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
......@@ -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],
......
#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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment