nrfx_irqs_nrf52840.h 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. /**
  2. * Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
  3. *
  4. * All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without modification,
  7. * are permitted provided that the following conditions are met:
  8. *
  9. * 1. Redistributions of source code must retain the above copyright notice, this
  10. * list of conditions and the following disclaimer.
  11. *
  12. * 2. Redistributions in binary form, except as embedded into a Nordic
  13. * Semiconductor ASA integrated circuit in a product or a software update for
  14. * such product, must reproduce the above copyright notice, this list of
  15. * conditions and the following disclaimer in the documentation and/or other
  16. * materials provided with the distribution.
  17. *
  18. * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
  19. * contributors may be used to endorse or promote products derived from this
  20. * software without specific prior written permission.
  21. *
  22. * 4. This software, with or without modification, must only be used with a
  23. * Nordic Semiconductor ASA integrated circuit.
  24. *
  25. * 5. Any software provided in binary form under this license must not be reverse
  26. * engineered, decompiled, modified and/or disassembled.
  27. *
  28. * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
  29. * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  30. * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
  31. * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
  32. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  33. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  34. * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  35. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  36. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  37. * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  38. *
  39. */
  40. #ifndef NRFX_IRQS_NRF52840_H__
  41. #define NRFX_IRQS_NRF52840_H__
  42. #ifdef __cplusplus
  43. extern "C" {
  44. #endif
  45. // POWER_CLOCK_IRQn
  46. #define nrfx_power_clock_irq_handler POWER_CLOCK_IRQHandler
  47. // RADIO_IRQn
  48. // UARTE0_UART0_IRQn
  49. #if NRFX_CHECK(NRFX_PRS_ENABLED) && NRFX_CHECK(NRFX_PRS_BOX_4_ENABLED)
  50. #define nrfx_prs_box_4_irq_handler UARTE0_UART0_IRQHandler
  51. #else
  52. #define nrfx_uarte_0_irq_handler UARTE0_UART0_IRQHandler
  53. #define nrfx_uart_0_irq_handler UARTE0_UART0_IRQHandler
  54. #endif
  55. // SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn
  56. #if NRFX_CHECK(NRFX_PRS_ENABLED) && NRFX_CHECK(NRFX_PRS_BOX_0_ENABLED)
  57. #define nrfx_prs_box_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
  58. #else
  59. #define nrfx_spim_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
  60. #define nrfx_spis_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
  61. #define nrfx_twim_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
  62. #define nrfx_twis_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
  63. #define nrfx_spi_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
  64. #define nrfx_twi_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
  65. #endif
  66. // SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQn
  67. #if NRFX_CHECK(NRFX_PRS_ENABLED) && NRFX_CHECK(NRFX_PRS_BOX_1_ENABLED)
  68. #define nrfx_prs_box_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
  69. #else
  70. #define nrfx_spim_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
  71. #define nrfx_spis_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
  72. #define nrfx_twim_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
  73. #define nrfx_twis_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
  74. #define nrfx_spi_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
  75. #define nrfx_twi_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
  76. #endif
  77. // NFCT_IRQn
  78. // GPIOTE_IRQn
  79. #define nrfx_gpiote_irq_handler GPIOTE_IRQHandler
  80. // SAADC_IRQn
  81. #define nrfx_saadc_irq_handler SAADC_IRQHandler
  82. // TIMER0_IRQn
  83. #define nrfx_timer_0_irq_handler TIMER0_IRQHandler
  84. // TIMER1_IRQn
  85. #define nrfx_timer_1_irq_handler TIMER1_IRQHandler
  86. // TIMER2_IRQn
  87. #define nrfx_timer_2_irq_handler TIMER2_IRQHandler
  88. // RTC0_IRQn
  89. #define nrfx_rtc_0_irq_handler RTC0_IRQHandler
  90. // TEMP_IRQn
  91. // RNG_IRQn
  92. #define nrfx_rng_irq_handler RNG_IRQHandler
  93. // ECB_IRQn
  94. // CCM_AAR_IRQn
  95. // WDT_IRQn
  96. #define nrfx_wdt_irq_handler WDT_IRQHandler
  97. // RTC1_IRQn
  98. #define nrfx_rtc_1_irq_handler RTC1_IRQHandler
  99. // QDEC_IRQn
  100. #define nrfx_qdec_irq_handler QDEC_IRQHandler
  101. // COMP_LPCOMP_IRQn
  102. #if NRFX_CHECK(NRFX_PRS_ENABLED) && NRFX_CHECK(NRFX_PRS_BOX_3_ENABLED)
  103. #define nrfx_prs_box_3_irq_handler COMP_LPCOMP_IRQHandler
  104. #else
  105. #define nrfx_comp_irq_handler COMP_LPCOMP_IRQHandler
  106. #define nrfx_lpcomp_irq_handler COMP_LPCOMP_IRQHandler
  107. #endif
  108. // SWI0_EGU0_IRQn
  109. #define nrfx_swi_0_irq_handler SWI0_EGU0_IRQHandler
  110. // SWI1_EGU1_IRQn
  111. #define nrfx_swi_1_irq_handler SWI1_EGU1_IRQHandler
  112. // SWI2_EGU2_IRQn
  113. #define nrfx_swi_2_irq_handler SWI2_EGU2_IRQHandler
  114. // SWI3_EGU3_IRQn
  115. #define nrfx_swi_3_irq_handler SWI3_EGU3_IRQHandler
  116. // SWI4_EGU4_IRQn
  117. #define nrfx_swi_4_irq_handler SWI4_EGU4_IRQHandler
  118. // SWI5_EGU5_IRQn
  119. #define nrfx_swi_5_irq_handler SWI5_EGU5_IRQHandler
  120. // TIMER3_IRQn
  121. #define nrfx_timer_3_irq_handler TIMER3_IRQHandler
  122. // TIMER4_IRQn
  123. #define nrfx_timer_4_irq_handler TIMER4_IRQHandler
  124. // PWM0_IRQn
  125. #define nrfx_pwm_0_irq_handler PWM0_IRQHandler
  126. // PDM_IRQn
  127. #define nrfx_pdm_irq_handler PDM_IRQHandler
  128. // MWU_IRQn
  129. // PWM1_IRQn
  130. #define nrfx_pwm_1_irq_handler PWM1_IRQHandler
  131. // PWM2_IRQn
  132. #define nrfx_pwm_2_irq_handler PWM2_IRQHandler
  133. // SPIM2_SPIS2_SPI2_IRQn
  134. #if NRFX_CHECK(NRFX_PRS_ENABLED) && NRFX_CHECK(NRFX_PRS_BOX_2_ENABLED)
  135. #define nrfx_prs_box_2_irq_handler SPIM2_SPIS2_SPI2_IRQHandler
  136. #else
  137. #define nrfx_spim_2_irq_handler SPIM2_SPIS2_SPI2_IRQHandler
  138. #define nrfx_spis_2_irq_handler SPIM2_SPIS2_SPI2_IRQHandler
  139. #define nrfx_spi_2_irq_handler SPIM2_SPIS2_SPI2_IRQHandler
  140. #endif
  141. // RTC2_IRQn
  142. #define nrfx_rtc_2_irq_handler RTC2_IRQHandler
  143. // I2S_IRQn
  144. #define nrfx_i2s_irq_handler I2S_IRQHandler
  145. // FPU_IRQn
  146. // USBD_IRQn
  147. // UARTE1_IRQn
  148. #define nrfx_uarte_1_irq_handler UARTE1_IRQHandler
  149. // QSPI_IRQn
  150. #define nrfx_qspi_irq_handler QSPI_IRQHandler
  151. // CRYPTOCELL_IRQn
  152. // PWM3_IRQn
  153. #define nrfx_pwm_3_irq_handler PWM3_IRQHandler
  154. // SPIM3_IRQn
  155. #define nrfx_spim_3_irq_handler SPIM3_IRQHandler
  156. #ifdef __cplusplus
  157. }
  158. #endif
  159. #endif // NRFX_IRQS_NRF52840_H__