Browse Source

Main controller updates

Scott Lahteine 6 years ago
parent
commit
bca67a5b79
3 changed files with 453 additions and 8513 deletions
  1. 1
    1
      Marlin/Marlin.ino
  2. 443
    8493
      Marlin/src/Marlin.cpp
  3. 9
    19
      Marlin/src/Marlin.h

+ 1
- 1
Marlin/Marlin.ino View File

28
  *  - https://github.com/simen/grbl/tree
28
  *  - https://github.com/simen/grbl/tree
29
  */
29
  */
30
 
30
 
31
-#include "MarlinConfig.h"
31
+#include "src/inc/MarlinConfig.h"
32
 
32
 
33
 #if ENABLED(ULTRA_LCD)
33
 #if ENABLED(ULTRA_LCD)
34
   #if ENABLED(LCD_I2C_TYPE_PCF8575)
34
   #if ENABLED(LCD_I2C_TYPE_PCF8575)

+ 443
- 8493
Marlin/src/Marlin.cpp
File diff suppressed because it is too large
View File


+ 9
- 19
Marlin/src/Marlin.h View File

19
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
  *
20
  *
21
  */
21
  */
22
-#ifndef MARLIN_H
23
-#define MARLIN_H
22
+#ifndef __MARLIN_H__
23
+#define __MARLIN_H__
24
 
24
 
25
 #include <math.h>
25
 #include <math.h>
26
 #include <stdio.h>
26
 #include <stdio.h>
27
 #include <stdlib.h>
27
 #include <stdlib.h>
28
-#include <string.h>
29
-#include <inttypes.h>
30
 
28
 
31
-#include "MarlinConfig.h"
29
+#include "inc/MarlinConfig.h"
32
 
30
 
33
 #ifdef DEBUG_GCODE_PARSER
31
 #ifdef DEBUG_GCODE_PARSER
34
-  #include "gcode.h"
32
+  #include "gcode/parser.h"
35
 #endif
33
 #endif
36
-#include "src/HAL/HAL.h"
37
-
38
-#include "enum.h"
39
-#include "types.h"
40
-#include "utility.h"
41
-#include "serial.h"
42
 
34
 
43
 #if ENABLED(PRINTCOUNTER)
35
 #if ENABLED(PRINTCOUNTER)
44
-  #include "printcounter.h"
36
+  #include "module/printcounter.h"
45
 #else
37
 #else
46
-  #include "stopwatch.h"
38
+  #include "libs/stopwatch.h"
47
 #endif
39
 #endif
48
 
40
 
41
+void stop();
42
+
49
 void idle(
43
 void idle(
50
   #if ENABLED(ADVANCED_PAUSE_FEATURE)
44
   #if ENABLED(ADVANCED_PAUSE_FEATURE)
51
     bool no_stepper_sleep = false  // pass true to keep steppers from disabling on timeout
45
     bool no_stepper_sleep = false  // pass true to keep steppers from disabling on timeout
195
 extern millis_t previous_cmd_ms;
189
 extern millis_t previous_cmd_ms;
196
 inline void refresh_cmd_timeout() { previous_cmd_ms = millis(); }
190
 inline void refresh_cmd_timeout() { previous_cmd_ms = millis(); }
197
 
191
 
198
-#if ENABLED(FAST_PWM_FAN)
199
-  void setPwmFrequency(uint8_t pin, int val);
200
-#endif
201
-
202
 /**
192
 /**
203
  * Feedrate scaling and conversion
193
  * Feedrate scaling and conversion
204
  */
194
  */
476
   return position_is_reachable_raw_xy(RAW_X_POSITION(lx), RAW_Y_POSITION(ly));
466
   return position_is_reachable_raw_xy(RAW_X_POSITION(lx), RAW_Y_POSITION(ly));
477
 }
467
 }
478
 
468
 
479
-#endif // MARLIN_H
469
+#endif // __MARLIN_H__

Loading…
Cancel
Save