GPIO in Visual C#

This forum is for users of Atmel's SAM Series and who are interested in using WinCE OS.

Moderator: nferre

GDV
Posts: 12
Joined: Wed Jul 21, 2010 5:09 pm

GPIO in Visual C#

Wed Nov 24, 2010 5:35 pm

Hi,

Has anybody out there ever tried to access the GPIO lines on an AT91SAM9260-EK, runinng .NET CF2 and Visual C#?

I've been looking at the GPIO example shown by Adeneo on this forum, but it's a bit meaningless in .NET and it seems a complete overkill just to set or read a port pin!

Is there a simple solution to this problem?

Thanks.
GDV
Posts: 12
Joined: Wed Jul 21, 2010 5:09 pm

Re: GPIO in Visual C#

Tue Nov 30, 2010 4:08 pm

This is frustrating!

Has no one on this forum ever tried to control IO lines on their processors from Visual C# before?

I've searched on the internet for an example and have found nothing that is helpful.

Adeneo, you guys wrote the BSP for the AT91SAM9260-EK. Are you able to assist me with my query please?

I see that there is a gpio.dll in the WinCE6 \Release directory. How does one make use of this dll in Visual C#??

Thank you.
CptTitanic
Posts: 877
Joined: Sat Oct 30, 2010 6:04 pm

Re: GPIO in Visual C#

Tue Nov 30, 2010 4:24 pm

Try a more heavily trafficked WinCE forum?

Pretty sure you are going to have to map memory, and talk to the mapping. If you want it "simple" you wouldn't be doing it in user space.
phungn
Posts: 5
Joined: Fri Aug 27, 2010 3:32 am

Re: GPIO in Visual C#

Thu Aug 18, 2011 8:06 am

Hi,
From .net app, you can use P-Invoke to call into the C/C++ dll.
Remember to add the .Net Compact Framework 2.0 or 3.5 component to your image.

Good luck

Return to “WinCE”

Who is online

Users browsing this forum: No registered users and 1 guest