AnsweredAssumed Answered

liner error

Question asked by Ondrej Machek on Feb 22, 2009
Latest reply on Feb 25, 2009 by Ondrej Machek

Hello

I have problem with my program. If I would like compile my program, Linker  show error.

Symbol _FSFLOAT

Symbol _FMUL

Symbol _FSTRUC

Symbol _FDIV

.

.

.

 

 

 

/*MEM hlavickovy soubor*/
#ifndef _MEM_
#define _MEM_


  #define F_OSC 16
  #define F_BUS 8
  #define T_BUS .125

int Initi(int);

#endif

 

 

 

 

 

/*mem.c */
#include "eeprommm.h"
#include <mc9s12dp256.h>
#pragma LINK_INFO DERIVATIVE "mc9s12dp256b"


int Initi(int oscclk){
  unsigned char prdclk;
  float eeclk = 0;
  int pom = 0;
 
  ECLKDIV_PRDIV8 = 0;
 
  if(oscclk >=12){                      /*MHz*/
    ECLKDIV_PRDIV8 = 1;
    prdclk = (unsigned char)(oscclk/8);
  }else{
    prdclk = (unsigned char)(oscclk*(5+.125));
  } 
 
  pom = (int)(oscclk*(5+.125));
  ECLKDIV_EDIV = (unsigned char)pom;
  eeclk = 2/(1+pom);
 
  if((((1/eeclk)+T_BUS) >= 5) && (eeclk > .15)){
    return 0;                                             /*ok*/
  } else{
    return 1;                                             /*bad*/
  }
}

Outcomes