nrf51_peripherals.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /*
  2. Copyright (c) 2010 - 2018, 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 _NRF51_PERIPHERALS_H
  32. #define _NRF51_PERIPHERALS_H
  33. /* Power Peripheral */
  34. #define POWER_PRESENT
  35. #define POWER_COUNT 1
  36. #define POWER_FEATURE_RAMON_REGISTERS_PRESENT
  37. /* Software Interrupts */
  38. #define SWI_PRESENT
  39. #define SWI_COUNT 6
  40. /* GPIO */
  41. #define GPIO_PRESENT
  42. #define GPIO_COUNT 1
  43. #define P0_PIN_NUM 32
  44. /* MPU and BPROT */
  45. #define BPROT_PRESENT
  46. #define BPROT_REGIONS_SIZE 4096
  47. #define BPROT_REGIONS_NUM 64
  48. /* Radio */
  49. #define RADIO_PRESENT
  50. #define RADIO_COUNT 1
  51. /* Accelerated Address Resolver */
  52. #define AAR_PRESENT
  53. #define AAR_COUNT 1
  54. #define AAR_MAX_IRK_NUM 8
  55. /* AES Electronic CodeBook mode encryption */
  56. #define ECB_PRESENT
  57. #define ECB_COUNT 1
  58. /* AES CCM mode encryption */
  59. #define CCM_PRESENT
  60. #define CCM_COUNT 1
  61. /* Peripheral to Peripheral Interconnect */
  62. #define PPI_PRESENT
  63. #define PPI_COUNT 1
  64. #define PPI_CH_NUM 16
  65. #define PPI_FIXED_CH_NUM 12
  66. #define PPI_GROUP_NUM 4
  67. /* Timer/Counter */
  68. #define TIMER_PRESENT
  69. #define TIMER_COUNT 3
  70. #define TIMER0_MAX_SIZE 32
  71. #define TIMER1_MAX_SIZE 16
  72. #define TIMER2_MAX_SIZE 16
  73. #define TIMER0_CC_NUM 4
  74. #define TIMER1_CC_NUM 4
  75. #define TIMER2_CC_NUM 4
  76. /* Real Time Counter */
  77. #define RTC_PRESENT
  78. #define RTC_COUNT 2
  79. #define RTC0_CC_NUM 3
  80. #define RTC1_CC_NUM 4
  81. /* RNG */
  82. #define RNG_PRESENT
  83. #define RNG_COUNT 1
  84. /* Watchdog Timer */
  85. #define WDT_PRESENT
  86. #define WDT_COUNT 1
  87. /* Temperature Sensor */
  88. #define TEMP_PRESENT
  89. #define TEMP_COUNT 1
  90. /* Serial Peripheral Interface Master */
  91. #define SPI_PRESENT
  92. #define SPI_COUNT 2
  93. /* Serial Peripheral Interface Slave with DMA */
  94. #define SPIS_PRESENT
  95. #define SPIS_COUNT 1
  96. #define SPIS1_EASYDMA_MAXCNT_SIZE 8
  97. /* Two Wire Interface Master */
  98. #define TWI_PRESENT
  99. #define TWI_COUNT 2
  100. /* Universal Asynchronous Receiver-Transmitter */
  101. #define UART_PRESENT
  102. #define UART_COUNT 1
  103. /* Quadrature Decoder */
  104. #define QDEC_PRESENT
  105. #define QDEC_COUNT 1
  106. /* Analog to Digital Converter */
  107. #define ADC_PRESENT
  108. #define ADC_COUNT 1
  109. /* GPIO Tasks and Events */
  110. #define GPIOTE_PRESENT
  111. #define GPIOTE_COUNT 1
  112. #define GPIOTE_CH_NUM 4
  113. /* Low Power Comparator */
  114. #define LPCOMP_PRESENT
  115. #define LPCOMP_COUNT 1
  116. #define LPCOMP_REFSEL_RESOLUTION 8
  117. #endif // _NRF51_PERIPHERALS_H