We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
When I build the following program,I get a warning. *** WARNING L15: MULTIPLE CALL TO SEGMENT SEGMENT: ?PR?FUNC?H CALLER1: ?PR?TASK1?H CALLER2: ?PR?TASK2?H The configuration of RTX51-Tiny is, ; Define Round-Robin Timeout in Hardware-Timer ticks. TIMESHARING EQU 0 ; default is 5 Hardware-Timer ticks. ; ; 0 disables Round-Robin Task Switching ; Will my program run correctly? How can I remove the warning? Thanks. hylnew@tom.com
//////////////////////////////////////////////////////////// //filename: h.c #include <rtx51tny.h> // unsigned char func(bit d) { if(d)return (0); else return (1); } // void init(void) _task_ 0 { os_create_task(1); os_create_task(2); os_delete_task(0); } // void task1(void) _task_ 1 { while(1){ os_wait(K_TMO,10,0); func(0); } } // void task2(void) _task_ 2 { while(1){ os_wait(K_TMO,10,0); func(1); } } ////////////////////////////////////////////////////////////