Converted initialization to use System Events.
This commit is contained in:
parent
0dcbae7ec6
commit
c3362d42af
17 changed files with 243 additions and 58 deletions
|
|
@ -27,7 +27,7 @@
|
|||
static const char *TAG = "SPIFFS";
|
||||
const char *DEFAULT_CONFIG_FILE = "/spiffs/default_config.txt";
|
||||
|
||||
void Initialize_SPIFFS(SemaphoreHandle_t init_complete)
|
||||
void Initialize_SPIFFS(void)
|
||||
{
|
||||
KLOG_INFO(TAG, "Initializing SPI flash file system (SPIFFS)...");
|
||||
|
||||
|
|
@ -84,6 +84,4 @@ void Initialize_SPIFFS(SemaphoreHandle_t init_complete)
|
|||
|
||||
xEventGroupSetBits(Get_System_Events(), SYS_SPIFFS_READY);
|
||||
KLOG_INFO(TAG, "SPIFFS initialized.");
|
||||
|
||||
xSemaphoreGive(init_complete);
|
||||
}
|
||||
|
|
@ -21,6 +21,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
void Initialize_SPIFFS(SemaphoreHandle_t init_complete);
|
||||
void Initialize_SPIFFS(void);
|
||||
|
||||
extern const char *DEFAULT_CONFIG_FILE;
|
||||
Loading…
Add table
Add a link
Reference in a new issue