Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-8946

The scheduler cannot be called from inside a HwiP_disable in a task context

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • TI Device Drivers
    • TIDRIVERS-1485
    • 3.50.00
    • 3.60.00
    • Hide
      Consider the code block below

      void foo()
      {
          key = HwiP_disable();
          Sem_Post(handle);
          HwiP_restore(key);
      }
      If this is executed from a task context, the Sem_post() will invoke the scheduler. If a higher priority task is ready to run, it will pre-empt the calling task. When the Sem_post() returns, hardware interrupts will be re-enabled.
      Show
      Consider the code block below void foo() {     key = HwiP_disable();     Sem_Post(handle);     HwiP_restore(key); } If this is executed from a task context, the Sem_post() will invoke the scheduler. If a higher priority task is ready to run, it will pre-empt the calling task. When the Sem_post() returns, hardware interrupts will be re-enabled.

      The scheduler cannot be called from inside a HwiP_disable in a task context

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: