Prusa MINI Firmware overview
|
Go to the documentation of this file.
52 #include "../../inc/MarlinConfig.h"
57 #define EE_OK uint32_t(HAL_OK)
58 #define EE_ERROR uint32_t(HAL_ERROR)
59 #define EE_BUSY uint32_t(HAL_BUSY)
60 #define EE_TIMEOUT uint32_t(HAL_TIMEOUT)
63 #define PAGE_SIZE uint32_t(0x4000)
67 #define VOLTAGE_RANGE uint8_t(VOLTAGE_RANGE_3)
71 #define EEPROM_START_ADDRESS uint32_t(0x08100000)
75 #define EEPROM_START_ADDRESS uint32_t(0x08078000)
80 #define PAGE0_BASE_ADDRESS uint32_t(EEPROM_START_ADDRESS + 0x0000)
81 #define PAGE0_END_ADDRESS uint32_t(EEPROM_START_ADDRESS + PAGE_SIZE - 1)
82 #define PAGE0_ID FLASH_SECTOR_1
84 #define PAGE1_BASE_ADDRESS uint32_t(EEPROM_START_ADDRESS + 0x4000)
85 #define PAGE1_END_ADDRESS uint32_t(EEPROM_START_ADDRESS + 2 * (PAGE_SIZE) - 1)
86 #define PAGE1_ID FLASH_SECTOR_2
89 #define PAGE0 uint16_t(0x0000)
90 #define PAGE1 uint16_t(0x0001)
93 #define NO_VALID_PAGE uint16_t(0x00AB)
96 #define ERASED uint16_t(0xFFFF)
97 #define RECEIVE_DATA uint16_t(0xEEEE)
98 #define VALID_PAGE uint16_t(0x0000)
101 #define READ_FROM_VALID_PAGE uint8_t(0x00)
102 #define WRITE_IN_VALID_PAGE uint8_t(0x01)
105 #define PAGE_FULL uint8_t(0x80)
108 #define NB_OF_VAR uint16_t(4096)
#define FLASH_TYPEERASE_SECTORS
Definition: stm32f4xx_hal_flash_ex.h:162
#define WRITE_IN_VALID_PAGE
Definition: eeprom_emul.h:102
uint16_t EE_ReadVariable(uint16_t VirtAddress, uint16_t *Data)
uint32_t NbSectors
Definition: stm32f4xx_hal_flash_ex.h:74
Definition: stm32f4xx_hal_def.h:57
#define ERASED
Definition: eeprom_emul.h:96
#define TYPEERASE_SECTORS
Definition: stm32_hal_legacy.h:291
HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *SectorError)
#define PAGE1
Definition: eeprom_emul.h:90
#define NO_VALID_PAGE
Definition: eeprom_emul.h:93
uint32_t Sector
Definition: stm32f4xx_hal_flash_ex.h:71
uint16_t EE_WriteVariable(uint16_t VirtAddress, uint16_t Data)
#define RECEIVE_DATA
Definition: eeprom_emul.h:97
#define NB_OF_VAR
Definition: eeprom_emul.h:108
HAL_StatusTypeDef
HAL Status structures definition.
Definition: stm32f4xx_hal_def.h:55
#define PAGE_SIZE
Definition: eeprom_emul.h:63
#define PAGE0_END_ADDRESS
Definition: eeprom_emul.h:81
#define PAGE1_ID
Definition: eeprom_emul.h:86
uint32_t TypeErase
Definition: stm32f4xx_hal_flash_ex.h:65
#define PAGE_FULL
Definition: eeprom_emul.h:105
uint32_t VoltageRange
Definition: stm32f4xx_hal_flash_ex.h:77
HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint64_t Data)
#define PAGE0_BASE_ADDRESS
Definition: eeprom_emul.h:80
const uint8_t[]
Definition: 404_html.c:3
#define READ_FROM_VALID_PAGE
Definition: eeprom_emul.h:101
#define PAGE0
Definition: eeprom_emul.h:89
#define EEPROM_START_ADDRESS
Definition: eeprom_emul.h:75
#define TYPEPROGRAM_HALFWORD
Definition: stm32_hal_legacy.h:288
#define PAGE0_ID
Definition: eeprom_emul.h:82
#define VOLTAGE_RANGE
Definition: eeprom_emul.h:67
#define PAGE1_BASE_ADDRESS
Definition: eeprom_emul.h:84
#define VALID_PAGE
Definition: eeprom_emul.h:98
FLASH Erase structure definition.
Definition: stm32f4xx_hal_flash_ex.h:63