I am working on a small cooperative scheduler for a 9s08 project. The scheduler dynamically fills an array of structures with information for each task to be run by the scheduler. One of the pieces of data is a function pointer to the target task. The function pointer definition in the struct looks like this: unsigned int (*pTask)();
The complier (CW Dev Studio V6.2) does not emit a peep during compile/link. But, when running debug on the hardware and stepping through the function that is supposed to pickup the functional pointer and launch the function we investigate the structure at the point where the code picks up the pointer and see: "undefined function () returning unisgned int. Should the functional pointer in the struct be declared as a __far since the target function is not in the local data area? Any help would be appreciated. Thanks in advance.