AnsweredAssumed Answered

How do I call normal functions with page memory

Question asked by 可贺 杜 on Jul 23, 2020
Latest reply on Aug 11, 2020 by lama

hello,

my Project.prm:

PAGED_RAM_SCIBUFF1 INTO  RAM_F1;

...

 

my SCI.c:

 

#pragma DATA_SEG __GPAGE_SEG PAGED_RAM_SCIBUFF1
unsigned char Buffer_SCI_Receive[2048] = {0};
#pragma DATA_SEG DEFAULT

 

if I want to use a function, the function :

Fun(unsigned char * __far buf);

 

I can use it this way :

Fun(Buffer_SCI_Receive);

 

but,

 

if I use some else  .c file , Maybe it's from a colleague or Maybe it was downloaded from the Internet.

Their function most is FUN1(unsigned char * buf);

 

I can't just use it like that : FUN1(Buffer_SCI_Receive);

it will Pointer to the loss.

 

How do I use it.

Outcomes