增加define:STM32F10X_HD,USE_STDPERIPH_DRIVER 和conf.h文件后出现下面的提示
Build target 'MyFirstJob'
compiling stm32f10x_flash.c...
.\library\inc\stm32f10x_gpio.h(64): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(217): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(219): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(221): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(221): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(221): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(222): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(222): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(223): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(223): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(223): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(224): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(224): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(225): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(225): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(226): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(226): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(227): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(227): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(228): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(228): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(229): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(229): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(230): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(230): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(231): error: #20: identifier "FunctionalState" is undefined
.\library\inc\stm32f10x_gpio.h(232): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_gpio.h(232): error: #20: identifier "FunctionalState" is undefined
.\library\inc\stm32f10x_gpio.h(233): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(233): error: #20: identifier "u8" is undefined
compiling stm32f10x_gpio.c...
.\library\inc\stm32f10x_rcc.h(27): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_rcc.h(28): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_rcc.h(29): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_rcc.h(30): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_rcc.h(31): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_rcc.h(254): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_rcc.h(255): error: #20: identifier "ErrorStatus" is undefined
.\library\inc\stm32f10x_rcc.h(256): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_rcc.h(257): error: #20: identifier "FunctionalState" is undefined
.\library\inc\stm32f10x_rcc.h(258): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_rcc.h(258): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_rcc.h(259): error: #20: identifier "FunctionalState" is undefined
.\library\inc\stm32f10x_rcc.h(260): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_rcc.h(261): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_rcc.h(262): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_rcc.h(263): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_rcc.h(264): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_rcc.h(265): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_rcc.h(265): error: #20: identifier "FunctionalState" is undefined
.\library\inc\stm32f10x_rcc.h(266): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_rcc.h(267): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_rcc.h(268): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_rcc.h(269): error: #20: identifier "FunctionalState" is undefined
.\library\inc\stm32f10x_rcc.h(270): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_rcc.h(271): error: #20: identifier "FunctionalState" is undefined
.\library\inc\stm32f10x_rcc.h(273): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_rcc.h(273): error: #20: identifier "FunctionalState" is undefined
.\library\inc\stm32f10x_rcc.h(274): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_rcc.h(274): error: #20: identifier "FunctionalState" is undefined
.\library\inc\stm32f10x_rcc.h(275): error: #20: identifier "u32" is undefined
compiling stm32f10x_lib.c...
.\library\inc\stm32f10x_gpio.h(64): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(217): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(219): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(221): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(221): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(221): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(222): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(222): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(223): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(223): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(223): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(224): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(224): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(225): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(225): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(226): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(226): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(227): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(227): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(228): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(228): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(229): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(229): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(230): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(230): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(231): error: #20: identifier "FunctionalState" is undefined
.\library\inc\stm32f10x_gpio.h(232): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_gpio.h(232): error: #20: identifier "FunctionalState" is undefined
.\library\inc\stm32f10x_gpio.h(233): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(233): error: #20: identifier "u8" is undefined
compiling stm32f10x_rcc.c...
.\library\inc\stm32f10x_gpio.h(64): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(217): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(219): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(221): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(221): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(221): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(222): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(222): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(223): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(223): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(223): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(224): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(224): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(225): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(225): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(226): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(226): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(227): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(227): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(228): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(228): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(229): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(229): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(230): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(230): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(231): error: #20: identifier "FunctionalState" is undefined
.\library\inc\stm32f10x_gpio.h(232): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_gpio.h(232): error: #20: identifier "FunctionalState" is undefined
.\library\inc\stm32f10x_gpio.h(233): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(233): error: #20: identifier "u8" is undefined
compiling main.c...
src\main.c(5): warning: #1-D: last line of file ends without a newline
compiling stm32f10x_it.c...
.\library\inc\stm32f10x_gpio.h(64): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(217): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(219): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(221): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(221): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(221): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(222): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(222): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(223): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(223): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(223): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(224): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(224): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(225): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(225): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(226): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(226): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(227): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(227): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(228): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(228): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(229): error: #20: identifier "GPIO_TypeDef" is undefined
.\library\inc\stm32f10x_gpio.h(229): error: #20: identifier "u16" is undefined
.\library\inc\stm32f10x_gpio.h(230): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(230): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(231): error: #20: identifier "FunctionalState" is undefined
.\library\inc\stm32f10x_gpio.h(232): error: #20: identifier "u32" is undefined
.\library\inc\stm32f10x_gpio.h(232): error: #20: identifier "FunctionalState" is undefined
.\library\inc\stm32f10x_gpio.h(233): error: #20: identifier "u8" is undefined
.\library\inc\stm32f10x_gpio.h(233): error: #20: identifier "u8" is undefined
Target not created