Prusa MINI Firmware overview
|
#include "gui.h"
#include "config.h"
#include "screen_menu.h"
#include <stdlib.h>
#include "version.h"
◆ BOOTLOADER_VERSION_ADDRESS
#define BOOTLOADER_VERSION_ADDRESS 0x801FFFA |
◆ OTP_START_ADDR
#define OTP_START_ADDR 0x1FFF7800 |
◆ SERIAL_NUM_ADDR
#define SERIAL_NUM_ADDR 0x1FFF7808 |
◆ anonymous enum
◆ screen_menu_version_info_init()
45 char serial_numbers[15];
47 uint16_t fw_parser = FW_VERSION;
60 serial_numbers[14] =
'\0';
64 FW_version[0] = (
uint8_t)(fw_parser / 100);
65 fw_parser -= FW_version[0] * 100;
66 FW_version[1] = (
uint8_t)(fw_parser / 10);
67 fw_parser -= FW_version[1] * 10;
68 FW_version[2] = (
uint8_t)fw_parser;
72 FW_version[0], FW_version[1], FW_version[2],
76 FW_version[1], FW_version[2]);
82 "Firmware version\n%s\n\nBootloader version\n%d.%d.%d\n\nBuddy board\n%d.%d.%d\n%s",
85 board_version[0], board_version[1], board_version[2],
◆ screen_menu_version_info_done()
◆ version_info_str
char* version_info_str = nullptr |
◆ screen_version_info
◆ pscreen_version_info
Definition: window_text.h:15
uint8_t patch
Definition: shared_config.h:41
#define BOOTLOADER_VERSION_ADDRESS
Definition: screen_version_info.cpp:14
static rect_ui16_t rect_ui16(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Definition: guitypes.h:159
void * gui_malloc(unsigned int size)
Definition: gui.c:35
#define IDR_FNT_NORMAL
Definition: resource.h:10
uint8_t i
Definition: screen_test_graph.c:72
void window_set_text(int16_t id, const char *text)
Definition: window.c:340
const int version_build_nr
build number
Definition: version.c:44
void screen_menu_version_info_done(screen_t *screen)
Definition: screen_version_info.cpp:91
#define IDR_PNG_header_icon_info
Definition: resource.h:66
const uint8_t[]
Definition: 404_html.c:3
uint8_t minor
Definition: shared_config.h:40
char FW_version_str[22]
Definition: bsod.c:106
#define WINDOW_CLS_TEXT
Definition: window.h:10
font_t * resource_font(uint16_t id)
Definition: guitypes.c:186
Definition: screen_version_info.cpp:19
char * version_info_str
Definition: screen_version_info.cpp:28
int16_t window_create_ptr(int16_t cls_id, int16_t id_parent, rect_ui16_t rect, void *ptr)
Definition: window.c:102
#define SERIAL_NUM_ADDR
Definition: screen_version_info.cpp:16
void screen_menu_version_info_init(screen_t *screen)
Definition: screen_version_info.cpp:30
#define OTP_START_ADDR
Definition: screen_version_info.cpp:15
Definition: shared_config.h:38
uint8_t major
Definition: shared_config.h:39