新手上路
- 积分
- 28
- 金钱
- 28
- 注册时间
- 2020-6-30
- 在线时间
- 7 小时
|
楼主 |
发表于 2022-11-25 10:21:32
|
显示全部楼层
//void USART1_IRQHandler(void)
// { int i=0,j=0;
// uint16_t tmp3,T=10000;
//
// extern int counter;
//
// NVIC_InitTypeDef NVIC_InitStructure;
//
//// USART1->CR1&=0XFFFFFFF3;//1رշ¢Ëíóë½óêÕ,P542
// USART1->SR=0X00000000;//ËùóD±êÖ¾Çåáã,P540
//
////1رÕ′®¿úÖD¶Ï
// NVIC_InitStructure.NVIC_IRQChannel = USART1_IRQn; //ê1Äü′®¿ú1ÖD¶Ï,ÖD¶Ï¶Ôó|μÄÃû×ÖÔú
// //F:\armtest\TEST5-????\USER\stm32f10x.hÎļtÖD
// NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0x02; //ÇàÕ¼óÅÏ輶0£¬
// NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0x01; //×óóÅÏ輶1
// NVIC_InitStructure.NVIC_IRQChannelCmd =DISABLE; //1رÕÖD¶Ï
// NVIC_Init(&NVIC_InitStructure);
//
//
// counter=1;
// GPIOF->ODR=0X10;//¼ä¸ôμãáᣬ±êÖ¾μÆ |
|