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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. void wd_reset();
  59. #ifndef CRITICAL_SECTION_START
  60. #define CRITICAL_SECTION_START unsigned char _sreg = SREG; cli();
  61. #define CRITICAL_SECTION_END SREG = _sreg;
  62. #endif //CRITICAL_SECTION_START
  63. extern float homing_feedrate[];
  64. extern bool axis_relative_modes[];
  65. void manage_inactivity(byte debug);
  66. #endif