Skip to content
Snippets Groups Projects
Select Git revision
  • 9aea6e95f6a1a83f4dd61308cb7c0511e9f99cc4
  • main default protected
  • rahix/docs-fixes
  • pippin/wip
  • blm_docs
  • release/1.0.0
  • fm_fix2
  • fm_fix
  • sec/blinky
  • pippin/make_empty_drawlists_skip_render_and_blit
  • pressable_bugfix
  • moon2_gay_drums
  • moon2_applications
  • schneider/application-remove-name
  • anon/webflasher
  • pippin/display-python-errors-on-display
  • bl00mbox
  • bl00mbox_old
  • schneider/recovery
  • schneider/bhi581
  • anon/update-sim
  • v1.0.0
  • v1.0.0+rc6
  • v1.0.0+rc5
  • v1.0.0+rc4
  • v1.0.0+rc3
  • v1.0.0+rc2
  • v1.0.0+rc1
28 results

idf_ext.py

Blame
  • Forked from flow3r / flow3r firmware
    Source project has a limited visibility.
    filesystem.h 1000 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
     * 
     * NOTE: not safe to be called from an ISR
     */
    int fatfs_attach(void);
    
    
    /**
     * asynchronously attach the FLASH storage
     * 
     * safe to be called from an ISR
     */
    void fatfs_schedule_attach(void);
    
    /** close all opened FDs, sync and deinitialize FLASH layer */
    void fatfs_detach(void);
    
    /** close all onpened FDs 
     * TODO: add ability to close FDs opened by core0/core1 only
     */
    #define EPICARDIUM_COREMASK_0		0x01
    #define EPICARDIUM_COREMASK_1		0x02
    #define EPICARDIUM_COREMASK_BOTH	0x03
    
    void fatfs_close_all(int coreMask);
    
    #endif//EPICARDIUM_MODULE_FILESYSTEM_INCLUDED