Skip to content
Snippets Groups Projects
Select Git revision
  • ecb841dffb2b0a00629f570344c6f8e9d2325069
  • main default protected
  • phhw
  • captouch-threshold
  • t
  • dos
  • test2
  • test
  • slewtest
  • simtest
  • view-think
  • vm-pending
  • media-buf
  • scope
  • passthrough
  • wave
  • vsync
  • dos-main-patch-50543
  • json-error
  • rahix/big-flow3r
  • pippin/media_framework
  • v1.3.0
  • v1.2.0
  • v1.2.0+rc1
  • v1.1.1
  • v1.1.0
  • v1.1.0+rc1
  • 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
34 results

README.md

Blame
  • Forked from flow3r / flow3r firmware
    Source project has a limited visibility.
    pmic.h 840 B
    #ifndef PMIC_H
    #define PMIC_H
    
    #include <stdint.h>
    #include <stdbool.h>
    
    /* Dropout Detector Rising */
    #define MAX77650_INT_DOD_R    (1 << 6)
    /* Thermal Alarm 2 Rising */
    #define MAX77650_INT_TJAL2_R  (1 << 5)
    /* Thermal Alarm 1 Rising */
    #define MAX77650_INT_TJAL1_R  (1 << 4)
    /* nEN Rising */
    #define MAX77650_INT_nEN_R    (1 << 3)
    /* nEN Falling */
    #define MAX77650_INT_nEN_F    (1 << 2)
    /* GPI Rising */
    #define MAX77650_INT_GPI_R    (1 << 1)
    /* GPI Falling */
    #define MAX77650_INT_GPI_F    (1 << 0)
    
    void pmic_init(void);
    void pmic_set_led(uint8_t led, uint8_t val);
    int pmic_get_led(uint8_t led);
    void pmic_poll(void);
    
    /* weak, so it can be overwritten by applications */
    void pmic_interrupt_callback(void*_);
    
    typedef void (*pmic_button_callback_fn)(bool falling);
    void pmic_set_button_callback(pmic_button_callback_fn cb);
    
    #endif