nrf5340_network_peripherals.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. /*
  2. Copyright (c) 2010 - 2020, Nordic Semiconductor ASA
  3. All rights reserved.
  4. Redistribution and use in source and binary forms, with or without modification,
  5. are permitted provided that the following conditions are met:
  6. 1. Redistributions of source code must retain the above copyright notice, this
  7. list of conditions and the following disclaimer.
  8. 2. Redistributions in binary form, except as embedded into a Nordic
  9. Semiconductor ASA integrated circuit in a product or a software update for
  10. such product, must reproduce the above copyright notice, this list of
  11. conditions and the following disclaimer in the documentation and/or other
  12. materials provided with the distribution.
  13. 3. Neither the name of Nordic Semiconductor ASA nor the names of its
  14. contributors may be used to endorse or promote products derived from this
  15. software without specific prior written permission.
  16. 4. This software, with or without modification, must only be used with a
  17. Nordic Semiconductor ASA integrated circuit.
  18. 5. Any software provided in binary form under this license must not be reverse
  19. engineered, decompiled, modified and/or disassembled.
  20. THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
  21. OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  22. OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
  23. DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
  24. LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  25. CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  26. GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  27. HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  28. LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  29. OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. */
  31. #ifndef _NRF5340_NETWORK_PERIPHERALS_H
  32. #define _NRF5340_NETWORK_PERIPHERALS_H
  33. /* Clock Peripheral */
  34. #define CLOCK_PRESENT
  35. #define CLOCK_COUNT 1
  36. /* Power Peripheral */
  37. #define POWER_PRESENT
  38. #define POWER_COUNT 1
  39. /* Non-Volatile Memory Controller */
  40. #define NVMC_PRESENT
  41. #define NVMC_COUNT 1
  42. #define NVMC_FEATURE_CACHE_PRESENT
  43. /* Voltage request peripheral */
  44. #define VREQCTRL_PRESENT
  45. #define VREQCTRL_COUNT 1
  46. /* Volatile Memory Controller Peripheral */
  47. #define VMC_PRESENT
  48. #define VMC_COUNT 1
  49. #define VMC_FEATURE_RAM_REGISTERS_PRESENT
  50. #define VMC_FEATURE_RAM_REGISTERS_COUNT 4
  51. /* Systick timer */
  52. #define SYSTICK_PRESENT
  53. #define SYSTICK_COUNT 1
  54. /* Inter-Processor Communication */
  55. #define IPC_PRESENT
  56. #define IPC_COUNT 1
  57. #define IPC_CH_NUM 16
  58. #define IPC_CONF_NUM 16
  59. #define IPC_GPMEM_NUM 2
  60. /* GPIO */
  61. #define GPIO_PRESENT
  62. #define GPIO_COUNT 2
  63. #define P0_PIN_NUM 32
  64. #define P1_PIN_NUM 16
  65. #define P0_FEATURE_PINS_PRESENT 0xFFFFFFFFUL
  66. #define P1_FEATURE_PINS_PRESENT 0x0000FFFFUL
  67. /* ACL */
  68. #define ACL_PRESENT
  69. #define ACL_REGIONS_COUNT 8
  70. /* Radio */
  71. #define RADIO_PRESENT
  72. #define RADIO_COUNT 1
  73. #define RADIO_EASYDMA_MAXCNT_SIZE 9
  74. #define RADIO_FEATURE_IEEE_802_15_4_PRESENT
  75. #define RADIO_TXPOWER_TXPOWER_Max RADIO_TXPOWER_TXPOWER_0dBm
  76. /* Accelerated Address Resolver */
  77. #define AAR_PRESENT
  78. #define AAR_COUNT 1
  79. #define AAR_MAX_IRK_NUM 16
  80. /* AES Electronic CodeBook mode encryption */
  81. #define ECB_PRESENT
  82. #define ECB_COUNT 1
  83. /* AES CCM mode encryption */
  84. #define CCM_PRESENT
  85. #define CCM_COUNT 1
  86. /* Distributed Peripheral to Peripheral Interconnect */
  87. #define DPPI_PRESENT
  88. #define DPPI_COUNT 1
  89. #define DPPI_CH_NUM 16
  90. #define DPPI_GROUP_NUM 6
  91. /* Event Generator Unit */
  92. #define EGU_PRESENT
  93. #define EGU_COUNT 1
  94. #define EGU0_CH_NUM 16
  95. /* Timer/Counter */
  96. #define TIMER_PRESENT
  97. #define TIMER_COUNT 3
  98. #define TIMER0_MAX_SIZE 32
  99. #define TIMER1_MAX_SIZE 32
  100. #define TIMER2_MAX_SIZE 32
  101. #define TIMER0_CC_NUM 8
  102. #define TIMER1_CC_NUM 8
  103. #define TIMER2_CC_NUM 8
  104. /* Real Time Counter */
  105. #define RTC_PRESENT
  106. #define RTC_COUNT 2
  107. #define RTC0_CC_NUM 4
  108. #define RTC1_CC_NUM 4
  109. /* RNG */
  110. #define RNG_PRESENT
  111. #define RNG_COUNT 1
  112. /* Watchdog Timer */
  113. #define WDT_PRESENT
  114. #define WDT_COUNT 1
  115. /* Temperature Sensor */
  116. #define TEMP_PRESENT
  117. #define TEMP_COUNT 1
  118. /* Universal Asynchronous Receiver-Transmitter with DMA */
  119. #define UARTE_PRESENT
  120. #define UARTE_COUNT 1
  121. #define UARTE0_EASYDMA_MAXCNT_SIZE 16
  122. /* Serial Peripheral Interface Master with DMA */
  123. #define SPIM_PRESENT
  124. #define SPIM_COUNT 1
  125. #define SPIM0_MAX_DATARATE 8
  126. #define SPIM0_FEATURE_HARDWARE_CSN_PRESENT 0
  127. #define SPIM0_FEATURE_DCX_PRESENT 0
  128. #define SPIM0_FEATURE_RXDELAY_PRESENT 0
  129. #define SPIM0_EASYDMA_MAXCNT_SIZE 16
  130. /* Serial Peripheral Interface Slave with DMA*/
  131. #define SPIS_PRESENT
  132. #define SPIS_COUNT 1
  133. #define SPIS0_EASYDMA_MAXCNT_SIZE 16
  134. /* Two Wire Interface Master with DMA */
  135. #define TWIM_PRESENT
  136. #define TWIM_COUNT 1
  137. #define TWIM0_EASYDMA_MAXCNT_SIZE 16
  138. /* Two Wire Interface Slave with DMA */
  139. #define TWIS_PRESENT
  140. #define TWIS_COUNT 1
  141. #define TWIS0_EASYDMA_MAXCNT_SIZE 16
  142. /* GPIO Tasks and Events */
  143. #define GPIOTE_PRESENT
  144. #define GPIOTE_COUNT 1
  145. #define GPIOTE_CH_NUM 8
  146. #define GPIOTE_FEATURE_SET_PRESENT
  147. #define GPIOTE_FEATURE_CLR_PRESENT
  148. /* Software Interrupts */
  149. #define SWI_PRESENT
  150. #define SWI_COUNT 4
  151. /* Mutex*/
  152. #define MUTEX_PRESENT
  153. #define MUTEX_COUNT 1
  154. #endif // _NRF5340_NETWORK_PERIPHERALS_H