初级会员

- 积分
- 66
- 金钱
- 66
- 注册时间
- 2016-3-29
- 在线时间
- 26 小时
|

楼主 |
发表于 2016-4-9 22:24:48
|
显示全部楼层
是的,之前用的 st官网的库 * @file: core_cm3.c
* @purpose: CMSIS Cortex-M3 Core Peripheral Access Layer Source File
* @version: V1.10
* @date: 24. Feb. 2009
好使,但是我想用 delay.c的库,移植过来后就报错,
..\USER\system_stm32f10x.c(267): error: #20: identifier "FLASH_BASE" is undefined
SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH. */
..\USER\system_stm32f10x.c(324): error: #20: identifier "HSI_VALUE" is undefined
SystemCoreClock = HSI_VALUE;
..\USER\system_stm32f10x.c(327): error: #20: identifier "HSE_VALUE" is undefined
SystemCoreClock = HSE_VALUE;
..\USER\system_stm32f10x.c(1000): error: #20: identifier "HSE_STARTUP_TIMEOUT" is undefined
} while((HSEStatus == 0) && (StartUpCounter != HSE_STARTUP_TIMEOUT));
..\USER\system_stm32f10x.c(1056): error: #20: identifier "RCC_CFGR_PLLSRC_HSE" is undefined
RCC->CFGR |= (uint32_t)(RCC_CFGR_PLLSRC_HSE | RCC_CFGR_PLLMULL9);
..\USER\system_stm32f10x.c: 0 warnings, 5 errors
..\SYSTEM\delay\delay.c(121): error: #20: identifier "SysTick_CTRL_ENABLE_Msk" is undefined
SysTick->CTRL|=SysTick_CTRL_ENABLE_Msk ; //开始倒数
..\SYSTEM\delay\delay.c(141): error: #20: identifier "SysTick_CTRL_ENABLE_Msk" is undefined
SysTick->CTRL|=SysTick_CTRL_ENABLE_Msk ; //开始倒数
..\SYSTEM\delay\delay.c: 0 warnings, 2 errors
|
|