nrf52805_peripherals.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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 _NRF52805_PERIPHERALS_H
  32. #define _NRF52805_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. #define POWER_FEATURE_RAM_REGISTERS_PRESENT
  40. #define POWER_FEATURE_RAM_REGISTERS_COUNT 3
  41. /* Non-Volatile Memory Controller */
  42. #define NVMC_PRESENT
  43. #define NVMC_COUNT 1
  44. /* Systick timer */
  45. #define SYSTICK_PRESENT
  46. #define SYSTICK_COUNT 1
  47. /* Software Interrupts */
  48. #define SWI_PRESENT
  49. #define SWI_COUNT 6
  50. /* GPIO */
  51. #define GPIO_PRESENT
  52. #define GPIO_COUNT 1
  53. #define P0_PIN_NUM 32
  54. #define P0_FEATURE_PINS_PRESENT 0xFFFFFFFFUL
  55. /* MPU and BPROT */
  56. #define BPROT_PRESENT
  57. #define BPROT_REGIONS_SIZE 4096
  58. #define BPROT_REGIONS_NUM 48
  59. /* Radio */
  60. #define RADIO_PRESENT
  61. #define RADIO_COUNT 1
  62. #define RADIO_EASYDMA_MAXCNT_SIZE 8
  63. #define RADIO_TXPOWER_TXPOWER_Max RADIO_TXPOWER_TXPOWER_Pos4dBm
  64. /* Accelerated Address Resolver */
  65. #define AAR_PRESENT
  66. #define AAR_COUNT 1
  67. #define AAR_MAX_IRK_NUM 16
  68. /* AES Electronic CodeBook mode encryption */
  69. #define ECB_PRESENT
  70. #define ECB_COUNT 1
  71. /* AES CCM mode encryption */
  72. #define CCM_PRESENT
  73. #define CCM_COUNT 1
  74. /* Peripheral to Peripheral Interconnect */
  75. #define PPI_PRESENT
  76. #define PPI_COUNT 1
  77. #define PPI_CH_NUM 10
  78. #define PPI_FIXED_CH_NUM 12
  79. #define PPI_GROUP_NUM 6
  80. #define PPI_FEATURE_FORKS_PRESENT
  81. /* Event Generator Unit */
  82. #define EGU_PRESENT
  83. #define EGU_COUNT 2
  84. #define EGU0_CH_NUM 16
  85. #define EGU1_CH_NUM 16
  86. /* Timer/Counter */
  87. #define TIMER_PRESENT
  88. #define TIMER_COUNT 3
  89. #define TIMER0_MAX_SIZE 32
  90. #define TIMER1_MAX_SIZE 32
  91. #define TIMER2_MAX_SIZE 32
  92. #define TIMER0_CC_NUM 4
  93. #define TIMER1_CC_NUM 4
  94. #define TIMER2_CC_NUM 4
  95. /* Real Time Counter */
  96. #define RTC_PRESENT
  97. #define RTC_COUNT 2
  98. #define RTC0_CC_NUM 3
  99. #define RTC1_CC_NUM 4
  100. /* RNG */
  101. #define RNG_PRESENT
  102. #define RNG_COUNT 1
  103. /* Watchdog Timer */
  104. #define WDT_PRESENT
  105. #define WDT_COUNT 1
  106. /* Temperature Sensor */
  107. #define TEMP_PRESENT
  108. #define TEMP_COUNT 1
  109. /* Serial Peripheral Interface Master */
  110. #define SPI_PRESENT
  111. #define SPI_COUNT 1
  112. /* Serial Peripheral Interface Master with DMA */
  113. #define SPIM_PRESENT
  114. #define SPIM_COUNT 1
  115. #define SPIM0_MAX_DATARATE 8
  116. #define SPIM1_MAX_DATARATE 8
  117. #define SPIM0_FEATURE_HARDWARE_CSN_PRESENT 0
  118. #define SPIM1_FEATURE_HARDWARE_CSN_PRESENT 0
  119. #define SPIM0_FEATURE_DCX_PRESENT 0
  120. #define SPIM1_FEATURE_DCX_PRESENT 0
  121. #define SPIM0_FEATURE_RXDELAY_PRESENT 0
  122. #define SPIM1_FEATURE_RXDELAY_PRESENT 0
  123. #define SPIM0_EASYDMA_MAXCNT_SIZE 14
  124. #define SPIM1_EASYDMA_MAXCNT_SIZE 14
  125. /* Serial Peripheral Interface Slave with DMA*/
  126. #define SPIS_PRESENT
  127. #define SPIS_COUNT 1
  128. #define SPIS0_EASYDMA_MAXCNT_SIZE 14
  129. #define SPIS1_EASYDMA_MAXCNT_SIZE 14
  130. /* Two Wire Interface Master */
  131. #define TWI_PRESENT
  132. #define TWI_COUNT 1
  133. /* Two Wire Interface Master with DMA */
  134. #define TWIM_PRESENT
  135. #define TWIM_COUNT 1
  136. #define TWIM0_EASYDMA_MAXCNT_SIZE 14
  137. /* Two Wire Interface Slave with DMA */
  138. #define TWIS_PRESENT
  139. #define TWIS_COUNT 1
  140. #define TWIS0_EASYDMA_MAXCNT_SIZE 14
  141. /* Universal Asynchronous Receiver-Transmitter */
  142. #define UART_PRESENT
  143. #define UART_COUNT 1
  144. /* Universal Asynchronous Receiver-Transmitter with DMA */
  145. #define UARTE_PRESENT
  146. #define UARTE_COUNT 1
  147. #define UARTE0_EASYDMA_MAXCNT_SIZE 14
  148. /* Quadrature Decoder */
  149. #define QDEC_PRESENT
  150. #define QDEC_COUNT 1
  151. /* Successive Approximation Analog to Digital Converter */
  152. #define SAADC_PRESENT
  153. #define SAADC_COUNT 1
  154. #define SAADC_EASYDMA_MAXCNT_SIZE 15
  155. #define SAADC_CH_NUM 8
  156. /* GPIO Tasks and Events */
  157. #define GPIOTE_PRESENT
  158. #define GPIOTE_COUNT 1
  159. #define GPIOTE_CH_NUM 8
  160. #define GPIOTE_FEATURE_SET_PRESENT
  161. #define GPIOTE_FEATURE_CLR_PRESENT
  162. #endif // _NRF52805_PERIPHERALS_H