smoothie port to mbed online compiler (smoothieware.org)

Dependencies:   mbed

For documentation, license, ..., please check http://smoothieware.org/

This version has been tested with a 3 axis machine

Committer:
scachat
Date:
Tue Jul 31 21:11:18 2012 +0000
Revision:
0:31e91bb0ef3c
smoothie port to mbed online compiler

Who changed what in which revision?

UserRevisionLine numberNew contents of line
scachat 0:31e91bb0ef3c 1 /*
scachat 0:31e91bb0ef3c 2 nuts_bolts.h - cartesian robot controller.
scachat 0:31e91bb0ef3c 3 Part of Grbl
scachat 0:31e91bb0ef3c 4
scachat 0:31e91bb0ef3c 5 Copyright (c) 2009-2011 Simen Svale Skogsrud
scachat 0:31e91bb0ef3c 6
scachat 0:31e91bb0ef3c 7 Grbl is free software: you can redistribute it and/or modify
scachat 0:31e91bb0ef3c 8 it under the terms of the GNU General Public License as published by
scachat 0:31e91bb0ef3c 9 the Free Software Foundation, either version 3 of the License, or
scachat 0:31e91bb0ef3c 10 (at your option) any later version.
scachat 0:31e91bb0ef3c 11
scachat 0:31e91bb0ef3c 12 Grbl is distributed in the hope that it will be useful,
scachat 0:31e91bb0ef3c 13 but WITHOUT ANY WARRANTY; without even the implied warranty of
scachat 0:31e91bb0ef3c 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
scachat 0:31e91bb0ef3c 15 GNU General Public License for more details.
scachat 0:31e91bb0ef3c 16
scachat 0:31e91bb0ef3c 17 You should have received a copy of the GNU General Public License
scachat 0:31e91bb0ef3c 18 along with Grbl. If not, see <http://www.gnu.org/licenses/>.
scachat 0:31e91bb0ef3c 19 */
scachat 0:31e91bb0ef3c 20
scachat 0:31e91bb0ef3c 21 #ifndef nuts_bolts_h
scachat 0:31e91bb0ef3c 22 #define nuts_bolts_h
scachat 0:31e91bb0ef3c 23
scachat 0:31e91bb0ef3c 24 #include <string>
scachat 0:31e91bb0ef3c 25 using std::string;
scachat 0:31e91bb0ef3c 26
scachat 0:31e91bb0ef3c 27 #define X_AXIS 0
scachat 0:31e91bb0ef3c 28 #define Y_AXIS 1
scachat 0:31e91bb0ef3c 29 #define Z_AXIS 2
scachat 0:31e91bb0ef3c 30
scachat 0:31e91bb0ef3c 31 #define ALPHA_STEPPER 0
scachat 0:31e91bb0ef3c 32 #define BETA_STEPPER 1
scachat 0:31e91bb0ef3c 33 #define GAMMA_STEPPER 2
scachat 0:31e91bb0ef3c 34
scachat 0:31e91bb0ef3c 35 #define clear_vector(a) memset(a, 0, sizeof(a))
scachat 0:31e91bb0ef3c 36 #define clear_vector_double(a) memset(a, 0.0, sizeof(a))
scachat 0:31e91bb0ef3c 37 #define max(a,b) (((a) > (b)) ? (a) : (b))
scachat 0:31e91bb0ef3c 38
scachat 0:31e91bb0ef3c 39 #define dd(...) LPC_GPIO2->FIODIR = 0xffff; LPC_GPIO2->FIOCLR = 0xffff; LPC_GPIO2->FIOSET = __VA_ARGS__
scachat 0:31e91bb0ef3c 40
scachat 0:31e91bb0ef3c 41
scachat 0:31e91bb0ef3c 42 #endif
scachat 0:31e91bb0ef3c 43