sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
spi_sdcard_driver_config.h
Go to the documentation of this file.
1
5#ifndef __SPI_SDCARD_DRIVER_CONFIG_H__
6#define __SPI_SDCARD_DRIVER_CONFIG_H__
7
8/* Includes ------------------------------------------------------------------*/
9
10#include <stdio.h>
11#include <stdint.h>
12
13#define SPISD_ASSERT(cond) \
14 while (!cond) {};
15
16
17
18#define SD_CRC7_MODE_ROM_TABLE 1 /* Table in ROM, no need to generate it */
19#define SD_CRC7_MODE_RAM_TABLE 2 /* if you have no free 256B ROM or ROM is slow. Use crc7_generate_table() to init table */
20#define SD_CRC7_MODE_RUNTIME 3 /* if you have no free ROM and RAM, but it is slow */
21
22
23#if BUILD_BOOTLOADER == 1U
24#define SD_CRC7_MODE (SD_CRC7_MODE_RUNTIME)
25#else
26#define SD_CRC7_MODE (SD_CRC7_MODE_RAM_TABLE)
27#endif
28
29#endif //__SPI_SDCARD_DRIVER_CONFIG_H__