⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 irq.lst

📁 完成数据的采集
💻 LST
📖 第 1 页 / 共 3 页
字号:
###############################################################################
#                                                                             #
#                                                       10/Jun/2008  15:11:01 #
# IAR ARM ANSI C/C++ Compiler V5.11.0.20622/W32 EVALUATION                    #
# Copyright 1999-2007 IAR Systems. All rights reserved.                       #
#                                                                             #
#    Cpu mode     =  thumb                                                    #
#    Endian       =  little                                                   #
#    Source file  =  E:\ELE\yten\pro\Vector\IRQ.c                             #
#    Command line =  E:\ELE\yten\pro\Vector\IRQ.c -lcN                        #
#                    E:\ELE\yten\pro\Debug\List\ -o                           #
#                    E:\ELE\yten\pro\Debug\Obj\ --debug --endian little       #
#                    --cpu Cortex-M3 -e --fpu None --dlib_config              #
#                    D:\IARARM\ARM\INC\DLib_Config_Normal.h -I                #
#                    E:\ELE\yten\pro\ -I E:\ELE\yten\pro\..\LIBRARY\INC\ -I   #
#                    D:\IARARM\ARM\INC\ -Oh                                   #
#    List file    =  E:\ELE\yten\pro\Debug\List\IRQ.lst                       #
#    Object file  =  E:\ELE\yten\pro\Debug\Obj\IRQ.o                          #
#                                                                             #
#                                                                             #
###############################################################################

