Prusa MINI Firmware overview
|
#include <w25x.h>
#include "main.h"
◆ _MFRID
◆ _DEVID
◆ _DEVID_NEW
◆ _CMD_ENABLE_WR
#define _CMD_ENABLE_WR 0x06 |
◆ _CMD_ENABLE_WR_VSR
#define _CMD_ENABLE_WR_VSR 0x50 |
◆ _CMD_DISABLE_WR
#define _CMD_DISABLE_WR 0x04 |
◆ _CMD_RD_STATUS_REG
#define _CMD_RD_STATUS_REG 0x05 |
◆ _CMD_WR_STATUS_REG
#define _CMD_WR_STATUS_REG 0x01 |
◆ _CMD_RD_DATA
#define _CMD_RD_DATA 0x03 |
◆ _CMD_RD_FAST
#define _CMD_RD_FAST 0x0b |
◆ _CMD_RD_FAST_D_O
#define _CMD_RD_FAST_D_O 0x3b |
◆ _CMD_RD_FAST_D_IO
#define _CMD_RD_FAST_D_IO 0xbb |
◆ _CMD_PAGE_PROGRAM
#define _CMD_PAGE_PROGRAM 0x02 |
◆ _CMD_SECTOR_ERASE
#define _CMD_SECTOR_ERASE 0x20 |
◆ _CMD_BLOCK32_ERASE
#define _CMD_BLOCK32_ERASE 0x52 |
◆ _CMD_BLOCK64_ERASE
#define _CMD_BLOCK64_ERASE 0xd8 |
◆ _CMD_CHIP_ERASE
#define _CMD_CHIP_ERASE 0xc7 |
◆ _CMD_CHIP_ERASE2
#define _CMD_CHIP_ERASE2 0x60 |
◆ _CMD_PWR_DOWN
#define _CMD_PWR_DOWN 0xb9 |
◆ _CMD_PWR_DOWN_REL
#define _CMD_PWR_DOWN_REL 0xab |
◆ _CMD_MFRID_DEVID
#define _CMD_MFRID_DEVID 0x90 |
◆ _CMD_MFRID_DEVID_D
#define _CMD_MFRID_DEVID_D 0x92 |
◆ _CMD_JEDEC_ID
#define _CMD_JEDEC_ID 0x9f |
◆ _CMD_RD_UID
◆ _CS_LOW
◆ _CS_HIGH
◆ _SPI_TX
◆ _SPI_RX
◆ spi_txrx()
◆ w25x_mfrid_devid()
int w25x_mfrid_devid |
( |
void |
| ) |
|
◆ w25x_init()
int8_t w25x_init |
( |
void |
| ) |
|
◆ w25x_enable_wr()
◆ w25x_disable_wr()
◆ w25x_rd_status_reg()
◆ w25x_wr_status_reg()
◆ w25x_rd_data()
void w25x_rd_data |
( |
uint32_t |
addr, |
|
|
uint8_t * |
data, |
|
|
uint16_t |
cnt |
|
) |
| |
◆ w25x_page_program()
void w25x_page_program |
( |
uint32_t |
addr, |
|
|
uint8_t * |
data, |
|
|
uint16_t |
cnt |
|
) |
| |
◆ w25x_page_program_P()
void w25x_page_program_P |
( |
uint32_t |
addr, |
|
|
uint8_t * |
data, |
|
|
uint16_t |
cnt |
|
) |
| |
◆ w25x_erase()
◆ w25x_sector_erase()
void w25x_sector_erase |
( |
uint32_t |
addr | ) |
|
◆ w25x_block32_erase()
void w25x_block32_erase |
( |
uint32_t |
addr | ) |
|
◆ w25x_block64_erase()
void w25x_block64_erase |
( |
uint32_t |
addr | ) |
|
◆ w25x_chip_erase()
◆ w25x_rd_uid()
◆ w25x_wait_busy()
◆ hspi3
#define _CMD_MFRID_DEVID
Definition: w25x.c:34
#define _CMD_PAGE_PROGRAM
Definition: w25x.c:26
#define _CMD_RD_UID
Definition: w25x.c:37
#define _CMD_RD_STATUS_REG
Definition: w25x.c:20
#define _SPI_RX()
Definition: w25x.c:45
uint8_t data[8]
Definition: masstorage.h:49
SPI_HandleTypeDef hspi3
Definition: main.c:82
#define _DEVID_NEW
Definition: w25x.c:15
int w25x_mfrid_devid(void)
Definition: w25x.c:165
#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
#define _DEVID
Definition: w25x.c:14
#define _CMD_BLOCK64_ERASE
Definition: w25x.c:29
#define _CMD_CHIP_ERASE
Definition: w25x.c:30
uint8_t w25x_rd_status_reg(void)
Definition: w25x.c:78
#define _CS_HIGH()
Definition: w25x.c:40
#define _MFRID
Definition: w25x.c:13
const uint8_t[]
Definition: 404_html.c:3
#define W25X_STATUS_BUSY
Definition: w25x.h:7
#define _CMD_ENABLE_WR
Definition: w25x.c:17
#define _CMD_BLOCK32_ERASE
Definition: w25x.c:28
#define _CS_LOW()
Definition: w25x.c:39
#define _CMD_DISABLE_WR
Definition: w25x.c:19
#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)
#define _CMD_SECTOR_ERASE
Definition: w25x.c:27
#define _SPI_TX(b)
Definition: w25x.c:44
#define _CMD_RD_DATA
Definition: w25x.c:22