Esempio n. 1
0
 protected internal override void executeInterrupt()
 {
     if (Enabled)
     {
         for (int id = minIndex; id <= maxIndex; id++)
         {
             SubIntrHandler subIntrHandler = getSubIntrHandler(id);
             if (subIntrHandler != null && subIntrHandler.Enabled)
             {
                 IntrManager.Instance.pushAllegrexInterruptHandler(subIntrHandler);
             }
         }
     }
 }
Esempio n. 2
0
        public virtual void addSubIntrHandler(int id, SubIntrHandler subIntrHandler)
        {
            if (id >= subInterrupts.Count)
            {
                subInterrupts.Capacity = id + 1;
            }

            if (id < minIndex)
            {
                minIndex = id;
            }
            if (id > maxIndex)
            {
                maxIndex = id;
            }

            subInterrupts[id] = subIntrHandler;
        }