interrupt_names_teensy_3_6.py 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
  4. def interruptNames () :
  5. result = {}
  6. result ["NMI"] = 2
  7. result ["HardFault"] = 3
  8. result ["MemManage"] = 4
  9. result ["BusFault"] = 5
  10. result ["UsageFault"] = 6
  11. result ["SVC"] = 11
  12. result ["DebugMonitor"] = 12
  13. result ["PendSV"] = 14
  14. result ["SysTick"] = 15
  15. result ["DMA0_DMA16"] = 16
  16. result ["DMA1_DMA17"] = 17
  17. result ["DMA2_DMA18"] = 18
  18. result ["DMA3_DMA19"] = 19
  19. result ["DMA4_DMA20"] = 20
  20. result ["DMA5_DMA21"] = 21
  21. result ["DMA6_DMA22"] = 22
  22. result ["DMA7_DMA23"] = 23
  23. result ["DMA8_DMA24"] = 24
  24. result ["DMA9_DMA25"] = 25
  25. result ["DMA10_DMA26"] = 26
  26. result ["DMA11_DMA27"] = 27
  27. result ["DMA12_DMA28"] = 28
  28. result ["DMA13_DMA29"] = 29
  29. result ["DMA14_DMA30"] = 30
  30. result ["DMA15_DMA31"] = 31
  31. result ["DMA_Error"] = 32
  32. result ["MCM"] = 33
  33. result ["FTFE"] = 34
  34. result ["Read_Collision"] = 35
  35. result ["LVD_LVW"] = 36
  36. result ["LLWU"] = 37
  37. result ["WDOG_EWM"] = 38
  38. result ["RNG"] = 39
  39. result ["I2C0"] = 40
  40. result ["I2C1"] = 41
  41. result ["SPI0"] = 42
  42. result ["SPI1"] = 43
  43. result ["I2S0_Tx"] = 44
  44. result ["I2S0_Rx"] = 45
  45. result ["UART0_RX_TX"] = 47
  46. result ["UART0_ERR"] = 48
  47. result ["UART1_RX_TX"] = 49
  48. result ["UART1_ERR"] = 50
  49. result ["UART2_RX_TX"] = 51
  50. result ["UART2_ERR"] = 52
  51. result ["UART3_RX_TX"] = 53
  52. result ["UART3_ERR"] = 54
  53. result ["ADC0"] = 55
  54. result ["CMP0"] = 56
  55. result ["CMP1"] = 57
  56. result ["FTM0"] = 58
  57. result ["FTM1"] = 59
  58. result ["FTM2"] = 60
  59. result ["CMT"] = 61
  60. result ["RTC"] = 62
  61. result ["RTC_Seconds"] = 63
  62. result ["PIT0"] = 64
  63. result ["PIT1"] = 65
  64. result ["PIT2"] = 66
  65. result ["PIT3"] = 67
  66. result ["PDB0"] = 68
  67. result ["USB0"] = 69
  68. result ["USBDCD"] = 70
  69. result ["DAC0"] = 72
  70. result ["MCG"] = 73
  71. result ["LPTMR0"] = 74
  72. result ["PORTA"] = 75
  73. result ["PORTB"] = 76
  74. result ["PORTC"] = 77
  75. result ["PORTD"] = 78
  76. result ["PORTE"] = 79
  77. result ["SPI2"] = 81
  78. result ["UART4_RX_TX"] = 82
  79. result ["UART4_ERR"] = 83
  80. result ["CMP2"] = 86
  81. result ["FTM3"] = 87
  82. result ["DAC1"] = 88
  83. result ["ADC1"] = 89
  84. result ["I2C2"] = 90
  85. result ["CAN0_ORed_Message_buffer"] = 91
  86. result ["CAN0_Bus_Off"] = 92
  87. result ["CAN0_Error"] = 93
  88. result ["CAN0_Tx_Warning"] = 94
  89. result ["CAN0_Rx_Warning"] = 95
  90. result ["CAN0_Wake_Up"] = 96
  91. result ["SDHC"] = 97
  92. result ["ENET_1588_Timer"] = 98
  93. result ["ENET_Transmit"] = 99
  94. result ["ENET_Receive"] = 100
  95. result ["ENET_Error"] = 101
  96. result ["LPUART0"] = 102
  97. result ["TSI0"] = 103
  98. result ["TPM1"] = 104
  99. result ["TPM2"] = 105
  100. result ["USBHSDCD"] = 106
  101. result ["I2C3"] = 107
  102. result ["CMP3"] = 108
  103. result ["USBHS"] = 109
  104. result ["CAN1_ORed_Message_buffer"] = 110
  105. result ["CAN1_Bus_Off"] = 111
  106. result ["CAN1_Error"] = 112
  107. result ["CAN1_Tx_Warning"] = 113
  108. result ["CAN1_Rx_Warning"] = 114
  109. result ["CAN1_Wake_Up"] = 115
  110. result ["SWINT"] = 64
  111. return result
  112. #———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————