Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
François Revol
firmware
Commits
abe89091
Verified
Commit
abe89091
authored
Aug 20, 2019
by
Rahix
Browse files
chore(light-sensor): Make some functions static
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
52fc4af3
Changes
1
Hide whitespace changes
Inline
Side-by-side
epicardium/modules/light_sensor.c
View file @
abe89091
...
...
@@ -12,7 +12,7 @@ static uint16_t last_value;
static
TimerHandle_t
poll_timer
;
static
StaticTimer_t
poll_timer_buffer
;
int
epic_
light_sensor_init
()
static
int
light_sensor_init
()
{
const
sys_cfg_adc_t
sys_adc_cfg
=
NULL
;
/* No system specific configuration needed. */
...
...
@@ -23,7 +23,7 @@ int epic_light_sensor_init()
return
0
;
}
void
readAdcCallback
()
static
void
readAdcCallback
()
{
ADC_StartConvert
(
ADC_CH_7
,
0
,
0
);
ADC_GetData
(
&
last_value
);
...
...
@@ -31,7 +31,7 @@ void readAdcCallback()
int
epic_light_sensor_run
()
{
epic_
light_sensor_init
();
light_sensor_init
();
if
(
!
poll_timer
)
{
poll_timer
=
xTimerCreateStatic
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment