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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

#include "utils.h"<br />

#include "math.h"<br />

#include "usb_lib.h"<br />

#include "usb_conf.h"<br />

#include "usb_prop.h"<br />

#include "usb_pwr.h"<br />

#include "usb_config.h"<br />

#include "definitionsLib.h"<br />

#include "Misc.h"<br />

#include "Camera_Init.h"<br />

#include "Motor_Init.h"<br />

#include "blobsearch.h"<br />

/* Private typedef -----------------------------------------------------------*/<br />

/* Private define ------------------------------------------------------------*/<br />

/* Private macro -------------------------------------------------------------*/<br />

/* Private variables ---------------------------------------------------------*/<br />

extern u8 control_hit;<br />

/* Private function prototypes -----------------------------------------------*/<br />

void SCU_Configuration(void);<br />

void USB_Configuration(void);<br />

void GPIO_Configuration(void);<br />

/* Private functions ---------------------------------------------------------*/<br />

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

* Function Name : main<br />

* Description : Main program<br />

* Input : None<br />

* Output : None<br />

* Return : None<br />

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

int main(void) {<br />

#ifdef DEBUG<br />

debug();<br />

#endif<br />

/* Configure <strong>the</strong> system clocks */<br />

SCU_Configuration();<br />

/* Configure <strong>the</strong> GPIO ports */<br />

GPIO_Configuration();<br />

/* Configure x24 Camera */<br />

x24_HwConfig (8000000);<br />

x24_SendPatches ();

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

Saved successfully!

Ooh no, something went wrong!