pca10003.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* Copyright (c) 2014 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. */
  12. #ifndef PCA10003_H
  13. #define PCA10003_H
  14. #define LED_START 18
  15. #define LED_0 18
  16. #define LED_1 19
  17. #define LED_STOP 19
  18. #define BSP_LED_0 LED_0
  19. #define BSP_LED_1 LED_1
  20. #define BUTTON_START 16
  21. #define BUTTON_0 16
  22. #define BUTTON_1 17
  23. #define BUTTON_STOP 17
  24. #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
  25. #define BSP_BUTTON_0 BUTTON_0
  26. #define BSP_BUTTON_1 BUTTON_1
  27. #define BUTTONS_NUMBER 2
  28. #define LEDS_NUMBER 2
  29. #define BUTTONS_MASK 0x00030000
  30. #define LEDS_MASK 0x000C0000
  31. #define LEDS_INV_MASK 0x00000000
  32. #define LEDS_LIST { LED_0, LED_1 }
  33. #define BSP_BUTTON_0_MASK (1<<BUTTON_0)
  34. #define BSP_BUTTON_1_MASK (1<<BUTTON_1)
  35. #define BUTTONS_LIST { BUTTON_0, BUTTON_1 }
  36. #define BSP_LED_0_MASK (1<<LED_0)
  37. #define BSP_LED_1_MASK (1<<LED_1)
  38. #define RX_PIN_NUMBER 11
  39. #define TX_PIN_NUMBER 9
  40. #define CTS_PIN_NUMBER 10
  41. #define RTS_PIN_NUMBER 8
  42. #define HWFC true
  43. // Low frequency clock source to be used by the SoftDevice
  44. #ifdef S210
  45. #define NRF_CLOCK_LFCLKSRC NRF_CLOCK_LFCLKSRC_XTAL_20_PPM
  46. #else
  47. #define NRF_CLOCK_LFCLKSRC {.source = NRF_CLOCK_LF_SRC_XTAL, \
  48. .rc_ctiv = 0, \
  49. .rc_temp_ctiv = 0, \
  50. .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}
  51. #endif
  52. #endif