Prusa MINI Firmware overview
|
#define RENDER_FLG(a, r)
Definition: display_helper.h:10
#define LCD_CMD_DISPLAYCONTROL
Definition: lcdsim.c:12
#define LCD_FLG_BLINKON
Definition: lcdsim.c:25
screen_t * pscreen_test_msgbox
Definition: screen_test_msgbox.c:147
screen_t * pscreen_test_term
Definition: screen_test_term.c:78
int16_t window_register_class(window_class_t *cls)
Definition: window.c:90
int lcdsim_blinkOn
Definition: lcdsim.c:53
jogwheel_config_t jogwheel_config
Definition: jogwheel.c:95
int16_t WINDOW_CLS_DLG_LOADUNLOAD
Definition: window_dlg_statemachine.c:37
#define LCD_CMD_RETURNHOME
Definition: lcdsim.c:10
uint16_t window_msgbox_id_icon[5]
Definition: window_msgbox.c:62
screen_t *const pscreen_lan_settings
Definition: screen_lan_settings.c:294
gui_loop_cb_t * gui_loop_cb
Definition: gui.c:32
void lcdsim_cmd_setDDRamAddr(int8_t addr)
Definition: lcdsim.c:110
#define MARLIN_EVT_SafetyTimerExpired
Definition: marlin_events.h:35
Definition: guitypes.h:76
int lcdsim_func2line
Definition: lcdsim.c:49
#define LCD_FLG_ENTRYSHIFTINC
Definition: lcdsim.c:27
int16_t WINDOW_CLS_LCDSIM
Definition: window_lcdsim.c:6
#define COLOR_WHITE
Definition: guitypes.h:41
uint8_t jogwheel_changed
Definition: jogwheel.c:14
void sys_reset(void)
Definition: sys.cpp:20
void update_firmware_screen(void)
Definition: guimain.c:247
#define PE12
Definition: variant.h:112
SPI handle Structure definition.
Definition: stm32f4xx_hal_spi.h:120
Definition: jogwheel.h:20
void gui_init(void)
Definition: gui.c:43
uint8_t lcdsim_char_at(uint8_t col, uint8_t row)
Definition: lcdsim.c:85
uint8_t marlin_message_received(void)
Definition: marlin_client.c:507
int guimain_spi_test
Definition: guimain.c:74
void lcdsim_invalidate(void)
Definition: lcdsim.c:79
const window_class_dlg_preheat_t window_class_dlg_preheat
Definition: window_dlg_preheat.c:114
screen_t * pscreen_menu_calibration
Definition: screen_menu_calibration.c:101
IWDG Handle Structure definition.
Definition: stm32f4xx_hal_iwdg.h:76
uint16_t lcdsim_grab_text(char *text)
Definition: lcdsim.c:93
int16_t screen_register(screen_t *pscreen)
Definition: screen.c:24
#define ALIGN_CENTER
Definition: guitypes.h:19
static rect_ui16_t rect_ui16(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Definition: guitypes.h:159
#define LCD_FLG_FUNC8BIT
Definition: lcdsim.c:18
font_t * font
Definition: guitypes.h:110
static uint8_t lcdsim_addr2col(uint8_t addr)
Definition: lcdsim.c:63
void lcdsim_cmd_returnHome(void)
Definition: lcdsim.c:147
const jogwheel_config_t jogwheel_cfg
Definition: guimain.c:95
uint8_t data[8]
Definition: masstorage.h:49
#define LCD_DDRAM_SIZE
Definition: lcdsim.c:6
#define LCD_FLG_ENTRYLEFT
Definition: lcdsim.c:26
static padding_ui8_t padding_ui8(uint8_t l, uint8_t t, uint8_t r, uint8_t b)
Definition: guitypes.h:164
#define LCD_CMD_ENTRYMODESET
Definition: lcdsim.c:11
#define IDR_FNT_NORMAL
Definition: resource.h:10
uint8_t i
Definition: screen_test_graph.c:72
uint8_t lcdsim_expander
Definition: lcdsim.c:34
int16_t WINDOW_CLS_DLG_PREHEAT
Definition: window_dlg_preheat.c:22
#define MSGBOX_ICO_WARNING
Definition: window_msgbox.h:35
uint8_t lcdsim_ddram[LCD_DDRAM_SIZE]
Definition: lcdsim.c:36
#define IDR_FNT_SPECIAL
Definition: resource.h:13
screen_t * pscreen_menu_service
Definition: screen_menu_service.c:147
screen_t * pscreen_filebrowser
Definition: screen_filebrowser.cpp:177
#define MARLIN_CMD_M600
Definition: marlin_events.h:57
#define IDR_PNG_icon_pepa
Definition: resource.h:44
#define LCD_CMD_CLEARDISPLAY
Definition: lcdsim.c:9
display_draw_text_t * draw_text
Definition: display.h:35
#define ST7789V_DEF_MADCTL
Definition: st7789v.h:14
int diag_fastboot
Definition: diag.c:11
void screen_open(int16_t screen_id)
Definition: screen.c:62
screen_t * pscreen_menu_preheat
Definition: screen_menu_preheat.cpp:93
void marlin_client_loop(void)
Definition: marlin_client.c:118
void gui_run(void)
Definition: guimain.c:107
int lcdsim_entryShiftInc
Definition: lcdsim.c:55
#define NULL
Definition: usbd_def.h:53
void lcdsim_cmd_setCGRamAddr(int8_t addr)
Definition: lcdsim.c:115
#define F(str)
Definition: UHS_macros.h:164
int16_t WINDOW_CLS_LOGO
Definition: window_logo.c:11
uint8_t * lcdsim_user_charset_ptr(void)
Definition: lcdsim.c:89
#define LCD_FLG_SHIFTDISPLAY
Definition: lcdsim.c:21
const screen_t * pscreen_marlin
Definition: screen_marlin.c:33
screen_t * pscreen_menu_filament
Definition: screen_menu_filament.c:124
screen_t * screen_get_curr(void)
Definition: screen.c:114
const window_class_dlg_wait_t window_class_dlg_wait
Definition: window_dlg_wait.c:128
#define MSGBOX_BTN_OK
Definition: window_msgbox.h:20
uint32_t lcdsim_inval_mask[LCDSIM_ROWS]
Definition: lcdsim.c:40
const window_class_file_list_t window_class_file_list
Definition: window_file_list.c:250
#define GPIO_PULLUP
Definition: stm32f4xx_hal_gpio.h:171
int16_t WINDOW_CLS_DLG_WAIT
Definition: window_dlg_wait.c:25
osStatus osDelay(uint32_t millisec)
Wait for Timeout (Time Delay)
Definition: cmsis_os.c:365
display_fill_rect_t * fill_rect
Definition: display.h:33
dlg_result_t gui_dlg_change(void)
Definition: window_dlg_change.c:35
void screen_close(void)
Definition: screen.c:80
void lcdsim_invalidate(void)
Definition: lcdsim.c:79
static int gpio_get(uint8_t pin8)
Definition: gpio.h:94
void lcdsim_cmd_displayControl(int displayOn, int cursorOn, int blinkOn)
Definition: lcdsim.c:136
#define IDR_PNG_header_icon_question
Definition: resource.h:69
void lcdsim_expander_write(uint8_t expander)
Definition: lcdsim.c:204
screen_t * pscreen_wizard
Definition: screen_wizard.c:559
screen_t * pscreen_splash
Definition: screen_splash.c:144
const window_class_temp_graph_t window_class_temp_graph
Definition: window_temp_graph.c:132
HAL_StatusTypeDef HAL_IWDG_Refresh(IWDG_HandleTypeDef *hiwdg)
int8_t lcdsim_ddram_addr
Definition: lcdsim.c:38
const st7789v_config_t st7789v_cfg
Definition: guimain.c:85
int lcdsim_func8bit
Definition: lcdsim.c:48
void lcdsim_cmd_functionSet(int func8bit, int func2line, int func10dots)
Definition: lcdsim.c:119
screen_t * pscreen_mesh_bed_lv
Definition: screen_mesh_bed_lv.cpp:228
#define COLOR_ORANGE
Definition: guitypes.h:57
void lcdsim_wr_data(uint8_t data)
Definition: lcdsim.c:184
marlin_vars_t * marlin_client_init(void)
Definition: marlin_client.c:84
screen_t * pscreen_printing
Definition: screen_printing.cpp:161
screen_t * pscreen_menu_info
Definition: screen_menu_info.c:66
#define LCD_CMD_CURSORSHIFT
Definition: lcdsim.c:13
#define LCD_FLG_SHIFTRIGHT
Definition: lcdsim.c:22
#define LCD_EXPANDER_RS
Definition: lcdsim.c:29
static void gpio_init(uint8_t pin8, uint32_t mode, uint32_t pull, uint32_t speed)
Definition: gpio.h:102
screen_t * pscreen_menu_move
Definition: screen_menu_move.c:85
int8_t lcdsim_cgram_addr
Definition: lcdsim.c:39
int sys_fw_is_valid(void)
Definition: sys.cpp:266
#define LCD_CGRAM_SIZE
Definition: lcdsim.c:7
screen_t * pscreen_test_temperature
Definition: screen_test_temperature.cpp:109
#define JOGWHEEL_PIN_EN1
Definition: config_a3ides2209_02.h:59
#define MARLIN_EVT_CommandBegin
Definition: marlin_events.h:33
#define JOGWHEEL_PIN_ENC
Definition: config_a3ides2209_02.h:61
SPI_HandleTypeDef hspi2
Definition: main.c:81
uint8_t lcdsim_char_at(uint8_t col, uint8_t row)
Definition: lcdsim.c:85
#define IDR_PNG_header_icon_error
Definition: resource.h:67
int lcdsim_entryLeft
Definition: lcdsim.c:54
#define JOGWHEEL_DEF_FLG
Definition: jogwheel.h:15
void lcdsim_cmd_cursorShift(int shiftDisplay, int shiftRight)
Definition: lcdsim.c:125
void screen_stack_push(int16_t screen_id)
Definition: screen.c:48
uint8_t flg
Definition: jogwheel.h:24
uint16_t jogwheel_button_down
Definition: jogwheel.c:13
int8_t lcdsim_shift
Definition: lcdsim.c:46
void lcdsim_init(void)
Definition: lcdsim.c:71
uint8_t * lcdsim_user_charset_ptr(void)
Definition: lcdsim.c:89
int HAL_IWDG_Reset
Definition: main.c:103
IWDG_HandleTypeDef hiwdg
Definition: watchdog.h:24
const window_class_logo_t window_class_logo
Definition: window_logo.c:51
#define JOGWHEEL_FLG_INV_DIR
Definition: jogwheel.h:8
int lcdsim_func10dots
Definition: lcdsim.c:50
uint8_t lcdsim_cgram[LCD_CGRAM_SIZE]
Definition: lcdsim.c:37
marlin_vars_t * gui_marlin_vars
Definition: guimain.c:102
#define LCD_CMD_FUNCTIONSET
Definition: lcdsim.c:14
void render_text_align(rect_ui16_t rc, const char *text, font_t *font, color_t clr0, color_t clr1, padding_ui8_t padding, uint16_t flags)
Definition: display_helper.c:6
#define IDR_PNG_header_icon_info
Definition: resource.h:66
screen_t * pscreen_test_gui
Definition: screen_test_gui.c:131
#define LCD_CMD_SETDDRAMADDR
Definition: lcdsim.c:16
const uint8_t[]
Definition: 404_html.c:3
#define IDR_FNT_BIG
Definition: resource.h:11
#define _dbg(...)
Definition: dbg.h:50
static uint8_t lcdsim_addr2row(uint8_t addr)
Definition: lcdsim.c:59
int lcdsim_cursorOn
Definition: lcdsim.c:52
#define IDR_PNG_header_icon_warning
Definition: resource.h:68
display_t * display
Definition: display.c:6
#define LCD_FLG_FUNC2LINE
Definition: lcdsim.c:19
screen_t * pscreen_menu_settings
Definition: screen_menu_settings.c:133
#define LCD_FLG_DISPLAYON
Definition: lcdsim.c:23
screen_t * pscreen_test_graph
Definition: screen_test_graph.c:111
uint32_t marlin_command(void)
Definition: marlin_client.c:159
screen_t * pscreen_home
Definition: screen_home.cpp:278
font_t * resource_font(uint16_t id)
Definition: guitypes.c:186
int16_t WINDOW_CLS_FILE_LIST
Definition: window_file_list.c:24
#define ST7789V_DEF_COLMOD
Definition: st7789v.h:13
int8_t gui_get_menu_timeout_id(void)
Definition: gui_timer.c:147
#define ST7789V_FLG_DMA
Definition: st7789v.h:9
This file contains all the functions prototypes for the HAL module driver.
#define ST7789V_PIN_RS
Definition: config_a3ides2209_02.h:54
#define COLOR_BLACK
Definition: guitypes.h:40
int16_t id
Definition: screen.h:19
const window_class_dlg_statemachine_t window_class_dlg_statemachine
Definition: window_dlg_statemachine.c:246
#define JOGWHEEL_PIN_EN2
Definition: config_a3ides2209_02.h:60
Definition: marlin_vars.h:77
#define WINDOW_EVENT_MESSAGE
Definition: window.h:51
void lcdsim_cmd_clearDisplay(void)
Definition: lcdsim.c:153
screen_t * pscreen_test
Definition: screen_test.c:157
#define LCD_CMD_SETCGRAMADDR
Definition: lcdsim.c:15
void lcdsim_init(void)
Definition: lcdsim.c:71
screen_t * pscreen_preheating
#define ST7789V_PIN_CS
Definition: config_a3ides2209_02.h:53
font_t * font_big
Definition: guitypes.h:111
static uint8_t lcdsim_pos2addr(uint8_t col, uint8_t row)
Definition: lcdsim.c:67
gui_defaults_t gui_defaults
Definition: gui.c:20
#define GPIO_MODE_INPUT
Definition: stm32f4xx_hal_gpio.h:135
void render_icon_align(rect_ui16_t rc, uint16_t id_res, color_t clr0, uint16_t flags)
Definition: display_helper.c:55
void lcdsim_wr_cmd(uint8_t cmd)
Definition: lcdsim.c:165
uint16_t st7789v_reset_delay
Definition: st7789v.c:920
void hwio_beeper_tone2(float frq, uint32_t del, float vol)
Definition: hwio_a3ides_2209_02.c:530
#define LCD_FLG_FUNC10DOTS
Definition: lcdsim.c:20
screen_t * pscreen_sysinfo
Definition: screen_sysinf.c:123
int lcdsim_displayOn
Definition: lcdsim.c:51
#define LCD_EXPANDER_EN
Definition: lcdsim.c:31
void screen_dispatch_event(window_t *window, uint8_t event, void *param)
Definition: screen.c:103
int8_t gui_timer_expired(int8_t id)
Definition: gui_timer.c:139
#define ST7789V_PIN_RST
Definition: config_a3ides2209_02.h:55
int8_t menu_timeout_enabled
Definition: guimain.c:103
screen_t * pscreen_menu_tune
Definition: screen_menu_tune.cpp:203
screen_t *const pscreen_print_preview
Definition: screen_print_preview.c:77
screen_t * pscreen_watchdog
Definition: screen_watchdog.c:78
void gui_timer_delete(int8_t id)
Definition: gui_timer.c:79
uint16_t lcdsim_grab_text(char *text)
Definition: lcdsim.c:93
int16_t WINDOW_CLS_TEMP_GRAPH
Definition: window_temp_graph.c:8
screen_t * pscreen_menu_temperature
Definition: screen_menu_temperature.c:76
screen_t * pscreen_messages
Definition: screen_messages.c:122
screen_t * pscreen_version_info
Definition: screen_version_info.cpp:109
const window_class_lcdsim_t window_class_lcdsim
Definition: window_lcdsim.c:58
#define GPIO_SPEED_FREQ_LOW
Definition: stm32f4xx_hal_gpio.h:158
int marlin_event_clr(uint8_t evt_id)
Definition: marlin_client.c:252
st7789v_config_t st7789v_config
Definition: st7789v.c:905
void lcdsim_cmd_entryModeSet(int entryLeft, int entryShiftInc)
Definition: lcdsim.c:142
screen_t * pscreen_test_disp_mem
Definition: screen_test_disp_mem.c:629