wake-0 / fhvOS

This repository contains an os for the arm cortex a8 in combination with beaglebone.
GNU General Public License v2.0
7 stars 1 forks source link

[Driver] SD card #56

Closed wake-0 closed 9 years ago

wake-0 commented 9 years ago

Implement a SD card driver, which can be used to "communicate" with the SD card.

trylimits commented 9 years ago

Information and programming model for the multimedia card (MMC) can be found in AM335x technical reference manual on page 3384.

It seems like accessing the SD card is a bunch of work. Discussion on Wednesday. Pending until then.

wake-0 commented 9 years ago

Testcode in main:

DeviceManagerInit();
device_t uart = DeviceManagerGetDevice("UART0", 5);
ConsoleInit(uart);
printf("Hello \n");
device_t sdCard = DeviceManagerGetDevice("SDCARD", 6);
DeviceManagerInitDevice(sdCard);
DeviceManagerOpen(sdCard);
wake-0 commented 9 years ago

@trylimits pls verify the new approach to return the mmcsdCardInfo from the sd card driver read function. So the driver knows nothing about the fat but the filemanager can easily use the existing fat implementation.

trylimits commented 9 years ago

This bug is related to #74.

trylimits commented 9 years ago

Seems to work well for the moment. Additional features can be discussed in new (more fine-grained) tickets.