Blame | Last modification | View Log | Download
/*Copyright (C) 2004 John OrlandoAVRcam: a small real-time image processing engine.This program is free software; you can redistribute it and/ormodify it under the terms of the GNU General PublicLicense as published by the Free Software Foundation; eitherversion 2 of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNUGeneral Public License for more details.You should have received a copy of the GNU General PublicLicense along with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USAFor more information on the AVRcam, please contact:john@jrobot.netor go to www.jrobot.net for more details regarding the system.*//***********************************************************Module Name: Main.cModule Date: 04/10/2004Module Auth: John OrlandoDescription: This module is responsible for providingthe entry point to the code through the "main" function.Revision History:Date Rel Ver. Notes4/10/2004 0.1 Module created6/30/2004 1.0 Initial release for Circuit Cellarcontest.***********************************************************//* Includes */#include <avr/io.h>#include <stdlib.h>#include <string.h>#include "UIMgr.h"#include "UartInterface.h"#include "I2CInterface.h"#include "CamInterface.h"#include "DebugInterface.h"#include "FrameMgr.h"#include "CommonDefs.h"#include "CamConfig.h"#include "Executive.h"#include "Utility.h"/* Local Structures and Typedefs *//* Extern Variables *//* Definitions *//***********************************************************Function Name: mainFunction Description: This function provides the entrypoint into AVRcam application.Inputs: noneOutputs: int***********************************************************/int main(void){/* initialize all of the interface modules */DebugInt_init();UartInt_init();I2CInt_init();CamInt_init();/* initialize the remaining modules that will processdata...interrupts need to be on for these */ENABLE_INTS();CamConfig_init();UIMgr_init();FrameMgr_init();/* provide a short delay for the camera to stabilize beforewe let the executive start up */Utility_delay(1000);/* the rest of the application will be under thecontrol of the Executive. */Exec_run();/* this should never be reached */return(0);}