Skip to content
Snippets Groups Projects
Select Git revision
  • 2e84e69a4c24c3cfc38b61a966b358e9f2ca33f4
  • master default protected
  • esp32-nimble-wiki
  • 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

watchdog.c

Blame
  • Forked from card10 / firmware
    Source project has a limited visibility.
    ble_main.c 15.83 KiB
    /* card10:
     * Copied from lib/sdk/Libraries/BTLE/stack/ble-profiles/sources/apps/fit/fit_main.c
     *
     * Also have a look at lib/sdk/Applications/EvKitExamples/BLE_fit/fit_main.c which has some changes
     * to this file regarding handling of OOB paring data
     *
     * This file contains some application logic taken from the "fit" example.
     *
     * Things have been renamed:
     * fit -> ble
     * Fit -> Ble
     * FIT -> BLE
     */
    /* clang-format off */
    /* clang-formet turned off for easier diffing against orginal file */
    #include <string.h>
    #include "wsf_types.h"
    #include "util/bstream.h"
    #include "wsf_msg.h"
    #include "wsf_trace.h"
    #include "hci_api.h"
    #include "dm_api.h"
    #include "att_api.h"
    #include "smp_api.h"
    #include "app_api.h"
    #include "app_db.h"
    #include "app_ui.h"
    #include "app_hw.h"
    #include "svc_ch.h"
    #include "svc_core.h"
    #include "svc_hrs.h"
    #include "svc_dis.h"
    #include "svc_batt.h"
    #include "svc_rscs.h"
    #include "bas/bas_api.h"
    #include "hrps/hrps_api.h"
    #include "rscp/rscp_api.h"
    
    /**************************************************************************************************
      Macros
    **************************************************************************************************/
    
    /*! WSF message event starting value */
    #define BLE_MSG_START               0xA0
    
    /*! WSF message event enumeration */
    enum
    {
      BLE_BATT_TIMER_IND = BLE_MSG_START,                     /*! Battery measurement timer expired */
    };
    
    /**************************************************************************************************
      Data Types
    **************************************************************************************************/
    
    /*! Application message type */
    typedef union
    {
      wsfMsgHdr_t     hdr;
      dmEvt_t         dm;
      attsCccEvt_t    ccc;
      attEvt_t        att;
    } bleMsg_t;
    
    /**************************************************************************************************
      Configurable Parameters
    **************************************************************************************************/
    
    /*! configurable parameters for advertising */
    static const appAdvCfg_t bleAdvCfg =