/*************************************************************************
 *                                                                       *
 * Name: Motion_Detection header                                         *
 *                                                                       *
 * Description: The primary software module that detects motion in       *
 *              memory.  Reads and writes to the SDRAM according to      *
 *              internal addresses from FPGA.  It only requires one task *
 *              but the task is over O(n^2) in time                      *
 *                                                                       *
 * Notes: There are some slowness issues due to the number of accesses   *
 *        to the SDRAM.  Thats why the timer is there.                   *
 *                                                                       *
 * Created By: Rachita Bhatia                                            *
 *                                                                       *
 * Date: March 25, 2012                                                  *
 *                                                                       *
**************************************************************************/
#ifndef MAIN_H_
#define MAIN_H_

#define ROWS 320
#define COLUMNS 240
#define BOX_ROWS 10
#define BOX_COLUMNS 10
#define HORIZONTAL_BOXES 32
#define VERTICAL_BOXES 24

#define PIXEL_DIFFERENCE_THRESHOLD 3000 /* For single pixel = 16, double = 4096 (currently established at 3000) */
#define ERROR_PERCENTAGE_THRESHOLD 10 /* 10 = less issues after, 5 = more */

#define MAX_CHAR_VALUE 255

/* Function Prototypes */
void detectMotion();

#endif /*MAIN_H_*/
