]> mj.ucw.cz Git - home-hw.git/blob - Inc/main.h
Experiments with USBD
[home-hw.git] / Inc / main.h
1 /**
2   ******************************************************************************
3   * @file           : main.h
4   * @brief          : Header for main.c file.
5   *                   This file contains the common defines of the application.
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) 2018 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 __MAIN_H__
52 #define __MAIN_H__
53
54 /* Includes ------------------------------------------------------------------*/
55 #include "stm32f1xx_ll_i2c.h"
56 #include "stm32f1xx_ll_rcc.h"
57 #include "stm32f1xx_ll_bus.h"
58 #include "stm32f1xx_ll_system.h"
59 #include "stm32f1xx_ll_exti.h"
60 #include "stm32f1xx_ll_cortex.h"
61 #include "stm32f1xx_ll_utils.h"
62 #include "stm32f1xx_ll_pwr.h"
63 #include "stm32f1xx_ll_dma.h"
64 #include "stm32f1xx.h"
65 #include "stm32f1xx_ll_gpio.h"
66
67 /* USER CODE BEGIN Includes */
68
69 /* USER CODE END Includes */
70
71 /* Private define ------------------------------------------------------------*/
72
73 #define LED_Pin LL_GPIO_PIN_13
74 #define LED_GPIO_Port GPIOC
75 #define BMP_DONE_Pin LL_GPIO_PIN_5
76 #define BMP_DONE_GPIO_Port GPIOB
77
78 /* ########################## Assert Selection ############################## */
79 /**
80   * @brief Uncomment the line below to expanse the "assert_param" macro in the 
81   *        HAL drivers code
82   */
83 /* #define USE_FULL_ASSERT    1U */
84
85 /* USER CODE BEGIN Private defines */
86
87 /* USER CODE END Private defines */
88
89 #ifdef __cplusplus
90  extern "C" {
91 #endif
92 void _Error_Handler(char *, int);
93
94 #define Error_Handler() _Error_Handler(__FILE__, __LINE__)
95 #ifdef __cplusplus
96 }
97 #endif
98
99 #endif /* __MAIN_H__ */
100
101 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/