made mbed.h include more specific for several key files
authorLogxen <logxen@hotmail.com>
Wed, 9 May 2012 18:00:51 +0000 (11:00 -0700)
committerLogxen <logxen@hotmail.com>
Wed, 9 May 2012 18:00:51 +0000 (11:00 -0700)
src/libs/Config.h
src/libs/Digipot.h
src/libs/Pin.h
src/modules/tools/laser/Laser.cpp
src/modules/tools/laser/Laser.h

index 8300810..472e7ba 100644 (file)
@@ -10,6 +10,7 @@
 #include "libs/Kernel.h"
 #include "libs/utils.h"
 #include "libs/Pin.h"
+#include "error.h" // mbed.h lib
 
 
 using namespace std;
index d5b28bb..946d2a7 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef DIGIPOT_H
 #define DIGIPOT_H
 
-#include "mbed.h" //Required for I2C
+#include "I2C.h" // mbed.h lib
 #include "libs/Kernel.h"
 #include "libs/utils.h"
 #include <string>
index 1a0eb2a..cb1d468 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef PIN_H
 #define PIN_H
 
-#include "mbed.h" //Required for LPC_GPIO* . can probably be found in one othe the files mbed.h includes. TODO
-//#include "../gcc4mbed/external/mbed/LPC1768/LPC17xx.h"
+#include <stdlib.h>
+#include "LPC17xx.h" // mbed.h lib
 #include "libs/Kernel.h"
 #include "libs/utils.h"
 #include <string>
index db6b641..297e4e1 100644 (file)
@@ -5,7 +5,6 @@
       You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>. 
 */
 
-#include "mbed.h"
 #include "libs/Module.h"
 #include "libs/Kernel.h"
 #include "modules/communication/utils/Gcode.h"
index 4b0767b..b0c21d9 100644 (file)
@@ -8,7 +8,8 @@
 #ifndef LASER_MODULE_H
 #define LASER_MODULE_H
 
-#include "mbed.h"
+#include "PinNames.h" // mbed.h lib
+#include "PwmOut.h" // mbed.h lib
 #include "libs/Module.h"
 #include "libs/Kernel.h"
 #include "modules/communication/utils/Gcode.h"