KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
sd-speedtest.c File Reference
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <time.h>
#include <dc/sd.h>
#include <dc/maple.h>
#include <dc/maple/controller.h>
#include <kos/init.h>
#include <kos/dbgio.h>
#include <kos/dbglog.h>
#include <kos/blockdev.h>

Macros

#define TEST_BLOCK_COUNT   1024
 

Functions

 KOS_INIT_FLAGS (INIT_DEFAULT)
 
static void wait_exit (void)
 
static int run_speed_test (sd_interface_t interface, bool check_crc)
 
int main (int argc, char *argv[])
 

Variables

static uint8_t tbuf [TEST_BLOCK_COUNT *512]
 

Macro Definition Documentation

◆ TEST_BLOCK_COUNT

#define TEST_BLOCK_COUNT   1024

Referenced by run_speed_test().

Function Documentation

◆ KOS_INIT_FLAGS()

KOS_INIT_FLAGS ( INIT_DEFAULT )

◆ main()

int main ( int argc,
char * argv[] )

◆ run_speed_test()

static int run_speed_test ( sd_interface_t interface,
bool check_crc )
static

◆ wait_exit()

static void wait_exit ( void )
static

Variable Documentation

◆ tbuf

uint8_t tbuf[TEST_BLOCK_COUNT *512]
static

Referenced by pspeak(), and run_speed_test().