10 #include "simpletools.h" 12 int DO = 22, CLK = 23, DI = 24,
CS = 25;
16 int erc = sd_mount(DO, CLK, DI,
CS);
19 FILE* fp = fopen(
"test.txt",
"w");
23 fwrite(
"Test message, hello!\n", 1, 21, fp);
27 print(
"File did not open.\n");
31 fp = fopen(
"test.txt",
"r");
37 print(
"First 21 chars in test.txt:\n");
44 print(
"File did not open.\n");
51 print(
"Error opening card.");
52 print(
"error code = %d\n", erc);
const PropWare::Port::Mask CS