Prusa MINI Firmware overview
|
Go to the documentation of this file.
29 #include "../inc/MarlinConfig.h"
31 #if ENABLED(SPINDLE_FEATURE)
32 #define _MSG_CUTTER(M) MSG_SPINDLE_##M
34 #define _MSG_CUTTER(M) MSG_LASER_##M
36 #define MSG_CUTTER(M) _MSG_CUTTER(M)
38 #if SPEED_POWER_MAX > 255
40 #define CUTTER_MENU_TYPE uint16_5
43 #define CUTTER_MENU_TYPE uint8
70 #if ENABLED(SPINDLE_LASER_PWM)
71 static void set_ocr(
const uint8_t ocr);
77 #if SPINDLE_LASER_POWERUP_DELAY || SPINDLE_LASER_POWERDOWN_DELAY
78 safe_delay(
enabled() ? SPINDLE_LASER_POWERUP_DELAY : SPINDLE_LASER_POWERDOWN_DELAY);
82 #if ENABLED(SPINDLE_CHANGE_DIR)
#define OUT_WRITE(IO, V)
Definition: fastio.h:108
static void set_enabled(const bool enable)
Definition: spindle_laser.h:58
static void disable()
Definition: spindle_laser.h:88
static cutter_power_t power
Definition: spindle_laser.h:48
#define RECIPROCAL(x)
Definition: macros.h:273
#define SET_PWM(IO)
Definition: fastio.h:103
#define SPINDLE_LASER_PWM_PIN
Definition: pins_MEGACONTROLLER.h:162
#define SPINDLE_LASER_ENA_PIN
Definition: pins_MEGACONTROLLER.h:163
SpindleLaser cutter
Definition: spindle_laser.cpp:33
uint8_t cutter_power_t
Definition: spindle_laser.h:42
int8_t pin_t
Definition: HAL.h:65
static void set_power(const cutter_power_t pwr)
Definition: spindle_laser.h:54
#define SPINDLE_DIR_PIN
Definition: pins_MEGACONTROLLER.h:164
static void set_direction(const bool)
Definition: spindle_laser.h:85
static void power_delay()
Definition: spindle_laser.h:76
static bool enabled()
Definition: spindle_laser.h:52
#define WRITE(IO, V)
Definition: fastio.h:96
static void enable_reverse()
Definition: spindle_laser.h:90
static void apply_power(const cutter_power_t inpow)
Definition: spindle_laser.cpp:64
const uint8_t[]
Definition: 404_html.c:3
Definition: spindle_laser.h:46
static void init()
Definition: spindle_laser.cpp:39
void safe_delay(millis_t ms)
Definition: utility.cpp:28
#define SPINDLE_LASER_PWM_OFF
Definition: spindle_laser.cpp:37
static void enable_forward()
Definition: spindle_laser.h:89
void analogWrite(uint32_t ulPin, uint32_t ulValue)
Definition: wiring_analog.c:12
#define READ(IO)
Definition: fastio.h:95
SpindleLaser cutter
Definition: spindle_laser.cpp:33
static void refresh()
Definition: spindle_laser.h:56
static void update_output()