📄 stm32f10x_it.lst
字号:
471 *******************************************************************************/
472 void TIM1_TRG_COM_IRQHandler(void)
473 {
474 }
475
476 /*******************************************************************************
477 * Function Name : TIM1_CC_IRQHandler
478 * Description : This function handles TIM1 capture compare interrupt request.
479 * Input : None
480 * Output : None
481 * Return : None
482 *******************************************************************************/
483 void TIM1_CC_IRQHandler(void)
484 {
485 }
486
487 /*******************************************************************************
488 * Function Name : TIM2_IRQHandler
489 * Description : This function handles TIM2 global interrupt request.
490 * Input : None
491 * Output : None
492 * Return : None
493 *******************************************************************************/
494 void TIM2_IRQHandler(void)
495 {
496 GPIO_InitTypeDef GPIO_InitStructure;
497 static u16 Seg_Old;
498
499 if (TIM_GetITStatus(TIM2, TIM_IT_CC1) != RESET)
500 {
501 TIM_ClearITPendingBit(TIM2, TIM_IT_CC1);
502
503 if (var == 0) /* OCMP_1 */
504 {
505 var++;
506
507 /* Segments(lcdcr) to be turned on are loaded with the value 1 otherwise 0 */
508 Seg_Old = frame[lcdcr];
509 GPIO_Write(GPIOE,Seg_Old);
510
511 /* com(lcdcr) is set to low, other coms set to Vdd/2 */
512 /* Configure all coms as Floating Input */
513 GPIO_InitStructure.GPIO_Pin = COMPORT;
514 GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;
515 GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
516 GPIO_Init(GPIOC, &GPIO_InitStructure);
517
518 /* com(lcdr) is set to low PP */
519 GPIO_ResetBits(GPIOC,com[lcdcr]);
520 GPIO_InitStructure.GPIO_Pin = com[lcdcr];
521 GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
522 GPIO_Init(GPIOC, &GPIO_InitStructure);
523 }
524 else /* OCMP_2 */
525 {
526 var = 0;
527
528 /* Segments(lcdcr) values are inverted */
529 Seg_Old = (u16)(~Seg_Old);
530 GPIO_Write(GPIOE,Seg_Old);
531
532 /* com(lcdcr) is set to high, other coms set to Vdd/2 */
533 /* Configure all coms as Floating Input */
534 GPIO_InitStructure.GPIO_Pin = COMPORT;
535 GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;
536 GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
537 GPIO_Init(GPIOC, &GPIO_InitStructure);
538
539 /* com(lcdr) is set to high PP */
540 GPIO_SetBits(GPIOC,com[lcdcr]);
541 GPIO_InitStructure.GPIO_Pin = com[lcdcr];
542 GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
543 GPIO_Init(GPIOC, &GPIO_InitStructure);
544
545 lcdcr++;
546 if (lcdcr>3) lcdcr =0;
547 }
548 }
549 else if (TIM_GetITStatus(TIM2, TIM_IT_Update) != RESET)
550 {
551 TIM_ClearITPendingBit(TIM2, TIM_IT_Update);
552
553 /* All seg and coms off to decrease VRMS */
554 GPIO_Write(GPIOE,0); /* Clear segments on portE */
555 GPIO_ResetBits(GPIOC,COMPORT); /* Clear segments on portC */
556
557 /* Configure all coms as PP_output */
558 GPIO_InitStructure.GPIO_Pin = COMPORT;
559 GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
560 GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
561 GPIO_Init(GPIOC, &GPIO_InitStructure);
562 }
563 }
564
565 /*******************************************************************************
566 * Function Name : TIM3_IRQHandler
567 * Description : This function handles TIM3 global interrupt request.
568 * Input : None
569 * Output : None
570 * Return : None
571 *******************************************************************************/
572 void TIM3_IRQHandler(void)
573 {
574 }
575
576 /*******************************************************************************
577 * Function Name : TIM4_IRQHandler
578 * Description : This function handles TIM4 global interrupt request.
579 * Input : None
580 * Output : None
581 * Return : None
582 *******************************************************************************/
583 void TIM4_IRQHandler(void)
584 {
585 }
586
587 /*******************************************************************************
588 * Function Name : I2C1_EV_IRQHandler
589 * Description : This function handles I2C1 Event interrupt request.
590 * Input : None
591 * Output : None
592 * Return : None
593 *******************************************************************************/
594 void I2C1_EV_IRQHandler(void)
595 {
596 }
597
598 /*******************************************************************************
599 * Function Name : I2C1_ER_IRQHandler
600 * Description : This function handles I2C1 Error interrupt request.
601 * Input : None
602 * Output : None
603 * Return : None
604 *******************************************************************************/
605 void I2C1_ER_IRQHandler(void)
606 {
607 }
608
609 /*******************************************************************************
610 * Function Name : I2C2_EV_IRQHandler
611 * Description : This function handles I2C2 Event interrupt request.
612 * Input : None
613 * Output : None
614 * Return : None
615 *******************************************************************************/
616 void I2C2_EV_IRQHandler(void)
617 {
618 }
619
620 /*******************************************************************************
621 * Function Name : I2C2_ER_IRQHandler
622 * Description : This function handles I2C2 Error interrupt request.
623 * Input : None
624 * Output : None
625 * Return : None
626 *******************************************************************************/
627 void I2C2_ER_IRQHandler(void)
628 {
629 }
630
631 /*******************************************************************************
632 * Function Name : SPI1_IRQHandler
633 * Description : This function handles SPI1 global interrupt request.
634 * Input : None
635 * Output : None
636 * Return : None
637 *******************************************************************************/
638 void SPI1_IRQHandler(void)
639 {
640 }
641
642 /*******************************************************************************
643 * Function Name : SPI2_IRQHandler
644 * Description : This function handles SPI2 global interrupt request.
645 * Input : None
646 * Output : None
647 * Return : None
648 *******************************************************************************/
649 void SPI2_IRQHandler(void)
650 {
651 }
652
653 /*******************************************************************************
654 * Function Name : USART1_IRQHandler
655 * Description : This function handles USART1 global interrupt request.
656 * Input : None
657 * Output : None
658 * Return : None
659 *******************************************************************************/
660 void USART1_IRQHandler(void)
661 {
662 }
663
664 /*******************************************************************************
665 * Function Name : USART2_IRQHandler
666 * Description : This function handles USART2 global interrupt request.
667 * Input : None
668 * Output : None
669 * Return : None
670 *******************************************************************************/
671 void USART2_IRQHandler(void)
672 {
673 }
674
675 /*******************************************************************************
676 * Function Name : USART3_IRQHandler
677 * Description : This function handles USART3 global interrupt request.
678 * Input : None
679 * Output : None
680 * Return : None
681 *******************************************************************************/
682 void USART3_IRQHandler(void)
683 {
684 }
685
686 /*******************************************************************************
687 * Function Name : EXTI15_10_IRQHandler
688 * Description : This function handles External lines 15 to 10 interrupt request.
689 * Input : None
690 * Output : None
691 * Return : None
692 *******************************************************************************/
693 void EXTI15_10_IRQHandler(void)
694 {
695 }
696
697 /*******************************************************************************
698 * Function Name : RTCAlarm_IRQHandler
699 * Description : This function handles RTC Alarm interrupt request.
700 * Input : None
701 * Output : None
702 * Return : None
703 *******************************************************************************/
704 void RTCAlarm_IRQHandler(void)
705 {
706 }
707
708 /*******************************************************************************
709 * Function Name : USBWakeUp_IRQHandler
710 * Description : This function handles USB WakeUp interrupt request.
711 * Input : None
712 * Output : None
713 * Return : None
714 *******************************************************************************/
715 void USBWakeUp_IRQHandler(void)
716 {
717 }
718
719 /******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE****/
Errors: 1
Warnings: none
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -