-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbmptk.h
More file actions
76 lines (64 loc) · 2.32 KB
/
bmptk.h
File metadata and controls
76 lines (64 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//***************************************************************************
//
// file : bmptk/bmptk.h
//
// Copyright (c) 2012 ... 2014 Wouter van Ooijen (wouter@voti.nl)
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// This is the one header file a user should include to
// use the bmptk core facilities.
//
//***************************************************************************
#ifndef _BMPTK_H_
#define _BMPTK_H_
// ==========================================================================
//
// version
//
// ==========================================================================
//! helper macro for the bmtkp version
#define BMPTK_VERSION_STR( X ) #X
//! bmtkp version, determined by Makefile.inc
const char version[] = BMPTK_VERSION_STR( BMPTK_VERSION );
// ==========================================================================
//
// debug macro's
//
// ==========================================================================
//! file-name : line-number macro
//
//! The macro BMPTK_HERE transates to a newline, the file-name, ":",
//! and the line-number of the place where the BMPTK_HERE macro
//! appears. This is usefull for debug logging.
#define BMPTK_HERE_STR( X ) #X
#define BMPTK_HERE2( F, L ) ( "\n" F ":" BMPTK_HERE_STR( L ) " " )
#define BMPTK_HERE BMPTK_HERE2( __FILE__, __LINE__ )
#define BMPTK_TRACE ( hwcpp::io::cout << BMPTK_HERE )
// ==========================================================================
//
// include the target-specific header file
//
// ==========================================================================
#ifdef BMPTK_TARGET_nds
#include "targets/nds/nds.h"
#endif
#ifdef BMPTK_TARGET_win
#include "targets/win/win.h"
#endif
#ifdef BMPTK_CHIP_lpc810m021
#include "targets/cortex/cmsis/lpc800/inc/lpc810m021.h"
#endif
#ifdef BMPTK_CHIP_lpc1114fn28
#include "targets/cortex/cmsis/11xx/inc/LPC11xx.h"
#include "targets/cortex/cortex.h"
#endif
#ifdef BMPTK_CHIP_lpc1227fbd301
#include "targets/cortex/cmsis/12xx/inc/lpc12fbd301.h"
#endif
#ifdef BMPTK_CHIP_lpc2478
#include "targets/armv7/lpc2478.h"
#endif
#endif // #ifndef _BMPTK_H_