openpcd/openpicc/application/openpicc.h @ master
1 |
/***************************************************************
|
---|---|
2 |
*
|
3 |
* OpenPICC.org
|
4 |
*
|
5 |
* Copyright 2006 Milosch Meriac <meriac@openbeacon.de>
|
6 |
*
|
7 |
***************************************************************
|
8 |
|
9 |
This program is free software; you can redistribute it and/or modify
|
10 |
it under the terms of the GNU General Public License as published by
|
11 |
the Free Software Foundation; version 2.
|
12 |
|
13 |
This program is distributed in the hope that it will be useful,
|
14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
16 |
GNU General Public License for more details.
|
17 |
|
18 |
You should have received a copy of the GNU General Public License along
|
19 |
with this program; if not, write to the Free Software Foundation, Inc.,
|
20 |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
21 |
|
22 |
*/
|
23 |
|
24 |
#ifndef __OPENPICC_H__
|
25 |
#define __OPENPICC_H__
|
26 |
|
27 |
#include "board.h"
|
28 |
|
29 |
typedef unsigned char bool_t; |
30 |
typedef unsigned char u_int8_t; |
31 |
typedef unsigned short u_int16_t; |
32 |
typedef unsigned long u_int32_t; |
33 |
typedef signed char s_int8_t; |
34 |
typedef signed short s_int16_t; |
35 |
typedef int s_int32_t; |
36 |
|
37 |
#define int16_t s_int16_t
|
38 |
|
39 |
#define DA_BASELINE 200
|
40 |
|
41 |
#define DIV_ROUND_UP(a,b) ( (a+(b-1)) / b)
|
42 |
#define MIN(a, b) ((a)>(b)?(b):(a))
|
43 |
|
44 |
#endif/*__OPENPICC_H__*/ |