新手上路
- 积分
- 40
- 金钱
- 40
- 注册时间
- 2012-9-8
- 在线时间
- 0 小时
|
为什么按照不完全手册2.0学,到这里就是得不到结果!
但是我的结果是这样的,
Build target 'Target 1'
compiling txet.c...
txet.c(4): error: #13: expected a file name
compiling delay.c...
..\SYSTEM\delay\delay.c(27): warning: #223-D: function "SysTick_CLKSourceConfig" declared implicitly
..\SYSTEM\delay\delay.c(27): error: #20: identifier "SysTick_CLKSource_HCLK_Div8" is undefined
compiling sys.c...
..\SYSTEM\sys\sys.c(18): warning: #223-D: function "NVIC_PriorityGroupConfig" declared implicitly
..\SYSTEM\sys\sys.c(18): error: #20: identifier "NVIC_PriorityGroup_2" is undefined
compiling usart.c...
..\SYSTEM\usart\usart.c(75): error: #20: identifier "GPIO_InitTypeDef" is undefined
..\SYSTEM\usart\usart.c(76): error: #20: identifier "USART_InitTypeDef" is undefined
..\SYSTEM\usart\usart.c(77): error: #20: identifier "NVIC_InitTypeDef" is undefined
..\SYSTEM\usart\usart.c(79): warning: #223-D: function "RCC_APB2PeriphClockCmd" declared implicitly
..\SYSTEM\usart\usart.c(79): error: #20: identifier "RCC_APB2Periph_USART1" is undefined
..\SYSTEM\usart\usart.c(79): error: #20: identifier "RCC_APB2Periph_GPIOA" is undefined
..\SYSTEM\usart\usart.c(79): error: #20: identifier "RCC_APB2Periph_AFIO" is undefined
..\SYSTEM\usart\usart.c(81): error: #20: identifier "GPIO_Pin_9" is undefined
..\SYSTEM\usart\usart.c(82): error: #20: identifier "GPIO_Speed_50MHz" is undefined
..\SYSTEM\usart\usart.c(83): error: #20: identifier "GPIO_Mode_AF_PP" is undefined
..\SYSTEM\usart\usart.c(84): warning: #223-D: function "GPIO_Init" declared implicitly
..\SYSTEM\usart\usart.c(87): error: #20: identifier "GPIO_Pin_10" is undefined
..\SYSTEM\usart\usart.c(88): error: #20: identifier "GPIO_Mode_IN_FLOATING" is undefined
..\SYSTEM\usart\usart.c(98): warning: #223-D: function "NVIC_Init" declared implicitly
..\SYSTEM\usart\usart.c(103): error: #20: identifier "USART_WordLength_8b" is undefined
..\SYSTEM\usart\usart.c(104): error: #20: identifier "USART_StopBits_1" is undefined
..\SYSTEM\usart\usart.c(105): error: #20: identifier "USART_Parity_No" is undefined
..\SYSTEM\usart\usart.c(106): error: #20: identifier "USART_HardwareFlowControl_None" is undefined
..\SYSTEM\usart\usart.c(107): error: #20: identifier "USART_Mode_Rx" is undefined
..\SYSTEM\usart\usart.c(107): error: #20: identifier "USART_Mode_Tx" is undefined
..\SYSTEM\usart\usart.c(109): warning: #223-D: function "USART_Init" declared implicitly
..\SYSTEM\usart\usart.c(112): warning: #223-D: function "USART_ITConfig" declared implicitly
..\SYSTEM\usart\usart.c(112): error: #20: identifier "USART_IT_RXNE" is undefined
..\SYSTEM\usart\usart.c(114): warning: #223-D: function "USART_Cmd" declared implicitly
..\SYSTEM\usart\usart.c(121): warning: #223-D: function "USART_GetITStatus" declared implicitly
..\SYSTEM\usart\usart.c(121): error: #20: identifier "USART_IT_RXNE" is undefined
..\SYSTEM\usart\usart.c(123): warning: #223-D: function "USART_ReceiveData" declared implicitly
Target not created
每一步我都细心的按照上面的步骤来的,已经重复了3次,是不是我的电脑有问题?
|
|