Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
90 gunterl 1
/*****************************************************************************
2
Project : Roboboard
3
Date    : 1/14/2007
4
Author  : Gunter Logemann (C) ALL RIGHTS RESERVED                  
5
 
6
Comments: This project is optimized to work with the Mikrocopter (www.mikrokopter.de)
7
 
8
Redistributions of this source code (with or without modifications) or parts
9
of this sourcode must retain the above copyright notice, this list of
10
conditions and the following disclaimer.
11
* Neither the name of the copyright holders nor the names of contributors may
12
  be used to endorse or promote products derived from this software without
13
  specific prior written permission.
14
* The use of this source code permittet for non-commercial use (directly
15
  or indirectly) only.
16
* Commercial use Is only permitted with our written permission by
17
  Gunter Logemann (gunter@pccon.de)
18
 
19
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
POSSIBILITY OF SUCH DAMAGE.
30
 
31
Chip type           : ATmega8
32
Program type        : Application
33
Clock frequency     : CPUSPEED
34
*****************************************************************************/
35
 
36
 
37
#define XIDENTIFIER_EXCEPTION           0x00
38
#define XIDENTIFIER_VERSION                     0x01
39
#define XIDENTIFIER_ANALOG                      0x02
40
 
41
//---------------------------------------------------------------------------
42
struct str_VersionInfo
43
{
44
  unsigned char identifier;
45
  unsigned char majorversion;
46
  unsigned char minorversion;
47
};  
48
extern struct str_VersionInfo VersionInfo;
49
 
50
#define MAJORVERSION                            0x00
51
#define MINORVERSION                            0x01
52
 
53
//---------------------------------------------------------------------------
54
struct str_AnalogData
55
{
56
        unsigned char identifier;
57
        int analog[8];
58
};
59
extern struct str_AnalogData AnalogData;
60
 
61
//---------------------------------------------------------------------------
62
struct str_Exception
63
{
64
        unsigned char identifier;
65
        unsigned char errorcode;
66
};
67
extern struct str_Exception Exception;
68
 
69
#define ERRORCODE_NOTIMPLEMENTED        0x00
70
#define ERRORCODE_WRONGPARAMETER        0x01
71