All Forums
 Microsoft Windows CE
 CE Drivers
 GPIO_OFFSET used in BusPower function
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

sser

4 Posts

Posted - 26 Nov 2003 :  18:35:51  Show Profile  Email Poster
I plan to call the BusPower function of Adscf2.cpp in my application. But the complier complains that the GPIO_OFFSET, listed in line "pGPIO += (GPIO_OFFSET / sizeof(DWORD));", is undefined. What shall GPIO_OFFSET be defined?

ctacke

877 Posts

Posted - 26 Nov 2003 :  19:01:52  Show Profile  Email Poster
Have you made a modification to the source file itself? adscf2.cpp should have

#include "adscf2.h"

at the top, and in adscf2.h you'll find the following:

#define GPIO_OFFSET 0x1000

Go to Top of Page

Susan

123 Posts

Posted - 01 Dec 2003 :  07:02:42  Show Profile  Email Poster
I just downloaded the zip file for the above. The header file is time-stamped mid-August, while the source file is dated late October. The header file is also marked as read-only and is probably the reason it didn't get replaced. GPIO_OFFSET is not in the header file.

Go to Top of Page

ctacke

877 Posts

Posted - 01 Dec 2003 :  11:43:22  Show Profile  Email Poster
Thanks for the note. Indeed the zip download had an old version of the header file. I've updated the zip with the correct header file and reposted it at Topic 845.
Go to Top of Page

t0671dl

27 Posts

Posted - 01 Dec 2003 :  15:07:03  Show Profile  Email Poster
In reading Susan's comment I was wondering if I had the right version of the code.
I will check your updated post.

Edited by - t0671dl on 01 Dec 2003 15:09:56
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000