View Single Post
  #11   Spotlight this post!  
Unread 07-02-2005, 17:09
doyler doyler is offline
Rookie / Programmer
#0900 (Infinity)
Team Role: Programmer
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Durham
Posts: 87
doyler is an unknown quantity at this point
Re: Interface with breaker

What should my prototype for Breaker_Tripped() be, and is there any specific place I have to put it?

Code:
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "user_routines_DDT.c" -fo="user_routines_DDT.o" /i"c:\mcc18\h" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\2005 Botcode\user_routines_DDT.c:320:Warning [2058] call of function without prototype

Also, would i put my printf statement to tell me a breaker tripped in the if loop or the for loop?


[edit]
Is it Ok if I just put it right here like this?
The compiler is happy

Code:
/*******************************************************************************
* FUNCTION NAME: Process_Data_From_Master_uP
* PURPOSE:       Executes every 26.2ms when it gets new data from the master 
*                microprocessor.
* CALLED FROM:   main.c
* ARGUMENTS:     none
* RETURNS:       void
*******************************************************************************/
void Process_Data_From_Master_uP(void)
{
  static unsigned char i;
  static unsigned char delay;
  unsigned char Breaker_Tripped(unsigned char id);
[/edit]
__________________

Last edited by doyler : 07-02-2005 at 18:31.