nrf52832_peripherals.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. /*
  2. Copyright (c) 2010 - 2017, 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 _NRF52832_PERIPHERALS_H
  32. #define _NRF52832_PERIPHERALS_H
  33. /* Floating Point Unit */
  34. #define FPU_PRESENT
  35. #define FPU_COUNT 1
  36. /* Systick timer */
  37. #define SYSTICK_PRESENT
  38. #define SYSTICK_COUNT 1
  39. /* Software Interrupts */
  40. #define SWI_PRESENT
  41. #define SWI_COUNT 6
  42. /* Memory Watch Unit */
  43. #define MWU_PRESENT
  44. #define MWU_COUNT 1
  45. /* GPIO */
  46. #define GPIO_PRESENT
  47. #define GPIO_COUNT 1
  48. #define P0_PIN_NUM 32
  49. /* MPU and BPROT */
  50. #define BPROT_PRESENT
  51. #define BPROT_REGIONS_SIZE 4096
  52. #define BPROT_REGIONS_NUM 128
  53. /* Radio */
  54. #define RADIO_PRESENT
  55. #define RADIO_COUNT 1
  56. /* Accelerated Address Resolver */
  57. #define AAR_PRESENT
  58. #define AAR_COUNT 1
  59. #define AAR_MAX_IRK_NUM 16
  60. /* AES Electronic CodeBook mode encryption */
  61. #define ECB_PRESENT
  62. #define ECB_COUNT 1
  63. /* AES CCM mode encryption */
  64. #define CCM_PRESENT
  65. #define CCM_COUNT 1
  66. /* NFC Tag */
  67. #define NFCT_PRESENT
  68. #define NFCT_COUNT 1
  69. /* Peripheral to Peripheral Interconnect */
  70. #define PPI_PRESENT
  71. #define PPI_COUNT 1
  72. #define PPI_CH_NUM 20
  73. #define PPI_FIXED_CH_NUM 12
  74. #define PPI_GROUP_NUM 6
  75. #define PPI_FEATURE_FORKS_PRESENT
  76. /* Event Generator Unit */
  77. #define EGU_PRESENT
  78. #define EGU_COUNT 6
  79. #define EGU0_CH_NUM 16
  80. #define EGU1_CH_NUM 16
  81. #define EGU2_CH_NUM 16
  82. #define EGU3_CH_NUM 16
  83. #define EGU4_CH_NUM 16
  84. #define EGU5_CH_NUM 16
  85. /* Timer/Counter */
  86. #define TIMER_PRESENT
  87. #define TIMER_COUNT 5
  88. #define TIMER0_MAX_SIZE 32
  89. #define TIMER1_MAX_SIZE 32
  90. #define TIMER2_MAX_SIZE 32
  91. #define TIMER3_MAX_SIZE 32
  92. #define TIMER4_MAX_SIZE 32
  93. #define TIMER0_CC_NUM 4
  94. #define TIMER1_CC_NUM 4
  95. #define TIMER2_CC_NUM 4
  96. #define TIMER3_CC_NUM 6
  97. #define TIMER4_CC_NUM 6
  98. /* Real Time Counter */
  99. #define RTC_PRESENT
  100. #define RTC_COUNT 3
  101. #define RTC0_CC_NUM 3
  102. #define RTC1_CC_NUM 4
  103. #define RTC2_CC_NUM 4
  104. /* RNG */
  105. #define RNG_PRESENT
  106. #define RNG_COUNT 1
  107. /* Watchdog Timer */
  108. #define WDT_PRESENT
  109. #define WDT_COUNT 1
  110. /* Temperature Sensor */
  111. #define TEMP_PRESENT
  112. #define TEMP_COUNT 1
  113. /* Serial Peripheral Interface Master */
  114. #define SPI_PRESENT
  115. #define SPI_COUNT 3
  116. /* Serial Peripheral Interface Master with DMA */
  117. #define SPIM_PRESENT
  118. #define SPIM_COUNT 3
  119. /* Serial Peripheral Interface Slave with DMA*/
  120. #define SPIS_PRESENT
  121. #define SPIS_COUNT 3
  122. /* Two Wire Interface Master */
  123. #define TWI_PRESENT
  124. #define TWI_COUNT 2
  125. /* Two Wire Interface Master with DMA */
  126. #define TWIM_PRESENT
  127. #define TWIM_COUNT 2
  128. /* Two Wire Interface Slave with DMA */
  129. #define TWIS_PRESENT
  130. #define TWIS_COUNT 2
  131. /* Universal Asynchronous Receiver-Transmitter */
  132. #define UART_PRESENT
  133. #define UART_COUNT 1
  134. /* Universal Asynchronous Receiver-Transmitter with DMA */
  135. #define UARTE_PRESENT
  136. #define UARTE_COUNT 1
  137. /* Quadrature Decoder */
  138. #define QDEC_PRESENT
  139. #define QDEC_COUNT 1
  140. /* Successive Approximation Analog to Digital Converter */
  141. #define SAADC_PRESENT
  142. #define SAADC_COUNT 1
  143. /* GPIO Tasks and Events */
  144. #define GPIOTE_PRESENT
  145. #define GPIOTE_COUNT 1
  146. #define GPIOTE_CH_NUM 8
  147. #define GPIOTE_FEATURE_SET_PRESENT
  148. #define GPIOTE_FEATURE_CLR_PRESENT
  149. /* Low Power Comparator */
  150. #define LPCOMP_PRESENT
  151. #define LPCOMP_COUNT 1
  152. #define LPCOMP_REFSEL_RESOLUTION 16
  153. #define LPCOMP_FEATURE_HYST_PRESENT
  154. /* Comparator */
  155. #define COMP_PRESENT
  156. #define COMP_COUNT 1
  157. /* Pulse Width Modulator */
  158. #define PWM_PRESENT
  159. #define PWM_COUNT 3
  160. #define PWM0_CH_NUM 4
  161. #define PWM1_CH_NUM 4
  162. #define PWM2_CH_NUM 4
  163. /* Pulse Density Modulator */
  164. #define PDM_PRESENT
  165. #define PDM_COUNT 1
  166. /* Inter-IC Sound Interface */
  167. #define I2S_PRESENT
  168. #define I2S_COUNT 1
  169. #endif // _NRF52832_PERIPHERALS_H