board_halley2_fir.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #ifndef BOARD_HALLEY2_IDELAN_H__
  2. #define BOARD_HALLEY2_IDELAN_H__
  3. #define AUDIO_SHUTDOWN_PORT GPIO_PORT_B
  4. #define AUDIO_SHUTDOWN_PIN GPIO_Pin_7
  5. #define AUDIO_SHUTDOWN_MUTE 1
  6. /*
  7. * IO LCD
  8. */
  9. #define LCD_PWEN_PORT GPIO_PORT_B
  10. #define LCD_PWEN_PIN GPIO_Pin_19 //原理图不对,实际连接到LCD_TE
  11. #define LCD_RST_PORT GPIO_PORT_B
  12. #define LCD_RST_PIN GPIO_Pin_14
  13. #define LCD_BL_PORT GPIO_PORT_B
  14. #define LCD_BL_PIN GPIO_Pin_9
  15. /*
  16. * IO Touch
  17. */
  18. #define TP_INT_PORT GPIO_PORT_B
  19. #define TP_INT_PIN GPIO_Pin_11
  20. #define TP_RST_PORT GPIO_PORT_B
  21. #define TP_RST_PIN GPIO_Pin_12
  22. #define TP_PWEN_PORT GPIO_PORT_B
  23. #define TP_PWEN_PIN GPIO_Pin_15
  24. /*
  25. * IO KeyBoard:
  26. */
  27. #define KEY_WIFI_PORT GPIO_PORT_A
  28. #define KEY_WIFI_PIN GPIO_Pin_20
  29. #define KEY_BT_PORT GPIO_PORT_A
  30. #define KEY_BT_PIN GPIO_Pin_21
  31. #define KEY_VOLD_PORT GPIO_PORT_A
  32. #define KEY_VOLD_PIN GPIO_Pin_22
  33. #define KEY_VOLU_PORT GPIO_PORT_B
  34. #define KEY_VOLU_PIN GPIO_Pin_28
  35. #define KEY_WKUP_PORT GPIO_PORT_B
  36. #define KEY_WKUP_PIN GPIO_Pin_31
  37. /*
  38. * IO Camera
  39. */
  40. #define CIM_PWDN_PORT GPIO_PORT_A
  41. #define CIM_PWDN_PIN GPIO_Pin_25
  42. #define CIM_RST_PORT GPIO_PORT_A
  43. #define CIM_RST_PIN GPIO_Pin_24
  44. #define CIM_PWEN_PORT GPIO_PORT_A
  45. #define CIM_PWEN_PIN GPIO_Pin_23
  46. /*
  47. * IO LED Config
  48. */
  49. #define LED_BT_PORT GPIO_PORT_B
  50. #define LED_BT_PIN GPIO_Pin_6
  51. #define LED_WIFI_PORT GPIO_PORT_B
  52. #define LED_WIFI_PIN GPIO_Pin_24
  53. #define LED_ZB_PORT GPIO_PORT_C
  54. #define LED_ZB_PIN GPIO_Pin_27
  55. /*
  56. * Others
  57. */
  58. #define IO_IRQ_FG_PORT GPIO_PORT_B
  59. #define IO_IRQ_FG_PIN GPIO_Pin_13
  60. #endif