Task Example for Nios 2

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Locked
Nautilus85

Task Example for Nios 2

Post by Nautilus85 »

Hello

In your API Toutorial for the nios 2 processor (DEMO)(Christmas Tree)
the task 2 only works by pressing a button.
How must i make it that it is automatically switching between task 1 and task 2. (without pressing a button)

best regards
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re:Task Example for Nios 2

Post by paolo.gai »

To activate Task2 from Task1, you can:

- call ActivateTask to activate at any point the other task
- if using BCC1, BCC2, ECC1, ECC2, you can substitute the TerminateTask with a ChainTask

Ciao,

PJ
Locked