On Thu, Jul 21, 2011 at 09:43:33AM +0800, Xiaofan Chen wrote:
> On Wed, Jul 20, 2011 at 12:55 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> > On Wed, Jul 20, 2011 at 7:49 AM, Daniel Beer <dlb...@gmail.com> wrote:
> >> If your device is one that needs to be accessed via USB (no tty
> >> support), then you might have more luck using MinGW and libusb-win32:
> >>
> >>    http://sourceforge.net/apps/trac/libusb-win32/wiki
> >>
> >> Although I haven't actually tried this...
> >
> > Cygwin should work with libusb-win32 as well.
> >
> > If MinGW is to be used, there are a bit of changes needed.
> >
> 
> I think it is possible to fix mspdebug for MinGW and that is
> probably worth the time to fix.
> 
> 1) termios.h missing: either replace it or with gnulib.
> 2) elf.h: replace it?
> 3) regex.h: this can be fixed with MinGW
> 
> 4) socket: sys/socket.h can be replaced by WinSock.
> 
> gdbc.c:
> 
> #include <stdlib.h>
> #include <string.h>
> #include <errno.h>
> #include <sys/types.h>
> #include <unistd.h>
> 
> #ifdef WIN32
>    #include <winsock.h>
> #else
>    #include <sys/socket.h>
>    #include <netinet/in.h>
>    #include <arpa/inet.h>
>    #include <netdb.h>
> #endif
> 
> 5) sys/ioctl.h: ?

Yep, this is probably doable without too much hassle. elf.h can be
included in the distribution -- it's LGPL and only used for structs
and defines anyway.

Only thing I'm not so sure about is serial port access. I don't have
that much experience programming under Windows, so I'll have to look
into the API.

- Daniel

-- 
D.L. Beer Engineering
www.dlbeer.co.nz

------------------------------------------------------------------------------
5 Ways to Improve & Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to