Skip to content
Snippets Groups Projects
Select Git revision
  • 5e43d6b69e3dedb3a5321a0827d85264670108cd
  • master default protected
  • sonopard/display-pixels-drawimage
  • TilCreator/firmware-master
  • rahix/simple_menu
  • genofire/leds_rgb_get_state
  • genofire/rockets-state
  • genofire/ble-follow-py
  • hauke/ble-cleanups
  • plaetzchen/ios-workaround
  • blinkisync-as-preload
  • genofire/haule-ble-fs-deactive
  • schneider/max30001-pycardium
  • schneider/max30001-epicaridum
  • schneider/max30001
  • schneider/stream-locks
  • ios-workarounds
  • schneider/fundamental-test
  • schneider/ble-buffers
  • schneider/maxim-sdk-update
  • ch3/splashscreen
  • v1.8
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
  • bootloader-v1
  • v0.0
33 results

FreeRTOSConfig.h

Blame
  • Forked from card10 / 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