OpenCores
URL https://opencores.org/ocsvn/rio/rio/trunk

Subversion Repositories rio

[/] [rio/] [trunk/] [sw/] [stack/] [rioconfig.h] - Blame information for rev 42

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 20 magro732
/*******************************************************************************
2
 *
3
 * RapidIO IP Library Core
4
 *
5
 * This file is part of the RapidIO IP library project
6
 * http://www.opencores.org/cores/rio/
7
 *
8
 * Description:
9
 * This file contains the implementation dependent information needed to build
10
 * the riostack. Replace declarations and definitions in this file to customize
11
 * for your own compiler environment.
12
 *
13
 * To Do:
14
 * -
15
 *
16
 * Author(s):
17
 * - Magnus Rosenius, magro732@opencores.org
18
 *
19
 *******************************************************************************
20
 *
21
 * Copyright (C) 2013 Authors and OPENCORES.ORG
22
 *
23
 * This source file may be used and distributed without
24
 * restriction provided that this copyright statement is not
25
 * removed from the file and that any derivative work contains
26
 * the original copyright notice and the associated disclaimer.
27
 *
28
 * This source file is free software; you can redistribute it
29
 * and/or modify it under the terms of the GNU Lesser General
30
 * Public License as published by the Free Software Foundation;
31
 * either version 2.1 of the License, or (at your option) any
32
 * later version.
33
 *
34
 * This source is distributed in the hope that it will be
35
 * useful, but WITHOUT ANY WARRANTY; without even the implied
36
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
37
 * PURPOSE. See the GNU Lesser General Public License for more
38
 * details.
39
 *
40
 * You should have received a copy of the GNU Lesser General
41
 * Public License along with this source; if not, download it
42
 * from http://www.opencores.org/lgpl.shtml
43
 *
44
 *******************************************************************************/
45
 
46
#ifndef __RIO_CONFIG
47
#define __RIO_CONFIG
48
 
49
/*******************************************************************************
50
* Includes
51
*******************************************************************************/
52
 
53
#include <stdint.h>
54
#include <stdlib.h>
55
 
56
/*******************************************************************************
57
* Global typedefs
58
*******************************************************************************/
59
 
60
#ifndef ASSERT
61
#ifdef MODULE_TEST
62
#include <stdio.h>
63
#define ASSERT(c, s) (c)?:fprintf(stderr, s)
64
#endif
65
#endif
66
 
67
#ifndef ASSERT0
68
#ifdef MODULE_TEST
69
#include <stdio.h>
70
#define ASSERT0(s) fprintf(stderr, s)
71
#endif
72
#endif
73
 
74
#ifndef DEBUG_OUT
75
#define DEBUG_OUT(...)
76
#endif
77
 
78
#define DEBUG_STATE(...) /*DEBUG_OUT(__VA_ARGS__)*/
79
#define DEBUG_FRAMING_RX(...) /*DEBUG_OUT(__VA_ARGS__)*/
80
#define DEBUG_FRAMING_TX(...) /*DEBUG_OUT(__VA_ARGS__)*/
81
 
82
typedef uint8_t bool_t;
83
 
84
 
85
/*******************************************************************************
86
* Global declarations
87
*******************************************************************************/
88
 
89
/*******************************************************************************
90
* Global function prototypes
91
*******************************************************************************/
92
 
93
#endif // __RIO_CONFIG
94
 
95
/*************************** end of file **************************************/

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.