1 /***********************************************************************************************//**
2  * \copyright
3  * Copyright 2020-2022 Cypress Semiconductor Corporation (an Infineon company) or
4  * an affiliate of Cypress Semiconductor Corporation
5  *
6  * SPDX-License-Identifier: Apache-2.0
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *     http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  **************************************************************************************************/
20 
21 /**
22  * \addtogroup group_bsp_bt Bluetooth Configuration Structure
23  * \{
24  * Basic configuration structure for the Bluetooth interface on this board.
25  */
26 #pragma once
27 
28 #if defined(COMPONENT_WICED_BLE) || defined(COMPONENT_WICED_DUALMODE)
29 
30 #include "cybt_platform_config.h"
31 #include "cycfg_pins.h"
32 
33 #if defined(__cplusplus)
34 extern "C" {
35 #endif
36 
37 #if !defined(CYBSP_BT_PLATFORM_CFG_BAUD_DOWNLOAD)
38 /** If not already defined, the baud rate to download data at. */
39 #define CYBSP_BT_PLATFORM_CFG_BAUD_DOWNLOAD     (115200)
40 #endif
41 
42 #if !defined(CYBSP_BT_PLATFORM_CFG_BAUD_FEATURE)
43 /** If not already defined, the baud rate for general operation. */
44 #define CYBSP_BT_PLATFORM_CFG_BAUD_FEATURE      (115200)
45 #endif
46 
47 #if !defined(CYBSP_BT_PLATFORM_CFG_BITS_DATA)
48 /** If not already defined, the number of data bits to transmit. */
49 #define CYBSP_BT_PLATFORM_CFG_BITS_DATA         (8)
50 #endif
51 
52 #if !defined(CYBSP_BT_PLATFORM_CFG_BITS_STOP)
53 /** If not already defined, the number of stop bits to transmit. */
54 #define CYBSP_BT_PLATFORM_CFG_BITS_STOP         (1)
55 #endif
56 
57 #if !defined(CYBSP_BT_PLATFORM_CFG_MEM_POOL_BYTES)
58 /** If not already defined, the number of bytes to allocated for the task memory pool. */
59 #define CYBSP_BT_PLATFORM_CFG_MEM_POOL_BYTES    (2048)
60 #endif
61 
62 #if !defined(CYBSP_BT_PLATFORM_CFG_SLEEP_MODE_LP_ENABLED)
63 /** If not already defined, the sleep mode LP is enabled. */
64 #define CYBSP_BT_PLATFORM_CFG_SLEEP_MODE_LP_ENABLED      (CYCFG_BT_LP_ENABLED)
65 #endif
66 
67 /** Bluetooth platform configuration settings for the board. */
68 extern const cybt_platform_config_t cybsp_bt_platform_cfg;
69 
70 #ifdef __cplusplus
71 }
72 #endif // __cplusplus
73 
74 #endif /* defined(COMPONENT_WICED_BLE) || defined(COMPONENT_WICED_DUALMODE) */
75 
76 /** \} group_bsp_bt */
77