Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: MMC/SD support on LPC2000

2006-01-17 by Carsten Grøn

Yup,

if that works, it is sure simple ! 
The only problem is that I would really hate (and so would the 
people using the PC software) to install lotsa software to use that 
feature (cygwin etc)....

Regards,
Carsten


--- In lpc2000@yahoogroups.com, David Hawkins <dwh@o...> wrote:
>> 
> I would just try it and see. Install Cygwin, and then install your
> USB card reader with SD card installed. Try and figure out if
> the /dev/sdX nodes are created. Sorry, I'm not sure what the
> Cygwin command might be ...
> 
> To read binary data:
> 
>    int fd, len;
>    char buf[10];
> 
>    fd = open("/dev/sda1", O_RDONLY);
>    if (fd < 0) {
>      printf("open failed\n");
>      return -1;
>    }
>    len = read(fd, buf, 10);
>    if (len < 0) {
>      printf("read failed\n");
>      close(fd);
>      return -1;
>    }
> 
>    ... mess with your data ...
> 
> Cheers
> Dave
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.