新手上路
- 积分
- 43
- 金钱
- 43
- 注册时间
- 2012-9-13
- 在线时间
- 8 小时
|

楼主 |
发表于 2016-8-31 14:57:52
|
显示全部楼层
不好意思,公司的东西。主函数:
int main(void)
{
SCB->VTOR = FLASH_BASE | 0x30000; /* Vector Table Relocation in Internal FLASH. */
System_Init(); //系统时钟
LED_Init(); //LED 初始化 PWM配置
testxxxx = 5;
while(1)
{
TIM5->CCR1 = testxxxx;
TIM5->CCR3 = testxxxx;
TIM5->CCR2 = testxxxx;
TIM5->CCR4 = testxxxx;
// GPIO_SetBits(GPIOA,GPIO_Pin_2);
// Delay_Nop(65500);
// GPIO_ResetBits(GPIOA,GPIO_Pin_2);
// Delay_Nop(65500);
}
}
|
|