//  Copyright (C) 2016, mituhiromatuura all right reserved.

//adc
#define ADC_CDS_CH		0
#define ADC_CDS_PORT	15

//bt
#define BT_CAMXK_CH		6
#define BT_CAMXK_PORT	0
#define BT_CAMXK_FREQ	(12000000*2)

#define BT_LCDLED_CH	4
#define BT_LCDLED_PORT	2
#define BT_LCDLED_FREQ	(100)

#define PCLK			(160000000)

//button
#define BUTTON_A_PORT		0x04
#define BUTTON_A_BIT		0x02
#define BUTTON_B_PORT		0x04
#define BUTTON_B_BIT		0x00
#define BUTTON_C_PORT		0x04
#define BUTTON_C_BIT		0x01
#define BUTTON_HB_PORT		0x02
#define BUTTON_HB_BIT		0x06
#define BUTTON_SDCD_PORT	0x06
#define BUTTON_SDCD_BIT		0x05

//dma
#define CAMERA_PORT		0x03
#define DMA_CH			0

#define EXTI_CH		3
#define EXTI_PORT	1

//exti
#define EXINT_CAMVS_CH		15
#define EXINT_CAMVS_PORT	1

//i2c
#define I2C_SCCB_CH			1
#define I2C_SCCB_PORT		0
#define I2C_GSENSOR_CH		0
#define I2C_GSENSOR_PORT	1

//lcd
#define LCD_RS_BIT		21
#define LCD_RESET_PORT	0x00
#define LCD_RESET_BIT	0x0c
