xref: /btstack/port/stm32-wb55xx-nucleo-freertos/Inc/main.h (revision 0561b2d8d5dba972c7daa57d5e677f7a1327edfd)
1*0561b2d8STREFOU Felix /* USER CODE BEGIN Header */
2*0561b2d8STREFOU Felix /**
3*0561b2d8STREFOU Felix   ******************************************************************************
4*0561b2d8STREFOU Felix   * @file           : main.h
5*0561b2d8STREFOU Felix   * @brief          : Header for main.c file.
6*0561b2d8STREFOU Felix   *                   This file contains the common defines of the application.
7*0561b2d8STREFOU Felix   ******************************************************************************
8*0561b2d8STREFOU Felix   * @attention
9*0561b2d8STREFOU Felix   *
10*0561b2d8STREFOU Felix   * <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
11*0561b2d8STREFOU Felix   * All rights reserved.</center></h2>
12*0561b2d8STREFOU Felix   *
13*0561b2d8STREFOU Felix   * This software component is licensed by ST under BSD 3-Clause license,
14*0561b2d8STREFOU Felix   * the "License"; You may not use this file except in compliance with the
15*0561b2d8STREFOU Felix   * License. You may obtain a copy of the License at:
16*0561b2d8STREFOU Felix   *                        opensource.org/licenses/BSD-3-Clause
17*0561b2d8STREFOU Felix   *
18*0561b2d8STREFOU Felix   ******************************************************************************
19*0561b2d8STREFOU Felix   */
20*0561b2d8STREFOU Felix /* USER CODE END Header */
21*0561b2d8STREFOU Felix 
22*0561b2d8STREFOU Felix /* Define to prevent recursive inclusion -------------------------------------*/
23*0561b2d8STREFOU Felix #ifndef __MAIN_H
24*0561b2d8STREFOU Felix #define __MAIN_H
25*0561b2d8STREFOU Felix 
26*0561b2d8STREFOU Felix #ifdef __cplusplus
27*0561b2d8STREFOU Felix extern "C" {
28*0561b2d8STREFOU Felix #endif
29*0561b2d8STREFOU Felix 
30*0561b2d8STREFOU Felix #include "stm32wbxx.h"
31*0561b2d8STREFOU Felix 
32*0561b2d8STREFOU Felix #define DEBUG_USART                     USART1
33*0561b2d8STREFOU Felix #define DEBUG_USART_CLK_ENABLE()        __HAL_RCC_USART1_CLK_ENABLE()
34*0561b2d8STREFOU Felix #define DEBUG_GPIO_AF                   GPIO_AF7_USART1
35*0561b2d8STREFOU Felix #define DEBUG_USART_TX_Pin              GPIO_PIN_6
36*0561b2d8STREFOU Felix #define DEBUG_USART_TX_GPIO_Port        GPIOB
37*0561b2d8STREFOU Felix #define DEBUG_USART_RX_Pin              GPIO_PIN_7
38*0561b2d8STREFOU Felix #define DEBUG_USART_RX_GPIO_Port        GPIOB
39*0561b2d8STREFOU Felix #define DEBUG_USART_PORT_CLK_ENABLE()   __HAL_RCC_GPIOB_CLK_ENABLE()
40*0561b2d8STREFOU Felix 
41*0561b2d8STREFOU Felix #ifdef __cplusplus
42*0561b2d8STREFOU Felix }
43*0561b2d8STREFOU Felix #endif
44*0561b2d8STREFOU Felix 
45*0561b2d8STREFOU Felix #endif /* __MAIN_H */
46*0561b2d8STREFOU Felix 
47*0561b2d8STREFOU Felix /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
48