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