Subversion Repositories svnkaklik

Rev

Rev 409 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 409 Rev 410
1
#ifndef EXECUTIVE_H
1
#ifndef EXECUTIVE_H
2
#define EXECUTIVE_H
2
#define EXECUTIVE_H
3
 
3
 
4
/*
4
/*
5
    Copyright (C) 2004    John Orlando
5
    Copyright (C) 2004    John Orlando
6
    
6
    
7
   AVRcam: a small real-time image processing engine.
7
   AVRcam: a small real-time image processing engine.
8
 
8
 
9
    This program is free software; you can redistribute it and/or
9
    This program is free software; you can redistribute it and/or
10
    modify it under the terms of the GNU General Public
10
    modify it under the terms of the GNU General Public
11
    License as published by the Free Software Foundation; either
11
    License as published by the Free Software Foundation; either
12
    version 2 of the License, or (at your option) any later version.
12
    version 2 of the License, or (at your option) any later version.
13
 
13
 
14
    This program is distributed in the hope that it will be useful,
14
    This program is distributed in the hope that it will be useful,
15
    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
    but WITHOUT ANY WARRANTY; without even the implied warranty of
16
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
    General Public License for more details.
17
    General Public License for more details.
18
 
18
 
19
    You should have received a copy of the GNU General Public
19
    You should have received a copy of the GNU General Public
20
    License along with this program; if not, write to the Free Software
20
    License along with this program; if not, write to the Free Software
21
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22
 
22
 
23
   For more information on the AVRcam, please contact:
23
   For more information on the AVRcam, please contact:
24
 
24
 
25
   john@jrobot.net
25
   john@jrobot.net
26
 
26
 
27
   or go to www.jrobot.net for more details regarding the system.
27
   or go to www.jrobot.net for more details regarding the system.
28
*/
28
*/
29
 
29
 
30
/***********************************************************
30
/***********************************************************
31
	Module Name: Executive.h
31
	Module Name: Executive.h
32
	Module Date: 04/12/2004
32
	Module Date: 04/12/2004
33
	Module Auth: John Orlando
33
	Module Auth: John Orlando
34
	
34
	
35
	Description: This file provides the external interface
35
	Description: This file provides the external interface
36
	to the Executive module.
36
	to the Executive module.
37
    
37
    
38
    Revision History:
38
    Revision History:
39
    Date        Rel Ver.    Notes
39
    Date        Rel Ver.    Notes
40
    4/10/2004      0.1     Module created
40
    4/10/2004      0.1     Module created
41
    6/30/2004      1.0     Initial release for Circuit Cellar
41
    6/30/2004      1.0     Initial release for Circuit Cellar
42
                           contest.
42
                           contest.
43
    *******************************************************/
43
    *******************************************************/
44
#include "Events.h"
44
#include "Events.h"
45
 
45
 
46
/*  Definitions  */
46
/*  Definitions  */
47
 
47
 
48
#define PUBLISH_EVENT(event) Exec_writeEventFifo(event)
48
#define PUBLISH_EVENT(event) Exec_writeEventFifo(event)
49
#define PUBLISH_FAST_EVENT(event) fastEventBitmask |= event
49
#define PUBLISH_FAST_EVENT(event) fastEventBitmask |= event
50
	
50
	
51
/* Extern Functions */
51
/* Extern Functions */
52
extern void Exec_run(void);
52
extern void Exec_run(void);
53
extern void Exec_writeEventFifo(unsigned char event);
53
extern void Exec_writeEventFifo(unsigned char event);
54
 
54
 
55
/* Extern Data */
55
/* Extern Data */
56
extern unsigned char fastEventBitmask;
56
extern unsigned char fastEventBitmask;
57
extern unsigned char Exec_eventFifo[];
57
extern unsigned char Exec_eventFifo[];
58
extern unsigned char Exec_eventFifoHead;
58
extern unsigned char Exec_eventFifoHead;
59
extern unsigned char Exec_eventFifoTail;
59
extern unsigned char Exec_eventFifoTail;
60
	
60
	
61
#endif	
61
#endif	
62
 
62
 
63
 
63
 
64
 
64
 
65
 
65
 
66
 
66