Hi,
Using an IAR IDE and In the process of implementing a mechanism to send data to Bluetooth client, I am trying to make a free memory pointer external so that I can pass the data when the BTPSAPI SPP_Event_Callback(...) is executed in the StoneStreet One Bluetopia stack.
I added this code below . I am getting and error of :
Error(e46) Undefined external "extern_memory_pntr_str_1"
Let me know if anyone ran into this issue.
Thanks,
Armen.
here is the code....
typedef struct {
int data_array[400];
int field2;
} extern_memory_pntr_str_t;
extern extern_memory_pntr_str_t *extern_memory_pntr_str_1;
if ((extern_memory_pntr_str_1 = (extern_memory_pntr_str_t *)BTPS_AllocateMemory(sizeof(extern_memory_pntr_str_t)))!= NULL){
for (jok=0; jok<400; jok++){
extern_memory_pntr_str_1->data_array[jok] = jok;
}
}