Skip to content
Snippets Groups Projects
Verified Commit abe89091 authored by rahix's avatar rahix
Browse files

chore(light-sensor): Make some functions static


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 52fc4af3
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ static uint16_t last_value; ...@@ -12,7 +12,7 @@ static uint16_t last_value;
static TimerHandle_t poll_timer; static TimerHandle_t poll_timer;
static StaticTimer_t poll_timer_buffer; static StaticTimer_t poll_timer_buffer;
int epic_light_sensor_init() static int light_sensor_init()
{ {
const sys_cfg_adc_t sys_adc_cfg = const sys_cfg_adc_t sys_adc_cfg =
NULL; /* No system specific configuration needed. */ NULL; /* No system specific configuration needed. */
...@@ -23,7 +23,7 @@ int epic_light_sensor_init() ...@@ -23,7 +23,7 @@ int epic_light_sensor_init()
return 0; return 0;
} }
void readAdcCallback() static void readAdcCallback()
{ {
ADC_StartConvert(ADC_CH_7, 0, 0); ADC_StartConvert(ADC_CH_7, 0, 0);
ADC_GetData(&last_value); ADC_GetData(&last_value);
...@@ -31,7 +31,7 @@ void readAdcCallback() ...@@ -31,7 +31,7 @@ void readAdcCallback()
int epic_light_sensor_run() int epic_light_sensor_run()
{ {
epic_light_sensor_init(); light_sensor_init();
if (!poll_timer) { if (!poll_timer) {
poll_timer = xTimerCreateStatic( poll_timer = xTimerCreateStatic(
......
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