rt-thread/bsp/x1000/drivers/board/halley2_fir/board_halley2_fir.h

81 lines
1.9 KiB
C
Raw Normal View History

2017-11-11 13:51:56 +08:00
#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 //ԭ<><D4AD>ͼ<EFBFBD><CDBC><EFBFBD>ԣ<EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD><EFBFBD>ӵ<EFBFBD>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