标签:
D:\Workspace\........\RTE\Device>STM32CubeMX.exe
-s project.script
-tpl_path C:\Keil5\ARM\Pack\Keil\STM32F4xx_DFP\2.5.0\MDK\CubeMX\
-dest_path [D:\Workspace\........\RTE\Device\]STM32F407IGHx\
使用 D:\Workspace\........\RTE\Device\project.script
生成 D:\Workspace\........\RTE\Device\STM32F407IGHx\MX_Device.h
生成 D:\Workspace\........\RTE\Device\STM32F407IGHx\FrameworkCubeMX.gpdsc
dest_path = D:\Workspace\........\RTE\Device\STM32F407IGHx\
STM32CubeMX 工程目录:D:\Workspace\........\RTE\Device\STM32F407IGHx\STCubeGenerated\
Keil -------------工程目录:D:\Workspace\........\RTE\Device\STM32F407IGHx\STCubeGenerated\MDK-ARM
MX_Device.h
/****************************************************************************** * File Name : MX_Device.h * Date : 07/08/2015 18:06:21 * Description : STM32Cube MX parameter definitions * Note : This file is generated by STM32CubeMX (DO NOT EDIT!) ******************************************************************************/ #ifndef __MX_DEVICE_H #define __MX_DEVICE_H /*---------------------------- Clock Configuration ---------------------------*/ #define MX_LSI_VALUE 32000 #define MX_LSE_VALUE 32768 #define MX_HSI_VALUE 16000000 #define MX_HSE_VALUE 25000000 #define MX_EXTERNAL_CLOCK_VALUE 12288000 #define MX_SYSCLKFreq_VALUE 16000000 #define MX_HCLKFreq_Value 16000000 #define MX_FCLKCortexFreq_Value 16000000 #define MX_CortexFreq_Value 16000000 #define MX_AHBFreq_Value 16000000 #define MX_APB1Freq_Value 16000000 #define MX_APB2Freq_Value 16000000 #define MX_APB1TimFreq_Value 16000000 #define MX_APB2TimFreq_Value 16000000 #define MX_48MHZClocksFreq_Value 48000000 #define MX_EthernetFreq_Value 16000000 #define MX_I2SClocksFreq_Value 96000000 #define MX_WatchDogFreq_Value 32000 #define MX_RTCFreq_Value 32000 #define MX_MCO1PinFreq_Value 16000000 #define MX_MCO2PinFreq_Value 16000000 /*-------------------------------- NVIC --------------------------------*/ #define MX_NVIC 1 /*-------------------------------- USART1 --------------------------------*/ #define MX_USART1 1 #define MX_USART1_VM VM_ASYNC /* GPIO Configuration */ /* Pin PB7 */ #define MX_USART1_RX_Pin PB7 #define MX_USART1_RX_GPIO_AF GPIO_AF7_USART1 #define MX_USART1_RX_GPIO_Speed GPIO_SPEED_HIGH #define MX_USART1_RX_GPIO_PuPd GPIO_PULLUP #define MX_USART1_RX_GPIOx GPIOB #define MX_USART1_RX_GPIO_Mode GPIO_MODE_AF_PP #define MX_USART1_RX_GPIO_Pin GPIO_PIN_7 /* Pin PB6 */ #define MX_USART1_TX_Pin PB6 #define MX_USART1_TX_GPIO_AF GPIO_AF7_USART1 #define MX_USART1_TX_GPIO_Speed GPIO_SPEED_HIGH #define MX_USART1_TX_GPIO_PuPd GPIO_PULLUP #define MX_USART1_TX_GPIOx GPIOB #define MX_USART1_TX_GPIO_Mode GPIO_MODE_AF_PP #define MX_USART1_TX_GPIO_Pin GPIO_PIN_6 /*-------------------------------- USART2 --------------------------------*/ #define MX_USART2 1 #define MX_USART2_VM VM_ASYNC /* GPIO Configuration */ /* Pin PD5 */ #define MX_USART2_TX_Pin PD5 #define MX_USART2_TX_GPIO_AF GPIO_AF7_USART2 #define MX_USART2_TX_GPIO_Speed GPIO_SPEED_HIGH #define MX_USART2_TX_GPIO_PuPd GPIO_PULLUP #define MX_USART2_TX_GPIOx GPIOD #define MX_USART2_TX_GPIO_Mode GPIO_MODE_AF_PP #define MX_USART2_TX_GPIO_Pin GPIO_PIN_5 /* Pin PD6 */ #define MX_USART2_RX_Pin PD6 #define MX_USART2_RX_GPIO_AF GPIO_AF7_USART2 #define MX_USART2_RX_GPIO_Speed GPIO_SPEED_HIGH #define MX_USART2_RX_GPIO_PuPd GPIO_PULLUP #define MX_USART2_RX_GPIOx GPIOD #define MX_USART2_RX_GPIO_Mode GPIO_MODE_AF_PP #define MX_USART2_RX_GPIO_Pin GPIO_PIN_6 /*-------------------------------- GPIO --------------------------------*/ #define MX_GPIO 1 /* GPIO Configuration */ #endif /* __MX_DEVICE_H */
标签:
原文地址:http://www.cnblogs.com/shangdawei/p/4711768.html