forked from reprappro/RepRapFirmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RepRapFirmware.h
94 lines (67 loc) · 1.99 KB
/
RepRapFirmware.h
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/****************************************************************************************************
RepRapFirmware - Main Include
This defines versions etc, includes all the other include files in the right order and defines the
master RepRap class. No other definitions or information should be in here.
-----------------------------------------------------------------------------------------------------
Version 0.1
18 November 2012
Adrian Bowyer
RepRap Professional Ltd
http://reprappro.com
Licence: GPL
****************************************************************************************************/
#ifndef REPRAPFIRMWARE_H
#define REPRAPFIRMWARE_H
#define NAME "RepRapFirmware"
#define VERSION "0.1"
#define DATE "2012-11-18"
#define LAST_AUTHOR "reprappro.com"
class Platform;
class Move;
class Heat;
class GCodes;
class Webserver;
class RepRap
{
public:
RepRap();
void Init();
void Spin();
void Exit();
// Platform* getPlatform();
// Move* getMove();
// Heat* getHeat();
// GCodes* getGcodes();
// Webserver* getWebserver();
void Interrupt();
private:
Platform* platform;
boolean active;
Move* move;
Heat* heat;
GCodes* gcodes;
Webserver* webserver;
};
#include "Configuration.h"
#include "Platform.h"
#include "Move.h"
#include "Heat.h"
#include "GCodes.h"
#include "Webserver.h"
// Do nothing more in the constructor; put what you want in RepRap:Init()
inline RepRap::RepRap()
{
active = false;
platform = new Platform(this);
move = new Move(platform);
heat = new Heat(platform);
webserver = new Webserver(platform);
gcodes = new GCodes(platform, move, heat, webserver);
}
//inline Platform* RepRap::getPlatform() { return platform; }
//inline Move* RepRap::getMove() { return move; }
//inline Heat* RepRap::getHeat() { return heat; }
//inline GCodes* RepRap::getGcodes() { return gcodes; }
//inline Webserver* RepRap::getWebserver() { return webserver; }
extern RepRap reprap;
#endif