Prusa MINI Firmware overview
|
Go to the documentation of this file.
9 #define _DISKIO_WRITE 1
10 #define _DISKIO_IOCTL 1
11 #define _DISKIO_ISDIO 0
13 typedef unsigned char BYTE;
14 typedef unsigned short WORD;
55 #define STA_NOINIT 0x01
56 #define STA_NODISK 0x02
57 #define STA_PROTECT 0x04
63 #define GET_SECTOR_COUNT 1
64 #define GET_SECTOR_SIZE 2
65 #define GET_BLOCK_SIZE 3
70 #define CTRL_POWER_IDLE 6
71 #define CTRL_POWER_OFF 7
77 #define MMC_GET_TYPE 50
78 #define MMC_GET_CSD 51
79 #define MMC_GET_CID 52
80 #define MMC_GET_OCR 53
81 #define MMC_GET_SDSTAT 54
83 #define ISDIO_WRITE 56
84 #define ISDIO_MRITE 57
87 #define ATA_GET_REV 60
88 #define ATA_GET_MODEL 61
95 #define CT_SDC (CT_SD1|CT_SD2)
#define STA_NOINIT
Definition: onboard_sd.h:55
#define GET_SECTOR_COUNT
Definition: onboard_sd.h:63
Definition: onboard_sd.h:27
const uint8_t CMD33
Definition: SdInfo.h:56
#define OUT_WRITE(IO, V)
Definition: fastio.h:108
#define MMC_GET_OCR
Definition: onboard_sd.h:80
#define MMC_GET_CSD
Definition: onboard_sd.h:78
Definition: onboard_sd.h:25
const uint8_t CMD8
Definition: SdInfo.h:46
#define ONBOARD_SD_CS_PIN
Definition: pins_AZSMZ_MINI.h:90
DSTATUS disk_initialize(BYTE pdrv)
Initializes a Drive.
Definition: diskio.c:91
#define CT_SD1
Definition: onboard_sd.h:93
Definition: onboard_sd.h:24
unsigned short WORD
Definition: onboard_sd.h:14
uint8_t data[8]
Definition: masstorage.h:49
#define ON_BOARD_SPI_DEVICE
Definition: pins_BIGTREE_SKR_E3_DIP.h:206
DRESULT disk_read(BYTE pdrv, BYTE *buff, DWORD sector, UINT count)
Reads Sector(s)
Definition: diskio.c:113
const uint8_t CMD18
Definition: SdInfo.h:52
#define SPI_MODE0
Definition: SPI.h:29
const uint8_t CMD0
Definition: SdInfo.h:45
uint32_t millis(void)
Definition: wiring_time.c:29
#define CT_SDC
Definition: onboard_sd.h:95
const uint8_t CMD17
Definition: SdInfo.h:51
#define MMC_GET_SDSTAT
Definition: onboard_sd.h:81
#define MMC_GET_CID
Definition: onboard_sd.h:79
#define STA_PROTECT
Definition: onboard_sd.h:57
const uint8_t CMD58
Definition: SdInfo.h:59
#define CT_MMC
Definition: onboard_sd.h:92
#define ISDIO_MRITE
Definition: onboard_sd.h:84
const uint8_t CMD12
Definition: SdInfo.h:49
#define STA_NODISK
Definition: onboard_sd.h:56
Definition: onboard_sd.h:23
DSTATUS disk_status(BYTE pdrv)
Gets Disk Status.
Definition: diskio.c:76
Definition: wiring_constants.h:67
BYTE DSTATUS
Definition: onboard_sd.h:19
#define MMC_GET_TYPE
Definition: onboard_sd.h:77
const uint8_t CMD9
Definition: SdInfo.h:47
DRESULT disk_write(BYTE pdrv, const BYTE *buff, DWORD sector, UINT count)
Writes Sector(s)
Definition: diskio.c:135
const uint8_t CMD32
Definition: SdInfo.h:55
#define CT_BLOCK
Definition: onboard_sd.h:96
DRESULT disk_ioctl(BYTE pdrv, BYTE cmd, void *buff)
I/O control operation.
Definition: diskio.c:157
unsigned long DWORD
Definition: onboard_sd.h:15
#define ISDIO_READ
Definition: onboard_sd.h:82
#define CT_SD2
Definition: onboard_sd.h:94
const uint8_t CMD24
Definition: SdInfo.h:53
#define HIGH
Definition: wiring_constants.h:71
const uint8_t CMD10
Definition: SdInfo.h:48
const uint8_t CMD25
Definition: SdInfo.h:54
#define GET_BLOCK_SIZE
Definition: onboard_sd.h:65
unsigned char BYTE
Definition: onboard_sd.h:13
DRESULT
Definition: onboard_sd.h:22
#define ISDIO_WRITE
Definition: onboard_sd.h:83
#define CTRL_TRIM
Definition: onboard_sd.h:66
const uint8_t CMD55
Definition: SdInfo.h:58
const uint8_t CMD38
Definition: SdInfo.h:57
Wirish SPI interface.
Definition: SPI.h:63
const uint8_t ACMD23
Definition: SdInfo.h:61
const uint8_t ACMD41
Definition: SdInfo.h:62
Definition: onboard_sd.h:26
unsigned int UINT
Definition: onboard_sd.h:16
#define CTRL_SYNC
Definition: onboard_sd.h:62