14.11.2012 Views

Submitted version of the thesis - Airlab, the Artificial Intelligence ...

Submitted version of the thesis - Airlab, the Artificial Intelligence ...

Submitted version of the thesis - Airlab, the Artificial Intelligence ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

118 Appendix B. Documentation <strong>of</strong> <strong>the</strong> programming<br />

// | CAM_PCLK | P3.0 | Ext_Dma_In |<br />

// | CAM_VSYNC | P3.2 | EXT_INT_2 |<br />

// | CAM_CLK_IN | P3.7 | T1_PWM_OUT |<br />

// | CAM_BUS | P9.ALL | GPIO_IN |<br />

// | LED_R | P6.0 | GPIO_OUT |<br />

// | SW_1234 | P7.0123 | GPIO_IN |<br />

// | USB_Dp | P7.5 | GPIO_OUT |<br />

// *-------------*-------------*------------*<br />

//#define RVS_MB<br />

#define STL_MB<br />

//#define NO_DEBUG<br />

#define PresentationStringConst "STLCam\nV:0.41\nAST-Robotics\nSTMicroelectronics\n"<br />

#define TMsg_EOF 0xF0<br />

#define TMsg_BS 0xF1<br />

#define TMsg_BS_EOF 0xF2<br />

#define TMsg_MaxLen 128<br />

#define DEV_ADDR 0x32<br />

#define USB_Dp_PullUp_GPIO GPIO0<br />

#define USB_Dp_PullUp_GPIOx_Pin GPIO_Pin_1<br />

#define Cam724<br />

//IRQ Priority // 0 Highest, 15 Lowest<br />

//#define SERVO_TIM_ITPriority 0<br />

//#define x24_DMA_ITPriority 1<br />

//#define x24_VSYNC_INT_ITPriority 2<br />

//#define x24_SYNC_TIM_IPriority 3<br />

#define USB_Priority 5<br />

/*<br />

#define MOTOR1_Priority 9<br />

#define MOTOR2_Priority 10<br />

#define MOTOR3_Priority 11<br />

*/<br />

#ifdef STL_MB<br />

#define LEDR_GPIO GPIO3<br />

#define LEDR_GPIOx_Pin GPIO_Pin_7<br />

#endif<br />

#define DE_GPIO GPIO4<br />

#define DE_GPIOx_Pin GPIO_Pin_3<br />

#define x24_VSYNC_GPIO GPIO7<br />

#define x24_VSYNC_GPIOx_Pin GPIO_Pin_7<br />

#define x24_VSYNC_INT_WIU_Line ((u32)WIU_Line31)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!