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