Commit | Line | Data |
---|---|---|
4cff3ded AW |
1 | /* |
2 | This file is part of Smoothie (http://smoothieware.org/). The motion control part is heavily based on Grbl (https://github.com/simen/grbl). | |
3 | Smoothie is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | |
4 | Smoothie is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
5 | You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>. | |
6 | */ | |
7 | ||
8 | #include "mbed.h" | |
9 | #include "libs/Kernel.h" | |
10 | #include "modules/tools/laser/Laser.h" | |
11 | #include "modules/tools/extruder/Extruder.h" | |
ded56b35 | 12 | #include "modules/tools/temperaturecontrol/TemperatureControl.h" |
13e4a3f9 | 13 | #include "modules/robot/Player.h" |
4eb9c745 | 14 | #include "modules/utils/simpleshell/SimpleShell.h" |
befcf5cc | 15 | #include "modules/utils/pauser/Pauser.h" |
b6c86164 | 16 | #include "libs/ChaNFSSD/SDFileSystem.h" |
4cff3ded | 17 | #include "libs/Config.h" |
4eb9c745 AW |
18 | #include "libs/nuts_bolts.h" |
19 | #include "libs/utils.h" | |
4cff3ded | 20 | |
b6c86164 | 21 | #include "libs/USBCDCMSC/USBCDCMSC.h" |
cd011f58 AW |
22 | SDFileSystem sd(p5, p6, p7, p8, "sd"); // LPC17xx specific : comment if you are not using a SD card ( for example with a mBed ). |
23 | //LocalFileSystem local("local"); // LPC17xx specific : comment if you are not running a mBed | |
24 | USBCDCMSC cdcmsc(&sd); // LPC17xx specific : Composite serial + msc USB device | |
4cff3ded | 25 | |
4cff3ded AW |
26 | int main() { |
27 | ||
28 | Kernel* kernel = new Kernel(); | |
3a4fa0c1 | 29 | |
cd011f58 | 30 | kernel->serial->printf("Smoothie ( grbl port ) version 0.6 \r\nstart\r\n"); |
4cff3ded AW |
31 | |
32 | kernel->add_module( new Laser(p21) ); | |
0eb11a06 | 33 | kernel->add_module( new Extruder(p26,p27) ); |
4eb9c745 | 34 | kernel->add_module( new SimpleShell() ); |
13e4a3f9 | 35 | kernel->add_module( new TemperatureControl() ); |
b6c86164 AW |
36 | |
37 | kernel->add_module( &cdcmsc ); | |
38 | ||
4cff3ded AW |
39 | while(1){ |
40 | kernel->call_event(ON_MAIN_LOOP); | |
41 | } | |
4cff3ded | 42 | } |
13e4a3f9 | 43 |