wt51822.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 WT51822_H
  13. #define WT51822_H
  14. #define LED_START 3
  15. #define LED_1 3
  16. #define LED_2 4
  17. #define LED_3 5
  18. #define LED_STOP 5
  19. #define BSP_LED_0 LED_1
  20. #define BSP_LED_1 LED_2
  21. #define BSP_LED_2 LED_3
  22. #define BUTTON_START 0
  23. #define SW_1 0
  24. #define SW_2 1
  25. #define SW_3 2
  26. #define BUTTON_STOP 2
  27. #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
  28. #define BSP_BUTTON_0 SW_1
  29. #define BSP_BUTTON_1 SW_2
  30. #define BSP_BUTTON_2 SW_3
  31. #define BUTTONS_NUMBER 3
  32. #define LEDS_NUMBER 3
  33. #define BUTTONS_MASK 0x00000007
  34. #define BSP_BUTTON_0_MASK (1<<BSP_BUTTON_0)
  35. #define BSP_BUTTON_1_MASK (1<<BSP_BUTTON_1)
  36. #define BSP_BUTTON_2_MASK (1<<BSP_BUTTON_2)
  37. #define BUTTONS_LIST { SW_1, SW_2, SW_3 }
  38. #define LEDS_LIST { LED_1, LED_2, LED_3 }
  39. #define BSP_LED_0_MASK (1<<LED_1)
  40. #define BSP_LED_1_MASK (1<<LED_2)
  41. #define BSP_LED_2_MASK (1<<LED_3)
  42. #define LEDS_MASK (BSP_LED_0_MASK | BSP_LED_1_MASK | BSP_LED_2_MASK)
  43. /* all LEDs are lit when GPIO is low */
  44. #define LEDS_INV_MASK LEDS_MASK
  45. #define RX_PIN_NUMBER 13
  46. #define TX_PIN_NUMBER 12
  47. #define CTS_PIN_NUMBER 14
  48. #define RTS_PIN_NUMBER 15
  49. #define HWFC true
  50. #define SER_CON_RX_PIN 13
  51. #define SER_CON_TX_PIN 12
  52. #define SER_CON_CTS_PIN 14
  53. #define SER_CON_RTS_PIN 15
  54. #endif