board_halley2_fir.h 1.9 KB
Newer Older
还_没_想_好's avatar
还_没_想_好 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
#ifndef BOARD_HALLEY2_IDELAN_H__
#define BOARD_HALLEY2_IDELAN_H__

#define AUDIO_SHUTDOWN_PORT     GPIO_PORT_B
#define AUDIO_SHUTDOWN_PIN      GPIO_Pin_7
#define AUDIO_SHUTDOWN_MUTE     1

/*
 * IO LCD
 */
#define LCD_PWEN_PORT           GPIO_PORT_B
#define LCD_PWEN_PIN            GPIO_Pin_19 //原理图不对,实际连接到LCD_TE

#define LCD_RST_PORT            GPIO_PORT_B
#define LCD_RST_PIN             GPIO_Pin_14

#define LCD_BL_PORT             GPIO_PORT_B
#define LCD_BL_PIN              GPIO_Pin_9

/*
 * IO Touch
 */
#define TP_INT_PORT             GPIO_PORT_B
#define TP_INT_PIN              GPIO_Pin_11

#define TP_RST_PORT             GPIO_PORT_B
#define TP_RST_PIN              GPIO_Pin_12

#define TP_PWEN_PORT            GPIO_PORT_B
#define TP_PWEN_PIN             GPIO_Pin_15


/*
 * IO KeyBoard:
 */
#define KEY_WIFI_PORT           GPIO_PORT_A
#define KEY_WIFI_PIN            GPIO_Pin_20

#define KEY_BT_PORT             GPIO_PORT_A
#define KEY_BT_PIN              GPIO_Pin_21

#define KEY_VOLD_PORT           GPIO_PORT_A
#define KEY_VOLD_PIN            GPIO_Pin_22

#define KEY_VOLU_PORT           GPIO_PORT_B
#define KEY_VOLU_PIN            GPIO_Pin_28

#define KEY_WKUP_PORT           GPIO_PORT_B
#define KEY_WKUP_PIN            GPIO_Pin_31

/*
 * IO Camera
 */
#define CIM_PWDN_PORT           GPIO_PORT_A
#define CIM_PWDN_PIN            GPIO_Pin_25
#define CIM_RST_PORT            GPIO_PORT_A
#define CIM_RST_PIN             GPIO_Pin_24
#define CIM_PWEN_PORT           GPIO_PORT_A
#define CIM_PWEN_PIN            GPIO_Pin_23
/*
 * IO LED Config
 */
#define LED_BT_PORT             GPIO_PORT_B
#define LED_BT_PIN              GPIO_Pin_6

#define LED_WIFI_PORT           GPIO_PORT_B
#define LED_WIFI_PIN            GPIO_Pin_24

#define LED_ZB_PORT             GPIO_PORT_C
#define LED_ZB_PIN              GPIO_Pin_27

/*
 * Others
 */

#define IO_IRQ_FG_PORT          GPIO_PORT_B
#define IO_IRQ_FG_PIN           GPIO_Pin_13


#endif