Prusa MINI Firmware overview
safe_state.c File Reference
#include "safe_state.h"
#include "hwio_a3ides.h"

Functions

void hwio_safe_state (void)
 Put hardware into safe state. More...
 

Function Documentation

◆ hwio_safe_state()

void hwio_safe_state ( void  )

Put hardware into safe state.

Set fans to maximum, heaters to minimum and disable motors.

8  {
9 
10  for (int i = 0; i < hwio_fan_get_cnt(); ++i)
11  hwio_fan_set_pwm(i, 255);
12 
13  for (int i = 0; i < hwio_heater_get_cnt(); ++i)
15 
16  //enable 1 means disable :(
21 }
Here is the call graph for this function:
Here is the caller graph for this function:
i
uint8_t i
Definition: screen_test_graph.c:72
hwio_heater_get_cnt
int hwio_heater_get_cnt(void)
Definition: hwio_a3ides_2209_02.c:456
hwio_fan_get_cnt
int hwio_fan_get_cnt(void)
Definition: hwio_a3ides_2209_02.c:444
_DO_Y_ENABLE
#define _DO_Y_ENABLE
Definition: hwio_a3ides.h:29
hwio_fan_set_pwm
void hwio_fan_set_pwm(int i_fan, int val)
Definition: hwio_a3ides_2209_02.c:447
_DO_X_ENABLE
#define _DO_X_ENABLE
Definition: hwio_a3ides.h:22
hwio_do_set_val
void hwio_do_set_val(int i_do, int val)
Definition: hwio_a3ides_2209_02.c:223
_DO_Z_ENABLE
#define _DO_Z_ENABLE
Definition: hwio_a3ides.h:21
hwio_heater_set_pwm
void hwio_heater_set_pwm(int i_heater, int val)
Definition: hwio_a3ides_2209_02.c:459
_DO_E_ENABLE
#define _DO_E_ENABLE
Definition: hwio_a3ides.h:26