oriol pallares

Link Error : Undefined : mcf5xxx_byterev

Discussion created by oriol pallares on Sep 2, 2010
Latest reply on Sep 2, 2010 by Mark Butcher

Help please!

 

typedef unsigned long int hcc_u32;


extern hcc_u32 mcf5xxx_byterev(hcc_u32 val);

#define WR_LE32(a, v) ((*(hcc_u32*)(a))=mcf5xxx_byterev(v))
#define WR_LE16(a, v) ((*(hcc_u16*)(a))=(hcc_u16)(mcf5xxx_byterev(v) >> 16))
#define RD_LE32(a)    (mcf5xxx_byterev(*(hcc_u32*)(a)))
#define RD_LE16(a)    ((hcc_u16)(mcf5xxx_byterev((hcc_u32)*(hcc_u16*)(a))>>16))

 

void main(void) {

  WR_LE32(&BDT_CTL_RX(1,0),1);

}

 

mcf5xxx_byterev is undefined!

Thank you

Outcomes