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
b9ba0feb
Verified
Commit
b9ba0feb
authored
Aug 20, 2019
by
Rahix
Browse files
chore(epicardium): Make logging less verbose by default
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
af026115
Changes
4
Hide whitespace changes
Inline
Side-by-side
epicardium/fs/filesystem_fat.c
View file @
b9ba0feb
...
...
@@ -23,6 +23,7 @@
#include
"card10.h"
#include
"modules/log.h"
#define SSLOG_DEBUG(...) LOG_DEBUG("fatfs", __VA_ARGS__)
#define SSLOG_INFO(...) LOG_INFO("fatfs", __VA_ARGS__)
#define SSLOG_ERR(...) LOG_ERR("fatfs", __VA_ARGS__)
...
...
@@ -136,7 +137,7 @@ int fatfs_attach()
ff_res
=
f_mount
(
&
fs
->
FatFs
,
"/"
,
0
);
if
(
ff_res
==
FR_OK
)
{
fs
->
initialized
=
true
;
SSLOG_
INFO
(
"FatFs mounted
\n
"
);
SSLOG_
DEBUG
(
"FatFs mounted
\n
"
);
}
else
{
SSLOG_ERR
(
"f_mount error %s
\n
"
,
...
...
epicardium/main.c
View file @
b9ba0feb
...
...
@@ -14,10 +14,10 @@ int main(void)
LOG_INFO
(
"startup"
,
"Epicardium startup ..."
);
LOG_INFO
(
"startup"
,
"Version "
CARD10_VERSION
);
LOG_
INFO
(
"startup"
,
"Initializing hardware ..."
);
LOG_
DEBUG
(
"startup"
,
"Initializing hardware ..."
);
hardware_early_init
();
LOG_
INFO
(
"startup"
,
"Initializing tasks ..."
);
LOG_
DEBUG
(
"startup"
,
"Initializing tasks ..."
);
/* Serial */
if
(
xTaskCreate
(
...
...
@@ -85,7 +85,7 @@ int main(void)
abort
();
}
LOG_
INFO
(
"startup"
,
"Starting FreeRTOS ..."
);
LOG_
DEBUG
(
"startup"
,
"Starting FreeRTOS ..."
);
vTaskStartScheduler
();
LOG_CRIT
(
"startup"
,
"FreeRTOS did not start due to unknown error!"
);
...
...
epicardium/modules/hardware.c
View file @
b9ba0feb
...
...
@@ -163,7 +163,7 @@ int hardware_early_init(void)
int
hardware_init
(
void
)
{
/* Light Sensor */
LOG_
INFO
(
"init"
,
"Starting light sensor ..."
);
LOG_
DEBUG
(
"init"
,
"Starting light sensor ..."
);
epic_light_sensor_run
();
return
0
;
...
...
epicardium/modules/lifecycle.c
View file @
b9ba0feb
...
...
@@ -244,7 +244,7 @@ static int write_default_menu(void)
*/
static
void
load_menu
(
bool
reset
)
{
LOG_
INFO
(
"lifecycle"
,
"Into the menu"
);
LOG_
DEBUG
(
"lifecycle"
,
"Into the menu"
);
if
(
xSemaphoreTake
(
core1_mutex
,
BLOCK_WAIT
)
!=
pdTRUE
)
{
LOG_ERR
(
"lifecycle"
,
...
...
@@ -362,7 +362,7 @@ void vLifecycleTask(void *pvParameters)
vTaskDelay
(
portMAX_DELAY
);
}
LOG_
INFO
(
"lifecycle"
,
"Booting core 1 ..."
);
LOG_
DEBUG
(
"lifecycle"
,
"Booting core 1 ..."
);
core1_boot
();
vTaskDelay
(
pdMS_TO_TICKS
(
10
));
...
...
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