text: /**
    ******************************************************************************
    * @file    bluenrg_conf_template.h
    * @author  SRA Application Team
    * @brief   BLE configuration file
    ******************************************************************************
    * @attention
    *
    * Copyright (c) 2018 STMicroelectronics.
    * All rights reserved.
    *
    * This software is licensed under terms that can be found in the LICENSE file
    * in the root directory of this software component.
    * If no LICENSE file comes with this software, it is provided AS-IS.
    *
    ******************************************************************************
    */
  /* Define to prevent recursive inclusion -------------------------------------*/
  #ifndef BLUENRG_CONF_TEMPLATE_H
  #define BLUENRG_CONF_TEMPLATE_H
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  /* Includes ------------------------------------------------------------------*/
  #include <string.h>
  
  /*---------- Print messages from files at user level -----------*/
  #define DEBUG      0
  /*---------- Print the data travelling over the SPI in the .csv format for the GUI -----------*/
  #define PRINT_CSV_FORMAT      0
  /*---------- Number of Bytes reserved for HCI Read Packet -----------*/
  #define HCI_READ_PACKET_SIZE      128
  /*---------- Number of Bytes reserved for HCI Max Payload -----------*/
  #define HCI_MAX_PAYLOAD_SIZE      128
  /*---------- Scan Interval: time interval from when the Controller started its last scan until it begins the subsequent scan (for a number N, Time = N x 0.625 msec) -----------*/
  #define SCAN_P      16384
  /*---------- Scan Window: amount of time for the duration of the LE scan (for a number N, Time = N x 0.625 msec) -----------*/
  #define SCAN_L      16384
  /*---------- Supervision Timeout for the LE Link (for a number N, Time = N x 10 msec) -----------*/
  #define SUPERV_TIMEOUT      60
  /*---------- Minimum Connection Period (for a number N, Time = N x 1.25 msec) -----------*/
  #define CONN_P1      40
  /*---------- Maximum Connection Period (for a number N, Time = N x 1.25 msec) -----------*/
  #define CONN_P2      40
  /*---------- Minimum Connection Length (for a number N, Time = N x 0.625 msec) -----------*/
  #define CONN_L1      2000
  /*---------- Maximum Connection Length (for a number N, Time = N x 0.625 msec) -----------*/
  #define CONN_L2      2000
  /*---------- Advertising Type -----------*/
  #define ADV_DATA_TYPE      ADV_IND
  /*---------- Minimum Advertising Interval (for a number N, Time = N x 0.625 msec) -----------*/
  #define ADV_INTERV_MIN      2048
  /*---------- Maximum Advertising Interval (for a number N, Time = N x 0.625 msec) -----------*/
  #define ADV_INTERV_MAX      4096
  /*---------- Minimum Connection Event Interval (for a number N, Time = N x 1.25 msec) -----------*/
  #define L2CAP_INTERV_MIN      9
  /*---------- Maximum Connection Event Interval (for a number N, Time = N x 1.25 msec) -----------*/
  #define L2CAP_INTERV_MAX      20
  /*---------- Timeout Multiplier (for a number N, Time = N x 10 msec) -----------*/
  #define L2CAP_TIMEOUT_MULTIPLIER      600
  
  #define HCI_DEFAULT_TIMEOUT_MS        1000
  
  #define BLUENRG_memcpy                memcpy
  #define BLUENRG_memset                memset
    
  #if (DEBUG == 1)
  #define PRINTF(...)                   printf(__VA_ARGS__)
  #else
  #define PRINTF(...)
  #endif
  
  #if PRINT_CSV_FORMAT
  #include <stdio.h>
  #define PRINT_CSV(...)                printf(__VA_ARGS__)
  void print_csv_time(void);
  #else
  #define PRINT_CSV(...)
  #endif
  
  #ifdef __cplusplus
  }
  #endif
  #endif /* BLUENRG_CONF_TEMPLATE_H */
  