Prusa MINI Firmware overview
|
Go to the documentation of this file.
14 #define FILAMENT_ADDRESS 0x400
15 #define FILAMENT_COLOR_R 0x401
16 #define FILAMENT_COLOR_G 0x402
17 #define FILAMENT_COLOR_B 0x403
20 #define FW_UPDATE_FLAG_ADDRESS 0x40B
22 #define MENU_TIMEOUT_FLAG_ADDRESS 0x40C // is it ok?
26 #define EEPROM_START_ADDR 0x400
27 #define EEPROM_VER 0x01 //increment if you add any variable
28 #define EEPROM_VER_OFFSET 2323 //is added to EEPROM_VER for security
43 #ifdef __cplusplus //Not included in sys.c (should be .cpp)
49 template <
typename _T>
52 const uint8_t *source_addr = reinterpret_cast<const uint8_t *>(&eeprom_source);
54 for (
int count =
sizeof(
_T); count; --count, ++source_addr)
55 *ptr++ = *source_addr;
58 template <
typename _U>
59 void eeprom_put(_U &eeprom_destination,
const _U &source) {
61 if (eeprom_destination != source) {
62 uint8_t *dest_addr = reinterpret_cast<uint8_t *>(&eeprom_destination);
63 const uint8_t *ptr = reinterpret_cast<const uint8_t *>(&source);
64 for (
int count =
sizeof(_U); count; --count, ++dest_addr)
int8_t eeprom_check_sum(EEPROM_t *ptr)
Definition: new_eeprom.cpp:59
uint8_t filament_type
Definition: new_eeprom.h:35
void sys_spi_set_prescaler(int prescaler_num)
Definition: sys.cpp:230
void sys_reset(void)
Definition: sys.cpp:20
uint32_t check_sum
Definition: new_eeprom.h:34
uint16_t eeprom_version
Definition: new_eeprom.h:33
uint8_t filament_b
Definition: new_eeprom.h:38
xyze_pos_t destination
Definition: motion.cpp:110
#define FW_BUILDSX
Definition: config.h:12
int sys_pll_is_enabled(void)
Definition: sys.cpp:48
osStatus osDelay(uint32_t millisec)
Wait for Timeout (Time Delay)
Definition: cmsis_os.c:365
void sys_dfu_boot(void)
Definition: sys.cpp:31
void sys_sscg_enable(void)
Definition: sys.cpp:140
HAL_StatusTypeDef HAL_IWDG_Refresh(IWDG_HandleTypeDef *hiwdg)
void sys_pll_enable(void)
Definition: sys.cpp:78
const int version_build_nr
build number
Definition: version.c:44
Definition: new_eeprom.h:31
#define EEPROM_START_ADDR
Definition: new_eeprom.h:26
uint8_t filament_r
Definition: new_eeprom.h:36
#define EEPROM_VER_OFFSET
Definition: new_eeprom.h:28
void eeprom_initialize(EEPROM_t *ptr)
Definition: new_eeprom.cpp:11
void eeprom_factory_reset(EEPROM_t *ptr)
Definition: new_eeprom.cpp:48
void sys_sscg_set_config(int freq, int depth)
Definition: sys.cpp:159
const uint8_t[]
Definition: 404_html.c:3
void sys_sscg_disable(void)
Definition: sys.cpp:125
void sys_pll_disable(void)
Definition: sys.cpp:57
#define _T(x)
Definition: ff.h:63
uint8_t filament_g
Definition: new_eeprom.h:37
IWDG_HandleTypeDef hiwdg
Definition: watchdog.h:24
#define EEPROM_VER
Definition: new_eeprom.h:27
int sys_sscg_is_enabled(void)
Definition: sys.cpp:121
Header of cmsis_os.c A new set of APIs are added in addition to existing ones, these APIs are specifi...