pca10000.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* Copyright (c) 2012 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 PCA10000_H
  13. #define PCA10000_H
  14. // Definitions for PCA10000 v2.0.0 or higher
  15. #if 1
  16. #define LEDS_NUMBER 3
  17. // there is RGB LED on this board
  18. #define LED_RGB_RED 21
  19. #define LED_RGB_GREEN 22
  20. #define LED_RGB_BLUE 23
  21. #define LED_START LED_RGB_RED
  22. #define BSP_LED_0 LED_RGB_RED
  23. #define BSP_LED_1 LED_RGB_GREEN
  24. #define BSP_LED_2 LED_RGB_BLUE
  25. #define LED_STOP LED_RGB_BLUE
  26. #define BUTTONS_LIST {}
  27. #define LEDS_LIST { LED_RGB_RED, LED_RGB_GREEN, LED_RGB_BLUE }
  28. #define BSP_LED_0_MASK (1<<LED_RGB_RED)
  29. #define BSP_LED_1_MASK (1<<LED_RGB_GREEN)
  30. #define BSP_LED_2_MASK (1<<LED_RGB_BLUE)
  31. #define LEDS_MASK (BSP_LED_0_MASK | BSP_LED_1_MASK | BSP_LED_2_MASK)
  32. #define LEDS_INV_MASK LEDS_MASK
  33. // there are no buttons on this board
  34. #define BUTTONS_NUMBER 0
  35. #define BUTTONS_MASK 0x00000000
  36. // UART pins connected to J-Link
  37. #define RX_PIN_NUMBER 11
  38. #define TX_PIN_NUMBER 9
  39. #define CTS_PIN_NUMBER 10
  40. #define RTS_PIN_NUMBER 8
  41. #define HWFC true
  42. // Definitions for PCA10000 v1.0
  43. #else
  44. #define RX_PIN_NUMBER 3
  45. #define TX_PIN_NUMBER 1
  46. #define CTS_PIN_NUMBER 2
  47. #define RTS_PIN_NUMBER 0
  48. #define HWFC true
  49. #endif
  50. // Low frequency clock source to be used by the SoftDevice
  51. #define NRF_CLOCK_LFCLKSRC {.source = NRF_CLOCK_LF_SRC_XTAL, \
  52. .rc_ctiv = 0, \
  53. .rc_temp_ctiv = 0, \
  54. .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}
  55. #endif