My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Marlin.h 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #ifndef __MARLINH
  2. #define __MARLINH
  3. // Tonokip RepRap firmware rewrite based off of Hydra-mmm firmware.
  4. // Licence: GPL
  5. #include <WProgram.h>
  6. #include "fastio.h"
  7. #define ECHO(x) Serial << "echo: " << x;
  8. #define ECHOLN(x) Serial << "echo: "<<x<<endl;
  9. void get_command();
  10. void process_commands();
  11. void manage_inactivity(byte debug);
  12. #if X_ENABLE_PIN > -1
  13. #define enable_x() WRITE(X_ENABLE_PIN, X_ENABLE_ON)
  14. #define disable_x() WRITE(X_ENABLE_PIN,!X_ENABLE_ON)
  15. #else
  16. #define enable_x() ;
  17. #define disable_x() ;
  18. #endif
  19. #if Y_ENABLE_PIN > -1
  20. #define enable_y() WRITE(Y_ENABLE_PIN, Y_ENABLE_ON)
  21. #define disable_y() WRITE(Y_ENABLE_PIN,!Y_ENABLE_ON)
  22. #else
  23. #define enable_y() ;
  24. #define disable_y() ;
  25. #endif
  26. #if Z_ENABLE_PIN > -1
  27. #define enable_z() WRITE(Z_ENABLE_PIN, Z_ENABLE_ON)
  28. #define disable_z() WRITE(Z_ENABLE_PIN,!Z_ENABLE_ON)
  29. #else
  30. #define enable_z() ;
  31. #define disable_z() ;
  32. #endif
  33. #if E_ENABLE_PIN > -1
  34. #define enable_e() WRITE(E_ENABLE_PIN, E_ENABLE_ON)
  35. #define disable_e() WRITE(E_ENABLE_PIN,!E_ENABLE_ON)
  36. #else
  37. #define enable_e() ;
  38. #define disable_e() ;
  39. #endif
  40. #define X_AXIS 0
  41. #define Y_AXIS 1
  42. #define Z_AXIS 2
  43. #define E_AXIS 3
  44. void FlushSerialRequestResend();
  45. void ClearToSend();
  46. void get_coordinates();
  47. void prepare_move();
  48. void kill();
  49. //void check_axes_activity();
  50. //void plan_init();
  51. //void st_init();
  52. //void tp_init();
  53. //void plan_buffer_line(float x, float y, float z, float e, float feed_rate);
  54. //void plan_set_position(float x, float y, float z, float e);
  55. //void st_wake_up();
  56. //void st_synchronize();
  57. void enquecommand(const char *cmd);
  58. #ifndef CRITICAL_SECTION_START
  59. #define CRITICAL_SECTION_START unsigned char _sreg = SREG; cli();
  60. #define CRITICAL_SECTION_END SREG = _sreg;
  61. #endif //CRITICAL_SECTION_START
  62. extern float homing_feedrate[];
  63. extern bool axis_relative_modes[];
  64. void wd_reset() ;
  65. #endif