gonzui


Format: Advanced Search

mtkernel_3/kernel/sysdepend/cpu/stm32l4/vector_tbl.cbare sourcepermlink (0.01 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    micro T-Kernel 3.00.04
    4:  *
    5:  *    Copyright (C) 2006-2021 by Ken Sakamura.
    6:  *    This software is distributed under the T-License 2.2.
    7:  *----------------------------------------------------------------------
    8:  *
    9:  *    Released by TRON Forum(http://www.tron.org) at 2021/05/17.
   10:  *
   11:  *----------------------------------------------------------------------
   12:  */
   13: 
   14: #include <sys/machine.h>
   15: #ifdef CPU_STM32L4
   16: 
   17: /*
   18:  *      vector_tbl.h (STM32L)
   19:  *      Exception/Interrupt Vector Table
   20:  */
   21: 
   22: #include "kernel.h"
   23: #include "../../sysdepend.h"
   24: 
   25: /* ------------------------------------------------------------------------ */
   26: /*
   27:  * Exception/Interrupt Vector Table
   28:  * 
   29:  */
   30: 
   31: void (* const vector_tbl[])()  __attribute__((section(".vector"))) = {
   32:         (void(*)()) (INITIAL_SP),              /* 0: Top of Stack */
   33:         Reset_Handler,                         /* 1: Reset Handler */
   34:         NMI_Handler,                           /* 2: NMI Handler */
   35:         HardFault_Handler,                     /* 3: Hard Fault Handler */
   36:         MemManage_Handler,                     /* 4: MPU Fault Handler */
   37:         BusFault_Handler,                      /* 5: Bus Fault Handler */
   38:         UsageFault_Handler,                    /* 6: Usage Fault Handler */
   39:         0,                                     /* 7: Reserved */
   40:         0,                                     /* 8: Reserved */
   41:         0,                                     /* 9: Reserved */
   42:         0,                                     /* 10: Reserved */
   43:         Svcall_Handler,                                /* 11: Svcall */
   44:         DebugMon_Handler,                      /* 12: Debug Monitor Handler */
   45:         0,                                     /* 13: Reserved */
   46:         knl_dispatch_entry,                    /* 14: Pend SV */
   47:         knl_systim_inthdr,                     /* 15: Systick */
   48: 
   49:         /* External Interrupts */
   50:         Default_Handler,                       /* IRQ 0 */
   51:         Default_Handler,                       /* IRQ 1 */
   52:         Default_Handler,                       /* IRQ 2 */
   53:         Default_Handler,                       /* IRQ 3 */
   54:         Default_Handler,                       /* IRQ 4 */
   55:         Default_Handler,                       /* IRQ 5 */
   56:         Default_Handler,                       /* IRQ 6 */
   57:         Default_Handler,                       /* IRQ 7 */
   58:         Default_Handler,                       /* IRQ 8 */
   59:         Default_Handler,                       /* IRQ 9 */
   60:         Default_Handler,                       /* IRQ 10 */
   61:         Default_Handler,                       /* IRQ 11 */
   62:         Default_Handler,                       /* IRQ 12 */
   63:         Default_Handler,                       /* IRQ 13 */
   64:         Default_Handler,                       /* IRQ 14 */
   65:         Default_Handler,                       /* IRQ 15 */
   66:         Default_Handler,                       /* IRQ 16 */
   67:         Default_Handler,                       /* IRQ 17 */
   68:         Default_Handler,                       /* IRQ 18 */
   69:         Default_Handler,                       /* IRQ 19 */
   70:         Default_Handler,                       /* IRQ 20 */
   71:         Default_Handler,                       /* IRQ 21 */
   72:         Default_Handler,                       /* IRQ 22 */
   73:         Default_Handler,                       /* IRQ 23 */
   74:         Default_Handler,                       /* IRQ 24 */
   75:         Default_Handler,                       /* IRQ 25 */
   76:         Default_Handler,                       /* IRQ 26 */
   77:         Default_Handler,                       /* IRQ 27 */
   78:         Default_Handler,                       /* IRQ 28 */
   79:         Default_Handler,                       /* IRQ 29 */
   80:         Default_Handler,                       /* IRQ 30 */
   81:         Default_Handler,                       /* IRQ 31 */
   82:         Default_Handler,                       /* IRQ 32 */
   83:         Default_Handler,                       /* IRQ 33 */
   84:         Default_Handler,                       /* IRQ 34 */
   85:         Default_Handler,                       /* IRQ 35 */
   86:         Default_Handler,                       /* IRQ 36 */
   87:         Default_Handler,                       /* IRQ 37 */
   88:         Default_Handler,                       /* IRQ 38 */
   89:         Default_Handler,                       /* IRQ 39 */
   90:         Default_Handler,                       /* IRQ 40 */
   91:         Default_Handler,                       /* IRQ 41 */
   92:         Default_Handler,                       /* IRQ 42 */
   93:         Default_Handler,                       /* IRQ 43 */
   94:         Default_Handler,                       /* IRQ 44 */
   95:         Default_Handler,                       /* IRQ 45 */
   96:         Default_Handler,                       /* IRQ 46 */
   97:         Default_Handler,                       /* IRQ 47 */
   98:         Default_Handler,                       /* IRQ 48 */
   99:         Default_Handler,                       /* IRQ 49 */
  100:         Default_Handler,                       /* IRQ 50 */
  101:         Default_Handler,                       /* IRQ 51 */
  102:         Default_Handler,                       /* IRQ 52 */
  103:         Default_Handler,                       /* IRQ 53 */
  104:         Default_Handler,                       /* IRQ 54 */
  105:         Default_Handler,                       /* IRQ 55 */
  106:         Default_Handler,                       /* IRQ 56 */
  107:         Default_Handler,                       /* IRQ 57 */
  108:         Default_Handler,                       /* IRQ 58 */
  109:         Default_Handler,                       /* IRQ 59 */
  110:         Default_Handler,                       /* IRQ 60 */
  111:         Default_Handler,                       /* IRQ 61 */
  112:         Default_Handler,                       /* IRQ 62 */
  113:         Default_Handler,                       /* IRQ 63 */
  114:         Default_Handler,                       /* IRQ 64 */
  115:         Default_Handler,                       /* IRQ 65 */
  116:         Default_Handler,                       /* IRQ 66 */
  117:         Default_Handler,                       /* IRQ 67 */
  118:         Default_Handler,                       /* IRQ 68 */
  119:         Default_Handler,                       /* IRQ 69 */
  120:         Default_Handler,                       /* IRQ 70 */
  121:         Default_Handler,                       /* IRQ 71 */
  122:         Default_Handler,                       /* IRQ 72 */
  123:         Default_Handler,                       /* IRQ 73 */
  124:         Default_Handler,                       /* IRQ 74 */
  125:         Default_Handler,                       /* IRQ 75 */
  126:         Default_Handler,                       /* IRQ 76 */
  127:         Default_Handler,                       /* IRQ 77 */
  128:         Default_Handler,                       /* IRQ 78 */
  129:         Default_Handler,                       /* IRQ 79 */
  130:         Default_Handler,                       /* IRQ 80 */
  131:         Default_Handler,                       /* IRQ 81 */
  132: };
  133: 
  134: #endif /* CPU_STM32L4 */