sdk_resources.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
  2. *
  3. * The information contained herein is property of Nordic Semiconductor ASA.
  4. * Terms and conditions of usage are described in detail in NORDIC
  5. * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
  6. *
  7. * Licensees are granted free, non-transferable use of the information. NO
  8. * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
  9. * the file.
  10. */
  11. /** @file
  12. * @brief Definition file for resource usage by SoftDevice, ESB and Gazell.
  13. */
  14. #ifndef APP_RESOURCES_H__
  15. #define APP_RESOURCES_H__
  16. #ifdef SOFTDEVICE_PRESENT
  17. #include "nrf_sd_def.h"
  18. #else
  19. #define SD_PPI_RESTRICTED 0uL /**< 1 if PPI peripheral is restricted, 0 otherwise. */
  20. #define SD_PPI_CHANNELS_USED 0uL /**< PPI channels utilized by SotfDevice (not available to th spplication). */
  21. #define SD_PPI_GROUPS_USED 0uL /**< PPI groups utilized by SotfDevice (not available to th spplication). */
  22. #define SD_TIMERS_USED 0uL /**< Timers used by SoftDevice. */
  23. #define SD_SWI_USED 0uL /**< Software interrupts used by SoftDevice. */
  24. #endif
  25. #ifdef GAZELL_PRESENT
  26. #include "nrf_gzll_resources.h"
  27. #else
  28. #define GZLL_PPI_CHANNELS_USED 0uL /**< PPI channels utilized by Gazell (not available to th spplication). */
  29. #define GZLL_TIMERS_USED 0uL /**< Timers used by Gazell. */
  30. #define GZLL_SWI_USED 0uL /**< Software interrupts used by Gazell */
  31. #endif
  32. #ifdef ESB_PRESENT
  33. #include "nrf_esb_resources.h"
  34. #else
  35. #define ESB_PPI_CHANNELS_USED 0uL /**< PPI channels utilized by ESB (not available to th spplication). */
  36. #define ESB_TIMERS_USED 0uL /**< Timers used by ESB. */
  37. #define ESB_SWI_USED 0uL /**< Software interrupts used by ESB */
  38. #endif
  39. #define NRF_PPI_CHANNELS_USED (SD_PPI_CHANNELS_USED | GZLL_PPI_CHANNELS_USED | ESB_PPI_CHANNELS_USED)
  40. #define NRF_PPI_GROUPS_USED (SD_PPI_GROUPS_USED)
  41. #define NRF_SWI_USED (SD_SWI_USED | GZLL_SWI_USED | ESB_SWI_USED)
  42. #define NRF_TIMERS_USED (SD_TIMERS_USED | GZLL_TIMERS_USED | ESB_TIMERS_USED)
  43. #endif // APP_RESOURCES_H__