1*0561b2d8STREFOU Felix /** 2*0561b2d8STREFOU Felix ****************************************************************************** 3*0561b2d8STREFOU Felix * File Name : utilities_conf.h 4*0561b2d8STREFOU Felix * Description : Utilities configuration file for BLE 5*0561b2d8STREFOU Felix * middleWare. 6*0561b2d8STREFOU Felix ****************************************************************************** 7*0561b2d8STREFOU Felix * This notice applies to any and all portions of this file 8*0561b2d8STREFOU Felix * that are not between comment pairs USER CODE BEGIN and 9*0561b2d8STREFOU Felix * USER CODE END. Other portions of this file, whether 10*0561b2d8STREFOU Felix * inserted by the user or by software development tools 11*0561b2d8STREFOU Felix * are owned by their respective copyright owners. 12*0561b2d8STREFOU Felix * 13*0561b2d8STREFOU Felix * Copyright (c) 2019 STMicroelectronics International N.V. 14*0561b2d8STREFOU Felix * All rights reserved. 15*0561b2d8STREFOU Felix * 16*0561b2d8STREFOU Felix * Redistribution and use in source and binary forms, with or without 17*0561b2d8STREFOU Felix * modification, are permitted, provided that the following conditions are met: 18*0561b2d8STREFOU Felix * 19*0561b2d8STREFOU Felix * 1. Redistribution of source code must retain the above copyright notice, 20*0561b2d8STREFOU Felix * this list of conditions and the following disclaimer. 21*0561b2d8STREFOU Felix * 2. Redistributions in binary form must reproduce the above copyright notice, 22*0561b2d8STREFOU Felix * this list of conditions and the following disclaimer in the documentation 23*0561b2d8STREFOU Felix * and/or other materials provided with the distribution. 24*0561b2d8STREFOU Felix * 3. Neither the name of STMicroelectronics nor the names of other 25*0561b2d8STREFOU Felix * contributors to this software may be used to endorse or promote products 26*0561b2d8STREFOU Felix * derived from this software without specific written permission. 27*0561b2d8STREFOU Felix * 4. This software, including modifications and/or derivative works of this 28*0561b2d8STREFOU Felix * software, must execute solely and exclusively on microcontroller or 29*0561b2d8STREFOU Felix * microprocessor devices manufactured by or for STMicroelectronics. 30*0561b2d8STREFOU Felix * 5. Redistribution and use of this software other than as permitted under 31*0561b2d8STREFOU Felix * this license is void and will automatically terminate your rights under 32*0561b2d8STREFOU Felix * this license. 33*0561b2d8STREFOU Felix * 34*0561b2d8STREFOU Felix * THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" 35*0561b2d8STREFOU Felix * AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT 36*0561b2d8STREFOU Felix * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 37*0561b2d8STREFOU Felix * PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY 38*0561b2d8STREFOU Felix * RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT 39*0561b2d8STREFOU Felix * SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 40*0561b2d8STREFOU Felix * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 41*0561b2d8STREFOU Felix * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 42*0561b2d8STREFOU Felix * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 43*0561b2d8STREFOU Felix * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 44*0561b2d8STREFOU Felix * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 45*0561b2d8STREFOU Felix * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 46*0561b2d8STREFOU Felix * 47*0561b2d8STREFOU Felix ****************************************************************************** 48*0561b2d8STREFOU Felix */ 49*0561b2d8STREFOU Felix 50*0561b2d8STREFOU Felix /* Define to prevent recursive inclusion -------------------------------------*/ 51*0561b2d8STREFOU Felix #ifndef __UTILITIES_CONF_H 52*0561b2d8STREFOU Felix #define __UTILITIES_CONF_H 53*0561b2d8STREFOU Felix 54*0561b2d8STREFOU Felix #include "app_conf.h" 55*0561b2d8STREFOU Felix 56*0561b2d8STREFOU Felix /****************************************************************************** 57*0561b2d8STREFOU Felix * OTP manager 58*0561b2d8STREFOU Felix ******************************************************************************/ 59*0561b2d8STREFOU Felix #define CFG_OTP_BASE_ADDRESS OTP_AREA_BASE 60*0561b2d8STREFOU Felix 61*0561b2d8STREFOU Felix #define CFG_OTP_END_ADRESS OTP_AREA_END_ADDR 62*0561b2d8STREFOU Felix 63*0561b2d8STREFOU Felix /****************************************************************************** 64*0561b2d8STREFOU Felix * Scheduler 65*0561b2d8STREFOU Felix ******************************************************************************/ 66*0561b2d8STREFOU Felix 67*0561b2d8STREFOU Felix #define SCH_CONF_TASK_NBR CFG_TASK_NBR 68*0561b2d8STREFOU Felix 69*0561b2d8STREFOU Felix #define SCH_CONF_PRIO_NBR CFG_PRIO_NBR 70*0561b2d8STREFOU Felix 71*0561b2d8STREFOU Felix /****************************************************************************** 72*0561b2d8STREFOU Felix * Debug Trace 73*0561b2d8STREFOU Felix ******************************************************************************/ 74*0561b2d8STREFOU Felix /** 75*0561b2d8STREFOU Felix * When DBG_TRACE_FULL is set to 1, the trace are output with the API name, the file name and the line number 76*0561b2d8STREFOU Felix * When DBG_TRACE_LIGTH is set to 1, only the debug message is output 77*0561b2d8STREFOU Felix * 78*0561b2d8STREFOU Felix * When both are set to 0, no trace are output 79*0561b2d8STREFOU Felix * When both are set to 1, DBG_TRACE_FULL is selected 80*0561b2d8STREFOU Felix */ 81*0561b2d8STREFOU Felix #define DBG_TRACE_LIGTH 1 82*0561b2d8STREFOU Felix #define DBG_TRACE_FULL 0 83*0561b2d8STREFOU Felix 84*0561b2d8STREFOU Felix #if (( CFG_DEBUG_TRACE != 0 ) && ( DBG_TRACE_LIGTH == 0 ) && (DBG_TRACE_FULL == 0)) 85*0561b2d8STREFOU Felix #undef DBG_TRACE_FULL 86*0561b2d8STREFOU Felix #undef DBG_TRACE_LIGTH 87*0561b2d8STREFOU Felix #define DBG_TRACE_FULL 0 88*0561b2d8STREFOU Felix #define DBG_TRACE_LIGTH 1 89*0561b2d8STREFOU Felix #endif 90*0561b2d8STREFOU Felix 91*0561b2d8STREFOU Felix #if ( CFG_DEBUG_TRACE == 0 ) 92*0561b2d8STREFOU Felix #undef DBG_TRACE_FULL 93*0561b2d8STREFOU Felix #undef DBG_TRACE_LIGTH 94*0561b2d8STREFOU Felix #define DBG_TRACE_FULL 0 95*0561b2d8STREFOU Felix #define DBG_TRACE_LIGTH 0 96*0561b2d8STREFOU Felix #endif 97*0561b2d8STREFOU Felix 98*0561b2d8STREFOU Felix /** 99*0561b2d8STREFOU Felix * When not set, the traces is looping on sending the trace over UART 100*0561b2d8STREFOU Felix */ 101*0561b2d8STREFOU Felix #define DBG_TRACE_USE_CIRCULAR_QUEUE 1 102*0561b2d8STREFOU Felix 103*0561b2d8STREFOU Felix /** 104*0561b2d8STREFOU Felix * max buffer Size to queue data traces and max data trace allowed. 105*0561b2d8STREFOU Felix * Only Used if DBG_TRACE_USE_CIRCULAR_QUEUE is defined 106*0561b2d8STREFOU Felix */ 107*0561b2d8STREFOU Felix #define DBG_TRACE_MSG_QUEUE_SIZE 4096 108*0561b2d8STREFOU Felix #define MAX_DBG_TRACE_MSG_SIZE 1024 109*0561b2d8STREFOU Felix 110*0561b2d8STREFOU Felix #endif /*__UTILITIES_CONF_H */ 111*0561b2d8STREFOU Felix 112*0561b2d8STREFOU Felix /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 113