Thread: Flags????
View Single Post
  #5   Spotlight this post!  
Unread 25-07-2005, 20:21
sciguy125 sciguy125 is offline
Electrical Engineer
AKA: Phil Baltar
FRC #1351
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Sunnyvale, CA
Posts: 519
sciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond repute
Send a message via AIM to sciguy125 Send a message via MSN to sciguy125 Send a message via Yahoo to sciguy125
Re: Flags????

The way it is implemented in the code, _USE_CMU_CAM is a compiler directive. It tells the compiler to conditionally compile certain sections of code. Specifically, it will compile the code that makes the camera work.

#ifdef _USE_CMU_CAM
...
some code
...
#endif

If _USE_CMU_CAM is defined, the compiler will compile all the code between the #ifdef and #endif. If you're using MPLAB, go to the compiler options and you can define/undefine it. (I don't have MPLAB in front of me, so I'm not sure exactly where it is, but I think it's Project > Settings) If you intend on using the camera, you must have it defined, if you aren't using the camera, you must NOT have it defined. If the code was compiled with the camera code enabled, it will complain about not being able to find the camera when you run it.
__________________

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GE/S/P a-- e y-- r-- s:++ d+ h! X+++
t++ C+ P+ L++ E W++ w M-- V? PS+ PE+
5- R-- tv+ b+ DI+++ D- G
------END GEEK CODE BLOCK------