Skip to content

Commit 899acb1

Browse files
adustmc1728p9
authored andcommitted
ADD NEW TARGET : NUCLEO_F756ZG, based on existing NUCLEO_F746ZG
1 parent 025a041 commit 899acb1

File tree

29 files changed

+9890
-2
lines changed

29 files changed

+9890
-2
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

targets/TARGET_STM/TARGET_STM32F7/TARGET_F746_F756/TARGET_NUCLEO_F756ZG/device/stm32f756xx.h

Lines changed: 9659 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,216 @@
1+
/**
2+
******************************************************************************
3+
* @file stm32f7xx.h
4+
* @author MCD Application Team
5+
* @version V1.1.0
6+
* @date 22-April-2016
7+
* @brief CMSIS STM32F7xx Device Peripheral Access Layer Header File.
8+
*
9+
* The file is the unique include file that the application programmer
10+
* is using in the C source code, usually in main.c. This file contains:
11+
* - Configuration section that allows to select:
12+
* - The STM32F7xx device used in the target application
13+
* - To use or not the peripheral’s drivers in application code(i.e.
14+
* code will be based on direct access to peripheral’s registers
15+
* rather than drivers API), this option is controlled by
16+
* "#define USE_HAL_DRIVER"
17+
*
18+
******************************************************************************
19+
* @attention
20+
*
21+
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
22+
*
23+
* Redistribution and use in source and binary forms, with or without modification,
24+
* are permitted provided that the following conditions are met:
25+
* 1. Redistributions of source code must retain the above copyright notice,
26+
* this list of conditions and the following disclaimer.
27+
* 2. Redistributions in binary form must reproduce the above copyright notice,
28+
* this list of conditions and the following disclaimer in the documentation
29+
* and/or other materials provided with the distribution.
30+
* 3. Neither the name of STMicroelectronics nor the names of its contributors
31+
* may be used to endorse or promote products derived from this software
32+
* without specific prior written permission.
33+
*
34+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
35+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
36+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
37+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
38+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
39+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
40+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
41+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
42+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
43+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44+
*
45+
******************************************************************************
46+
*/
47+
48+
/** @addtogroup CMSIS
49+
* @{
50+
*/
51+
52+
/** @addtogroup stm32f7xx
53+
* @{
54+
*/
55+
56+
#ifndef __STM32F7xx_H
57+
#define __STM32F7xx_H
58+
59+
#ifdef __cplusplus
60+
extern "C" {
61+
#endif /* __cplusplus */
62+
63+
/** @addtogroup Library_configuration_section
64+
* @{
65+
*/
66+
67+
/**
68+
* @brief STM32 Family
69+
*/
70+
#if !defined (STM32F7)
71+
#define STM32F7
72+
#endif /* STM32F7 */
73+
74+
/* Uncomment the line below according to the target STM32 device used in your
75+
application
76+
*/
77+
#if !defined (STM32F756xx) && !defined (STM32F746xx) && !defined (STM32F745xx) && !defined (STM32F767xx) && \
78+
!defined (STM32F769xx) && !defined (STM32F777xx) && !defined (STM32F779xx)
79+
#define STM32F756xx /*!< STM32F756VG, STM32F756ZG, STM32F756ZG, STM32F756IG, STM32F756BG,
80+
STM32F756NG Devices */
81+
/* #define STM32F746xx */ /*!< STM32F746VE, STM32F746VG, STM32F746ZE, STM32F746ZG, STM32F746IE, STM32F746IG,
82+
STM32F746BE, STM32F746BG, STM32F746NE, STM32F746NG Devices */
83+
/* #define STM32F745xx */ /*!< STM32F745VE, STM32F745VG, STM32F745ZG, STM32F745ZE, STM32F745IE, STM32F745IG Devices */
84+
/* #define STM32F765xx */ /*!< STM32F765BI, STM32F765BG, STM32F765NI, STM32F765NG, STM32F765II, STM32F765IG,
85+
STM32F765ZI, STM32F765ZG, STM32F765VI, STM32F765VG Devices */
86+
/* #define STM32F767xx */ /*!< STM32F767BG, STM32F767BI, STM32F767IG, STM32F767II, STM32F767NG, STM32F767NI,
87+
STM32F767VG, STM32F767VI, STM32F767ZG, STM32F767ZI, STM32F768AI Devices */
88+
/* #define STM32F769xx */ /*!< STM32F769AG, STM32F769AI, STM32F769BG, STM32F769BI, STM32F769IG, STM32F769II,
89+
STM32F769NG, STM32F769NI Devices */
90+
/* #define STM32F777xx */ /*!< STM32F777VI, STM32F777ZI, STM32F777II, STM32F777BI, STM32F777NI, STM32F778AI Devices */
91+
/* #define STM32F779xx */ /*!< STM32F779II, STM32F779BI, STM32F779NI, STM32F779AI Devices */
92+
#endif
93+
94+
/* Tip: To avoid modifying this file each time you need to switch between these
95+
devices, you can define the device in your toolchain compiler preprocessor.
96+
*/
97+
98+
#if !defined (USE_HAL_DRIVER)
99+
/**
100+
* @brief Comment the line below if you will not use the peripherals drivers.
101+
In this case, these drivers will not be included and the application code will
102+
be based on direct access to peripherals registers
103+
*/
104+
#define USE_HAL_DRIVER
105+
#endif /* USE_HAL_DRIVER */
106+
107+
/**
108+
* @brief CMSIS Device version number V1.1.0
109+
*/
110+
#define __STM32F7_CMSIS_VERSION_MAIN (0x01) /*!< [31:24] main version */
111+
#define __STM32F7_CMSIS_VERSION_SUB1 (0x01) /*!< [23:16] sub1 version */
112+
#define __STM32F7_CMSIS_VERSION_SUB2 (0x00) /*!< [15:8] sub2 version */
113+
#define __STM32F7_CMSIS_VERSION_RC (0x00) /*!< [7:0] release candidate */
114+
#define __STM32F7_CMSIS_VERSION ((__STM32F7_CMSIS_VERSION_MAIN << 24)\
115+
|(__STM32F7_CMSIS_VERSION_SUB1 << 16)\
116+
|(__STM32F7_CMSIS_VERSION_SUB2 << 8 )\
117+
|(__STM32F7_CMSIS_VERSION))
118+
/**
119+
* @}
120+
*/
121+
122+
/** @addtogroup Device_Included
123+
* @{
124+
*/
125+
#if defined(STM32F756xx)
126+
#include "stm32f756xx.h"
127+
#elif defined(STM32F746xx)
128+
#include "stm32f746xx.h"
129+
#elif defined(STM32F745xx)
130+
#include "stm32f745xx.h"
131+
#elif defined(STM32F765xx)
132+
#include "stm32f765xx.h"
133+
#elif defined(STM32F767xx)
134+
#include "stm32f767xx.h"
135+
#elif defined(STM32F769xx)
136+
#include "stm32f769xx.h"
137+
#elif defined(STM32F777xx)
138+
#include "stm32f777xx.h"
139+
#elif defined(STM32F779xx)
140+
#include "stm32f779xx.h"
141+
#else
142+
#error "Please select first the target STM32F7xx device used in your application (in stm32f7xx.h file)"
143+
#endif
144+
145+
/**
146+
* @}
147+
*/
148+
149+
/** @addtogroup Exported_types
150+
* @{
151+
*/
152+
typedef enum
153+
{
154+
RESET = 0,
155+
SET = !RESET
156+
} FlagStatus, ITStatus;
157+
158+
typedef enum
159+
{
160+
DISABLE = 0,
161+
ENABLE = !DISABLE
162+
} FunctionalState;
163+
#define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE))
164+
165+
typedef enum
166+
{
167+
ERROR = 0,
168+
SUCCESS = !ERROR
169+
} ErrorStatus;
170+
171+
/**
172+
* @}
173+
*/
174+
175+
/** @addtogroup Exported_macro
176+
* @{
177+
*/
178+
#define SET_BIT(REG, BIT) ((REG) |= (BIT))
179+
180+
#define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT))
181+
182+
#define READ_BIT(REG, BIT) ((REG) & (BIT))
183+
184+
#define CLEAR_REG(REG) ((REG) = (0x0))
185+
186+
#define WRITE_REG(REG, VAL) ((REG) = (VAL))
187+
188+
#define READ_REG(REG) ((REG))
189+
190+
#define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK)))
191+
192+
#define POSITION_VAL(VAL) (__CLZ(__RBIT(VAL)))
193+
194+
/**
195+
* @}
196+
*/
197+
198+
#ifdef USE_HAL_DRIVER
199+
#include "stm32f7xx_hal_conf.h"
200+
#endif /* USE_HAL_DRIVER */
201+
202+
#ifdef __cplusplus
203+
}
204+
#endif /* __cplusplus */
205+
206+
#endif /* __STM32F7xx_H */
207+
208+
/**
209+
* @}
210+
*/
211+
212+
/**
213+
* @}
214+
*/
215+
216+
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
File renamed without changes.

0 commit comments

Comments
 (0)