Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 /* 00002 This file is part of Smoothie (http://smoothieware.org/). The motion control part is heavily based on Grbl (https://github.com/simen/grbl). 00003 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. 00004 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. 00005 You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>. 00006 */ 00007 00008 #include "libs/Kernel.h" 00009 #include "modules/tools/laser/Laser.h" 00010 #include "modules/tools/spindle/Spindle.h" 00011 #include "modules/tools/extruder/Extruder.h" 00012 #include "modules/tools/temperaturecontrol/TemperatureControlPool.h" 00013 #include "modules/robot/Player.h" 00014 #include "modules/utils/simpleshell/SimpleShell.h" 00015 #include "modules/utils/configurator/Configurator.h" 00016 #include "modules/utils/currentcontrol/CurrentControl.h" 00017 #include "modules/utils/pausebutton/PauseButton.h" 00018 //#include "libs/ChaNFSSD/SDFileSystem.h" 00019 #include "libs/Config.h" 00020 #include "libs/nuts_bolts.h" 00021 #include "libs/utils.h" 00022 00023 //#include "libs/USBCDCMSC/USBCDCMSC.h" 00024 LocalFileSystem local("local"); 00025 //SDFileSystem sd(p5, p6, p7, p8, "sd"); // LPC17xx specific : comment if you are not using a SD�card ( for example with a mBed ). 00026 //LocalFileSystem local("local"); // LPC17xx specific :�comment if you are not running a mBed 00027 //USBCDCMSC cdcmsc(&sd); // LPC17xx specific :�Composite serial + msc USB device 00028 00029 int main() { 00030 00031 Kernel* kernel = new Kernel(); 00032 00033 kernel->serial->printf("Smoothie ( grbl port ) version 0.6.1_mbed \r\n"); 00034 00035 00036 00037 //kernel->add_module( new Laser(p21) ); 00038 //kernel->add_module( new Extruder() ); 00039 kernel->add_module( new Spindle() ); 00040 kernel->add_module( new SimpleShell() ); 00041 kernel->add_module( new Configurator() ); 00042 kernel->add_module( new CurrentControl() ); 00043 kernel->add_module( new TemperatureControlPool() ); 00044 kernel->add_module( new PauseButton() ); 00045 00046 //kernel->add_module( &cdcmsc ); 00047 00048 kernel->serial->printf("start\r\n"); 00049 00050 while(1){ 00051 kernel->call_event(ON_MAIN_LOOP); 00052 kernel->call_event(ON_IDLE); 00053 } 00054 }
Generated on Tue Jul 12 2022 14:14:41 by
1.7.2