Skip to content
Snippets Groups Projects
Select Git revision
  • fcf303dd40b384dcafb424250ee397c96c32a6bb
  • master default protected
  • schneider/ir
  • rahix/user-space-ctx
  • schneider/iaq-python
  • schneider/ble-mini-demo
  • schneider/ble-ecg-stream-visu
  • schneider/mp-exception-print
  • schneider/sleep-display
  • schneider/deepsleep4
  • schneider/deepsleep2
  • schneider/deepsleep
  • schneider/ble-central
  • rahix/bluetooth-app-favorite
  • schneider/v1.17-changelog
  • schneider/ancs
  • schneider/png
  • schneider/freertos-list-debug
  • schneider/212-reset-hardware-when-entering-repl
  • schneider/bonding-fail-if-full
  • schneider/ble-fixes-2020-3
  • v1.18
  • v1.17
  • v1.16
  • v1.15
  • v1.14
  • v1.13
  • v1.12
  • v1.11
  • v1.10
  • v1.9
  • v1.8
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
41 results

filesystem.h

Blame
  • swym's avatar
    swym authored and Rahix committed
    - Implement de-initialization
    - Wrap filesystem operations in semaphore
    - Introduce EpicFileSystem object and move epic_file_FOO(...)
      imlementations into efs_FOO(EpicFileSystem*, ...) functions.
    - epic_file_FOO(...) functions are now wrappers around the _fs_
      functions, but lock and unlock the global filesystem object before &
      after calls.  This way, all efs_ functions can assume that the
      necessary lock has been acquired.
    - libff: don't use FF_FS_REENTRANT, our own FS lock is enough
    6d1686e0
    History
    filesystem.h 589 B
    #ifndef EPICARDIUM_MODULE_FILESYSTEM_INCLUDED
    #define EPICARDIUM_MODULE_FILESYSTEM_INCLUDED
    
    /* ---------- FAT fs ------------------------------------------------------ */
    
    #include <stdbool.h>
    #include "epicardium.h"
    
    /**
     * module initialization - to be called once at startup before any FreeRTOS tasks
     * have been started
     *
     * calls fatfs_attach
     */
    void fatfs_init(void);
    
    /**
     * initialize and mount the FLASH storage
     */
    int fatfs_attach(void);
    
    /** close all opened FDs, sync and deinitialize FLASH layer */
    void fatfs_detach(void);
    
    #endif//EPICARDIUM_MODULE_FILESYSTEM_INCLUDED