Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Relays code not compiling (http://www.chiefdelphi.com/forums/showthread.php?t=69179)

dpeterson3 14-09-2008 22:02

Relays code not compiling
 
I know new programmers really shouldn't play with Beta code, but I had to. I am trying to port last year's code to Kevin Watsons' new MCC18 3.0+ code. I called the Generate_Relay function like in the old code, and get this error.
Code:

MPLINK 4.21, Linker
Copyright (c) 2008 Microchip Technology Inc.
Error - could not find definition of symbol 'Generate_Relay' in file './drttest.o'.
Errors    : 1

Is there a Generate_Relay function in the new code or do I need to make one? I didn't see one in the old code, but I could have just missed it.

Qbranch 15-09-2008 00:20

Re: Relays code not compiling
 
I don't remember there being a "Generate_Relay" function in the old base code. The Relay output pins have no muxes, etc. between them and the user processor, as far as I know they're actually directly tied to the processor's pins.

i.e. relay1_fwd = LATEbits.LATE0

You shouldn't have to call anything.

-q

dpeterson3 15-09-2008 06:47

Re: Relays code not compiling
 
Thanks. I guess I missed it reading through last year's code. I read through all the user stuff. However, the original programmer did not bother commenting his code well. I will look again. It has to be there somewhere. At least I know it is not something standard. Now I have an idea of where to look.


All times are GMT -5. The time now is 00:06.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi