This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Call RTX-51 tiny function in a function?

Can I call RTX-51 tiny function in my function that was called in my task?
Example:

   void function1 (void)
   {
        os_wait (...) 
       .......
   }

   void task0 (void) _task_ 0
   {
       .....
       function1();
       .....
    }
    

Thanks for reading.

Parents
  • Hello Reinhard Keil,
    I want to add some more features to the current RTX-51 Tiny, so I'll need to call RTX-51 tiny functions in my own function.
    I want to ask if my function can be called from more than 1 task?
    Example:

          void function1 (void) reentrant
          {
               ....
               os_wait (...);
               ....
          }
    
          void task1 (void) _task_ 1
          {
              while (1)
              {
                    ....
                    function1 ();
                    ....
               }
           }
    
           void task2 (void) _task_ 2
           {
               while (1)
               {
                   ....
                   function1 ();
                   ....
                }
            }
    

Reply
  • Hello Reinhard Keil,
    I want to add some more features to the current RTX-51 Tiny, so I'll need to call RTX-51 tiny functions in my own function.
    I want to ask if my function can be called from more than 1 task?
    Example:

          void function1 (void) reentrant
          {
               ....
               os_wait (...);
               ....
          }
    
          void task1 (void) _task_ 1
          {
              while (1)
              {
                    ....
                    function1 ();
                    ....
               }
           }
    
           void task2 (void) _task_ 2
           {
               while (1)
               {
                   ....
                   function1 ();
                   ....
                }
            }
    

Children