Add OSD_STATE_GROUP_ELEMENTS state to osdUpdate() and optimise DMA vs polled MAX7456...
[betaflight.git] / src / main / vcp / platform_config.h
blob3f09726229c69a10cbf4c888cc1878e9a7fa80cc
1 /**
2 ******************************************************************************
3 * @file platform_config.h
4 * @author MCD Application Team
5 * @version V4.0.0
6 * @date 21-January-2013
7 * @brief Evaluation board specific configuration file.
8 ******************************************************************************
9 * @attention
11 * <h2><center>&copy; COPYRIGHT 2013 STMicroelectronics</center></h2>
13 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 * You may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at:
17 * http://www.st.com/software_license_agreement_liberty_v2
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
25 ******************************************************************************
28 /* Define to prevent recursive inclusion -------------------------------------*/
29 #ifndef __PLATFORM_CONFIG_H
30 #define __PLATFORM_CONFIG_H
32 /* Includes ------------------------------------------------------------------*/
33 #if defined (STM32F10X_MD) || defined (STM32F10X_HD)
34 #include "stm32f10x.h"
35 #elif defined (STM32F303xC)
36 #include "stm32f30x.h"
37 #endif
39 /* Exported types ------------------------------------------------------------*/
40 /* Exported constants --------------------------------------------------------*/
42 /*Unique Devices IDs register set*/
44 #if defined (STM32F37X) || defined(STM32F303xC)
46 #define ID1 (0x1FFFF7AC)
47 #define ID2 (0x1FFFF7B0)
48 #define ID3 (0x1FFFF7B4)
50 #else /*STM32F1x*/
52 #define ID1 (0x1FFFF7E8)
53 #define ID2 (0x1FFFF7EC)
54 #define ID3 (0x1FFFF7F0)
56 #endif
58 /* Exported macro ------------------------------------------------------------*/
59 /* Exported functions ------------------------------------------------------- */
61 #endif /* __PLATFORM_CONFIG_H */
63 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/