E:\ELE\yten\pro\Vector\IRQ.c
      1          /******************************************************************************/
      2          /* IRQ.C: IRQ Handler                                                         */
      3          /******************************************************************************/
      4          /* This file is part of the uVision/ARM development tools.                    */
      5          /* Copyright (c) 2005-2007 Keil Software. All rights reserved.                */
      6          /* This software may only be used under the terms of a valid, current,        */
      7          /* end user licence from KEIL for a compatible version of KEIL software       */
      8          /* development tools. Nothing else gives you the right to use this software.  */
      9          /******************************************************************************/
     10          
     11          #include <stm32f10x_lib.h>              /* STM32F10x Library Definitions      */
     12          #include "stm32f10x_it.h"
     13          
     14          unsigned char Clock1s;
     15          
     16          extern unsigned short int ADC_ConvertedValue;
     17          
     18          
     19          /* SysTick interrupt happens every 10 ms                                      */
     20          void SysTick_Handler (void) {
     21            static unsigned long ticks;
     22            static unsigned long timetick;
     23            static unsigned char leds = 0x01;
     24          
     25            if (ticks++ >= 99) {                  /* Set Clock1s to 1 every 1 second    */
     26              ticks   = 0;
     27              Clock1s = 1;
     28            }
     29          
     30            /* Activate LEDs with shift                                                 */
     31            if (timetick++ >= (ADC_ConvertedValue>>8)) {
     32              timetick   = 0;
     33              leds     <<= 1;
     34              if (leds == 0) leds = 0x01;
     35              GPIOB->ODR = (GPIOB->ODR & 0xFFFF00FF) | (leds << 8);
     36            }
     37          }
     38          /******************** (C) COPYRIGHT 2007 STMicroelectronics ********************
     39          * File Name          : stm32f10x_it.c
     40          * Author             : MCD Application Team
     41          * Version            : V1.0
     42          * Date               : 10/08/2007
     43          * Description        : Main Interrupt Service Routines.
     44          *                      This file can be used to describe all the exceptions
     45          *                      subroutines that may occur within user application.
     46          *                      When an interrupt happens, the software will branch
     47          *                      automatically to the corresponding routine.
     48          *                      The following routines are all empty, user can write code
     49          *                      for exceptions handlers and peripherals IRQ interrupts.
     50          ********************************************************************************
     51          * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
     52          * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
     53          * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
     54          * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
     55          * CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
     56          * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
     57          *******************************************************************************/
     58          
     59          /* Includes ------------------------------------------------------------------*/
     60          
     61          
     62          /* Private typedef -----------------------------------------------------------*/
     63          /* Private define ------------------------------------------------------------*/
     64          /* Private macro -------------------------------------------------------------*/
     65          /* Private variables ---------------------------------------------------------*/
     66          extern void Timer0IntrHandler (void);
     67          
     68          /* Private function prototypes -----------------------------------------------*/
     69          /* Private functions ---------------------------------------------------------*/
     70          
     71          /*******************************************************************************
     72          * Function Name  : NMIException
     73          * Description    : This function handles NMI exception.
     74          * Input          : None
     75          * Output         : None
     76          * Return         : None
     77          *******************************************************************************/
     78          void NMIException(void)
     79          {
     80          }
     81          
     82          /*******************************************************************************
     83          * Function Name  : HardFaultException
     84          * Description    : This function handles Hard Fault exception.
     85          * Input          : None
     86          * Output         : None
     87          * Return         : None
     88          *******************************************************************************/
     89          void HardFaultException(void)
     90          {
     91          
     92          }
     93          
     94          /*******************************************************************************
     95          * Function Name  : MemManageException
     96          * Description    : This function handles Memory Manage exception.
     97          * Input          : None
     98          * Output         : None
     99          * Return         : None
    100          *******************************************************************************/
    101          void MemManageException(void)
    102          {
    103            /* Go to infinite loop when Memory Manage exception occurs */
    104            while (1)
    105            {
    106            }
    107          }
    108          
    109          /*******************************************************************************
    110          * Function Name  : BusFaultException
    111          * Description    : This function handles Bus Fault exception.
    112          * Input          : None
    113          * Output         : None
    114          * Return         : None
    115          *******************************************************************************/
    116          void BusFaultException(void)
    117          {
    118            /* Go to infinite loop when Bus Fault exception occurs */
    119            while (1)
    120            {
    121            }
    122          }
    123          
    124          /*******************************************************************************
    125          * Function Name  : UsageFaultException
    126          * Description    : This function handles Usage Fault exception.
    127          * Input          : None
    128          * Output         : None
    129          * Return         : None
    130          *******************************************************************************/
    131          void UsageFaultException(void)
    132          {
    133            /* Go to infinite loop when Usage Fault exception occurs */
    134            while (1)
    135            {
    136            }
    137          }
    138          
    139          /*******************************************************************************
    140          * Function Name  : DebugMonitor
    141          * Description    : This function handles Debug Monitor exception.
    142          * Input          : None
    143          * Output         : None
    144          * Return         : None
    145          *******************************************************************************/
    146          void DebugMonitor(void)
    147          {
    148          }
    149          
    150          /*******************************************************************************
    151          * Function Name  : SVCHandler
    152          * Description    : This function handles SVCall exception.
    153          * Input          : None
    154          * Output         : None
    155          * Return         : None
    156          *******************************************************************************/
    157          void SVCHandler(void)
    158          {
    159          }
    160          
    161          /*******************************************************************************
    162          * Function Name  : PendSVC
    163          * Description    : This function handles PendSVC exception.
    164          * Input          : None
    165          * Output         : None
    166          * Return         : None
    167          *******************************************************************************/
    168          void PendSVC(void)
    169          {
    170          }
    171          
    172          /*******************************************************************************
    173          * Function Name  : SysTickHandler
    174          * Description    : This function handles SysTick Handler.
    175          * Input          : None
    176          * Output         : None
    177          * Return         : None
    178          *******************************************************************************/
    179          void SysTickHandler(void)
    180          {
    181          }
    182          
    183          /*******************************************************************************
    184          * Function Name  : WWDG_IRQHandler
    185          * Description    : This function handles WWDG interrupt request.
    186          * Input          : None
    187          * Output         : None
    188          * Return         : None
    189          *******************************************************************************/
    190          void WWDG_IRQHandler(void)
    191          {
    192          }
    193          
    194          /*******************************************************************************
    195          * Function Name  : PVD_IRQHandler
    196          * Description    : This function handles PVD interrupt request.
    197          * Input          : None
    198          * Output         : None
    199          * Return         : None
    200          *******************************************************************************/
    201          void PVD_IRQHandler(void)
    202          {
    203          }
    204          
    205          /*******************************************************************************
    206          * Function Name  : TAMPER_IRQHandler
    207          * Description    : This function handles Tamper interrupt request.
    208          * Input          : None
    209          * Output         : None
    210          * Return         : None
    211          *******************************************************************************/
    212          void TAMPER_IRQHandler(void)
    213          {
    214          }
    215          
    216          /*******************************************************************************
    217          * Function Name  : RTC_IRQHandler
    218          * Description    : This function handles RTC global interrupt request.
    219          * Input          : None
    220          * Output         : None
    221          * Return         : None
    222          *******************************************************************************/
    223          void RTC_IRQHandler(void)
    224          {
    225          }
    226          
    227          /*******************************************************************************
    228          * Function Name  : FLASH_IRQHandler
    229          * Description    : This function handles Flash interrupt request.
    230          * Input          : None
    231          * Output         : None
    232          * Return         : None
    233          *******************************************************************************/
    234          void FLASH_IRQHandler(void)
    235          {
    236          }
    237          
    238          /*******************************************************************************
    239          * Function Name  : RCC_IRQHandler
    240          * Description    : This function handles RCC interrupt request.
    241          * Input          : None
    242          * Output         : None
    243          * Return         : None
    244          *******************************************************************************/
    245          void RCC_IRQHandler(void)
    246          {
    247          }
    248          

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -