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.

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

}<br />

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

* Function Name : GPIO_Configuration<br />

* Description : Configures <strong>the</strong> different GPIO ports.<br />

* Input : None<br />

* Output : None<br />

* Return : None<br />

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

void GPIO_Configuration(void) {<br />

GPIO_InitTypeDef GPIO_InitStructure;<br />

/* Configure LEDR */<br />

GPIO_StructInit(&GPIO_InitStructure);<br />

GPIO_InitStructure.GPIO_Direction = GPIO_PinOutput;<br />

GPIO_InitStructure.GPIO_Pin = LEDR_GPIOx_Pin;<br />

GPIO_InitStructure.GPIO_Type = GPIO_Type_PushPull;<br />

GPIO_InitStructure.GPIO_Alternate = GPIO_OutputAlt1;<br />

GPIO_Init(LEDR_GPIO , &GPIO_InitStructure);<br />

/* Configure MY_GPIO */<br />

GPIO_StructInit(&GPIO_InitStructure);<br />

GPIO_InitStructure.GPIO_Direction = GPIO_PinOutput;<br />

GPIO_InitStructure.GPIO_Pin = MY_GPIOx_Pin;<br />

GPIO_InitStructure.GPIO_Type = GPIO_Type_PushPull;<br />

GPIO_InitStructure.GPIO_Alternate = GPIO_OutputAlt1;<br />

GPIO_Init(MY_GPIO, &GPIO_InitStructure);<br />

}<br />

/******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE****/<br />

————–Camera Init.h.——————<br />

/*<br />

* Camera_Init.h<br />

*<br />

* Created on: Jan 19, 2011<br />

* Author: Administrator<br />

*/<br />

#ifndef CAMERA_INIT_H_<br />

#define CAMERA_INIT_H_<br />

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

#include "91x_lib.h"<br />

#include "CamInt_x24.h"<br />

/* Exported types ------------------------------------------------------------*/

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

Saved successfully!

Ooh no, something went wrong!