My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. #include "streaming.h"
  8. #define SERIAL_ECHO(x) Serial << "echo: " << x;
  9. #define SERIAL_ECHOLN(x) Serial << "echo: "<<x<<endl;
  10. #define SERIAL_ERROR(x) Serial << "echo: ERROR: " << x;
  11. #define SERIAL_ERRORLN(x) Serial << "echo: ERROR: " << x<<endl;
  12. void get_command();
  13. void process_commands();
  14. void manage_inactivity(byte debug);
  15. #if X_ENABLE_PIN > -1
  16. #define enable_x() WRITE(X_ENABLE_PIN, X_ENABLE_ON)
  17. #define disable_x() WRITE(X_ENABLE_PIN,!X_ENABLE_ON)
  18. #else
  19. #define enable_x() ;
  20. #define disable_x() ;
  21. #endif
  22. #if Y_ENABLE_PIN > -1
  23. #define enable_y() WRITE(Y_ENABLE_PIN, Y_ENABLE_ON)
  24. #define disable_y() WRITE(Y_ENABLE_PIN,!Y_ENABLE_ON)
  25. #else
  26. #define enable_y() ;
  27. #define disable_y() ;
  28. #endif
  29. #if Z_ENABLE_PIN > -1
  30. #define enable_z() WRITE(Z_ENABLE_PIN, Z_ENABLE_ON)
  31. #define disable_z() WRITE(Z_ENABLE_PIN,!Z_ENABLE_ON)
  32. #else
  33. #define enable_z() ;
  34. #define disable_z() ;
  35. #endif
  36. #if E_ENABLE_PIN > -1
  37. #define enable_e() WRITE(E_ENABLE_PIN, E_ENABLE_ON)
  38. #define disable_e() WRITE(E_ENABLE_PIN,!E_ENABLE_ON)
  39. #else
  40. #define enable_e() ;
  41. #define disable_e() ;
  42. #endif
  43. #define X_AXIS 0
  44. #define Y_AXIS 1
  45. #define Z_AXIS 2
  46. #define E_AXIS 3
  47. void FlushSerialRequestResend();
  48. void ClearToSend();
  49. void get_coordinates();
  50. void prepare_move();
  51. void kill();
  52. //void check_axes_activity();
  53. //void plan_init();
  54. //void st_init();
  55. //void tp_init();
  56. //void plan_buffer_line(float x, float y, float z, float e, float feed_rate);
  57. //void plan_set_position(float x, float y, float z, float e);
  58. //void st_wake_up();
  59. //void st_synchronize();
  60. void enquecommand(const char *cmd); //put an ascii command at the end of the current buffer.
  61. #ifndef CRITICAL_SECTION_START
  62. #define CRITICAL_SECTION_START unsigned char _sreg = SREG; cli();
  63. #define CRITICAL_SECTION_END SREG = _sreg;
  64. #endif //CRITICAL_SECTION_START
  65. extern float homing_feedrate[];
  66. extern bool axis_relative_modes[];
  67. void kill();
  68. #endif