fsl_debug_console_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 - 2020 NXP
3  * All rights reserved.
4  *
5  *
6  * SPDX-License-Identifier: BSD-3-Clause
7  */
8 #ifndef _FSL_DEBUG_CONSOLE_CONF_H_
9 #define _FSL_DEBUG_CONSOLE_CONF_H_
10 
11 #include "fsl_common.h"
12 
13 /****************Debug console configuration********************/
14 
30 #ifdef DEBUG_CONSOLE_TRANSFER_NON_BLOCKING
31 
40 #ifndef DEBUG_CONSOLE_TRANSMIT_BUFFER_LEN
41 #define DEBUG_CONSOLE_TRANSMIT_BUFFER_LEN (512U)
42 #endif /* DEBUG_CONSOLE_TRANSMIT_BUFFER_LEN */
43 
51 #ifndef DEBUG_CONSOLE_RECEIVE_BUFFER_LEN
52 #define DEBUG_CONSOLE_RECEIVE_BUFFER_LEN (1024U)
53 #endif /* DEBUG_CONSOLE_RECEIVE_BUFFER_LEN */
54 
59 #ifndef DEBUG_CONSOLE_TX_RELIABLE_ENABLE
60 #define DEBUG_CONSOLE_TX_RELIABLE_ENABLE (1U)
61 #endif /* DEBUG_CONSOLE_TX_RELIABLE_ENABLE */
62 
63 #else
64 #define DEBUG_CONSOLE_TRANSFER_BLOCKING
65 #endif /* DEBUG_CONSOLE_TRANSFER_NON_BLOCKING */
66 
70 #ifndef DEBUG_CONSOLE_RX_ENABLE
71 #define DEBUG_CONSOLE_RX_ENABLE (1U)
72 #endif /* DEBUG_CONSOLE_RX_ENABLE */
73 
79 #ifndef DEBUG_CONSOLE_PRINTF_MAX_LOG_LEN
80 #define DEBUG_CONSOLE_PRINTF_MAX_LOG_LEN (128U)
81 #endif /* DEBUG_CONSOLE_PRINTF_MAX_LOG_LEN */
82 
87 #ifndef DEBUG_CONSOLE_SCANF_MAX_LOG_LEN
88 #define DEBUG_CONSOLE_SCANF_MAX_LOG_LEN (20U)
89 #endif /* DEBUG_CONSOLE_SCANF_MAX_LOG_LEN */
90 
100 #define DEBUG_CONSOLE_SYNCHRONIZATION_BM 0
101 
102 #define DEBUG_CONSOLE_SYNCHRONIZATION_FREERTOS 1
103 
109 #ifndef DEBUG_CONSOLE_DISABLE_RTOS_SYNCHRONIZATION
110 #ifdef DEBUG_CONSOLE_TRANSFER_NON_BLOCKING
111 #ifdef FSL_RTOS_FREE_RTOS
112 #define DEBUG_CONSOLE_SYNCHRONIZATION_MODE DEBUG_CONSOLE_SYNCHRONIZATION_FREERTOS
113 #else
114 #define DEBUG_CONSOLE_SYNCHRONIZATION_MODE DEBUG_CONSOLE_SYNCHRONIZATION_BM
115 #endif /* FSL_RTOS_FREE_RTOS */
116 #else
117 #define DEBUG_CONSOLE_SYNCHRONIZATION_MODE DEBUG_CONSOLE_SYNCHRONIZATION_BM
118 #endif /* DEBUG_CONSOLE_TRANSFER_NON_BLOCKING */
119 #endif /* DEBUG_CONSOLE_DISABLE_RTOS_SYNCHRONIZATION */
120 
125 #ifndef DEBUG_CONSOLE_ENABLE_ECHO
126 #define DEBUG_CONSOLE_ENABLE_ECHO_FUNCTION 0
127 #else
128 #define DEBUG_CONSOLE_ENABLE_ECHO_FUNCTION 1
129 #endif /* DEBUG_CONSOLE_ENABLE_ECHO */
130 
131 /*********************************************************************/
132 
133 /***************Debug console other configuration*********************/
135 #ifndef PRINTF_FLOAT_ENABLE
136 #define PRINTF_FLOAT_ENABLE 0U
137 #endif /* PRINTF_FLOAT_ENABLE */
138 
140 #ifndef SCANF_FLOAT_ENABLE
141 #define SCANF_FLOAT_ENABLE 0U
142 #endif /* SCANF_FLOAT_ENABLE */
143 
145 #ifndef PRINTF_ADVANCED_ENABLE
146 #define PRINTF_ADVANCED_ENABLE 0U
147 #endif /* PRINTF_ADVANCED_ENABLE */
148 
150 #ifndef SCANF_ADVANCED_ENABLE
151 #define SCANF_ADVANCED_ENABLE 0U
152 #endif /* SCANF_ADVANCED_ENABLE */
153 
155 #ifndef BOARD_USE_VIRTUALCOM
156 #define BOARD_USE_VIRTUALCOM 0U
157 #endif
158 /*******************************************************************/
159 
160 #endif /* _FSL_DEBUG_CONSOLE_CONF_H_ */
fsl_common.h


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:13:56