Prusa MINI Firmware overview
|
Go to the documentation of this file.
7 #define W25X_STATUS_BUSY 0x01
8 #define W25X_STATUS_WEL 0x02
9 #define W25X_STATUS_BP0 0x04
10 #define W25X_STATUS_BP1 0x08
11 #define W25X_STATUS_TB 0x20
12 #define W25X_STATUS_SRP 0x80
14 #define W25X_SPI_ENTER() // spi_setup(W25X20CL_SPCR, W25X20CL_SPSR)
16 #if defined(__cplusplus)
18 #endif //defined(__cplusplus)
36 #if defined(__cplusplus)
38 #endif //defined(__cplusplus)
const char version_build[]
Definition: version.c:37
void w25x_block32_erase(uint32_t addr)
Definition: w25x.c:139
void w25x_enable_wr(void)
Definition: w25x.c:66
#define _CMD_MFRID_DEVID
Definition: w25x.c:34
#define _CMD_PAGE_PROGRAM
Definition: w25x.c:26
void w25x_chip_erase(void)
Definition: w25x.c:147
SPI handle Structure definition.
Definition: stm32f4xx_hal_spi.h:120
void w25x_rd_uid(uint8_t *uid)
Definition: w25x.c:153
#define _CMD_RD_UID
Definition: w25x.c:37
#define _CMD_RD_STATUS_REG
Definition: w25x.c:20
void w25x_sector_erase(uint32_t addr)
Definition: w25x.c:135
void w25x_disable_wr(void)
Definition: w25x.c:72
void w25x_rd_uid(uint8_t *uid)
Definition: w25x.c:153
#define _SPI_RX()
Definition: w25x.c:45
void w25x_block64_erase(uint32_t addr)
Definition: w25x.c:143
uint8_t data[8]
Definition: masstorage.h:49
void w25x_page_program(uint32_t addr, uint8_t *data, uint16_t cnt)
Definition: w25x.c:104
SPI_HandleTypeDef hspi3
Definition: main.c:82
#define _DEVID_NEW
Definition: w25x.c:15
void w25x_chip_erase(void)
Definition: w25x.c:147
const char version_firmware_name[]
Definition: version.c:24
void w25x_wr_status_reg(uint8_t val)
Definition: w25x.c:86
int w25x_mfrid_devid(void)
Definition: w25x.c:165
#define FW_BUILDSX
Definition: config.h:12
void w25x_enable_wr(void)
Definition: w25x.c:66
void w25x_block64_erase(uint32_t addr)
Definition: w25x.c:143
void w25x_wait_busy(void)
Definition: w25x.c:177
#define _CMD_WR_STATUS_REG
Definition: w25x.c:21
#define W25X_SPI_ENTER()
Definition: w25x.h:14
void w25x_erase(uint8_t cmd, uint32_t addr)
Definition: w25x.c:126
void w25x_wr_status_reg(uint8_t val)
Definition: w25x.c:86
uint8_t w25x_rd_status_reg(void)
Definition: w25x.c:78
#define _DEVID
Definition: w25x.c:14
#define _CMD_BLOCK64_ERASE
Definition: w25x.c:29
const int version_build_nr
build number
Definition: version.c:44
void w25x_disable_wr(void)
Definition: w25x.c:72
#define _CMD_CHIP_ERASE
Definition: w25x.c:30
void w25x_block32_erase(uint32_t addr)
Definition: w25x.c:139
uint8_t w25x_rd_status_reg(void)
Definition: w25x.c:78
#define _CS_HIGH()
Definition: w25x.c:40
void w25x_rd_data(uint32_t addr, uint8_t *data, uint16_t cnt)
Definition: w25x.c:93
void w25x_page_program(uint32_t addr, uint8_t *data, uint16_t cnt)
Definition: w25x.c:104
#define _MFRID
Definition: w25x.c:13
const uint8_t[]
Definition: 404_html.c:3
#define W25X_STATUS_BUSY
Definition: w25x.h:7
#define STR(x)
Definition: version.c:11
#define _CMD_ENABLE_WR
Definition: w25x.c:17
#define _CMD_BLOCK32_ERASE
Definition: w25x.c:28
: Header for main.c file. This file contains the common defines of the application.
#define _CS_LOW()
Definition: w25x.c:39
#define _CMD_DISABLE_WR
Definition: w25x.c:19
void w25x_page_program_P(uint32_t addr, uint8_t *data, uint16_t cnt)
Definition: w25x.c:115
const char version_version[]
semantic version (https://semver.org) is Prusa3D standard
Definition: version.c:31
#define VERSION(ver)
Definition: version.c:20
#define HAL_MAX_DELAY
Definition: stm32f4xx_hal_def.h:76
HAL_StatusTypeDef HAL_SPI_TransmitReceive(SPI_HandleTypeDef *hspi, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size, uint32_t Timeout)
void w25x_sector_erase(uint32_t addr)
Definition: w25x.c:135
void w25x_rd_data(uint32_t addr, uint8_t *data, uint16_t cnt)
Definition: w25x.c:93
void w25x_wait_busy(void)
Definition: w25x.c:177
#define _CMD_SECTOR_ERASE
Definition: w25x.c:27
static uint8_t spi_txrx(uint8_t tx)
Definition: w25x.c:49
void w25x_page_program_P(uint32_t addr, uint8_t *data, uint16_t cnt)
Definition: w25x.c:115
int8_t w25x_init(void)
Definition: w25x.c:57
#define _SPI_TX(b)
Definition: w25x.c:44
#define _CMD_RD_DATA
Definition: w25x.c:22
int8_t w25x_init(void)
Definition: w25x.c:57