Skip to content
Snippets Groups Projects
Select Git revision
  • ed46ab5a7965237138f283730d945df32414989d
  • master default
  • test
  • rahix/hw-lock-new-mutex
  • dx/somewhat-more-dynamic-config
  • schneider/sdk-0.2.1-7
  • schneider/bsec
  • dx/meh-bdf-to-stm
  • dx/flatten-config-module
  • genofire/ble-follow-py
  • schneider/ble-stability
  • schneider/ble-stability-new-phy
  • add_menu_vibration
  • plaetzchen/ios-workaround
  • blinkisync-as-preload
  • schneider/max30001-pycardium
  • schneider/max30001-epicaridum
  • schneider/max30001
  • schneider/stream-locks
  • schneider/fundamental-test
  • schneider/ble-buffers
  • 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
  • bootloader-v1
  • v0.0
37 results

bhi160.py

Blame
  • Forked from card10 / firmware
    Source project has a limited visibility.
    pmic.h 809 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);
    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