Prusa MINI Firmware overview
|
#include "new_eeprom.h"
#include <inttypes.h>
#include <stddef.h>
◆ eeprom_initialize()
12 static bool eeprom_init_flag =
false;
13 if (eeprom_init_flag ==
false) {
39 if (check_sum_flag == 0)
44 eeprom_init_flag =
true;
◆ eeprom_factory_reset()
◆ eeprom_check_sum()
int8_t eeprom_check_sum |
( |
EEPROM_t * |
ptr | ) |
|
64 const uint8_t *p = reinterpret_cast<const uint8_t *>(ptr);
65 for (
size_t count =
sizeof(
EEPROM_t); count; count--) {
69 if (curr_sum != tmp_sum)
int8_t eeprom_check_sum(EEPROM_t *ptr)
Definition: new_eeprom.cpp:59
uint8_t filament_type
Definition: new_eeprom.h:35
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
Definition: new_eeprom.h:31
uint8_t filament_r
Definition: new_eeprom.h:36
#define EEPROM_VER_OFFSET
Definition: new_eeprom.h:28
void eeprom_factory_reset(EEPROM_t *ptr)
Definition: new_eeprom.cpp:48
const uint8_t[]
Definition: 404_html.c:3
uint8_t filament_g
Definition: new_eeprom.h:37
#define EEPROM_VER
Definition: new_eeprom.h:27