//************************ MY DEFINITIONS *********************************

// Descriptor values									//used in usb_desc.c
//    Endpoint 1 descriptor

#define IN_wMaxPacketSize		0x40	
#define OUT_wMaxPacketSize		0x40

//    Report descriptor
#define IN_REPORT_COUNT			0x3f
#define OUT_REPORT_COUNT		0x3f

// Rx Tx Buffer  properties								//used in usb_endp.c, usb_prop.c
#define Rx_Buffer_Length		OUT_REPORT_COUNT +1		
#define Tx_Buffer_Length		IN_REPORT_COUNT +1

// Platform config

#define USB_dis_pin 			GPIO_Pin_10				
#define USB_dis_port			GPIOC 					
#define PORTB_DD 				GPIO_Pin_0 |GPIO_Pin_1 |GPIO_Pin_2 | GPIO_Pin_5 | GPIO_Pin_6 | GPIO_Pin_7 | GPIO_Pin_8 | GPIO_Pin_9 | GPIO_Pin_10 | GPIO_Pin_11 | GPIO_Pin_12 | GPIO_Pin_13 | GPIO_Pin_14 | GPIO_Pin_15

// Pin definitions
#define CS_DA1_pin				GPIO_Pin_7
#define CS_DA1_port				GPIOD

#define CS_DA2_pin				GPIO_Pin_9
#define CS_DA2_port				GPIOG

#define D1_OE_pin				GPIO_Pin_6				// Digital 0-7 OutputEnable
#define D1_OE_port				GPIOA

#define D2_OE_pin				GPIO_Pin_4				// Digital 8-15 OutputEnable
#define D2_OE_port				GPIOA

#define D1_DIR_pin				GPIO_Pin_7				// Digital 0-7 Direction
#define D1_DIR_port				GPIOA

#define D2_DIR_pin				GPIO_Pin_5				// Digital 8-15 Direction
#define D2_DIR_port				GPIOA

#define OE1_pin					GPIO_Pin_8				// Analog 1 OutputEnable
#define OE1_port				GPIOA

#define OE2_pin					GPIO_Pin_9				// Analog 2 OutputEnable
#define OE2_port				GPIOA

#define D_VCCB_pin				GPIO_Pin_10				// Digital Output Voltage
#define D_VCCB_port				GPIOA

#define LED1_pin				GPIO_Pin_13				// LED1
#define LED1_port				GPIOG

#define LED2_pin				GPIO_Pin_14				// LED2
#define LED2_port				GPIOG

#define LED3_pin				GPIO_Pin_15				// LED3
#define LED3_port				GPIOG

#define Digital_data_port		GPIOB					// Digital Data port

