Skip to content
Snippets Groups Projects
Select Git revision
  • e5b3e196af5211c928e390f6df9be1dcb29cf491
  • master default protected
  • v1.10
  • v1.9
  • v1.8
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
  • bootloader-v1
  • v0.0
16 results

modules.h

Blame
  • Forked from card10 / firmware
    1492 commits behind the upstream repository.
    swym's avatar
    swym authored and Rahix committed
    e5b3e196
    History
    modules.h 956 B
    #ifndef MODULES_H
    #define MODULES_H
    
    /* ---------- FAT fs ------------------------------------------------------ */
    /* Number of bits to use for indexing into our internal pool of files/directories
     * This indirectly specifies the size of the pool as 1^EPIC_FAT_FD_INDEX_BITS
     * Increase if number of open file descriptors is not enough, but be aware of
     * memory usage of the pool!
     */
    #define EPIC_FAT_FD_INDEX_BITS 8
    #define EPIC_FAT_STATIC_SEMAPHORE 1
    void fatfs_init(void);
    
    /* ---------- Serial ------------------------------------------------------- */
    #define SERIAL_READ_BUFFER_SIZE 128
    void vSerialTask(void *pvParameters);
    
    /* ---------- PMIC --------------------------------------------------------- */
    /* In 1/10s */
    #define PMIC_PRESS_SLEEP           20
    #define PMIC_PRESS_POWEROFF        40
    void vPmicTask(void *pvParameters);
    
    // Forces an unlock of the display. Only to be used in epicardium
    void disp_forcelock();
    
    #endif /* MODULES_H */