Task Example for Nios 2

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Post Reply
Nautilus85
Newbie
Posts: 4
Joined: Thu Nov 27, 2008 7:47 am

Task Example for Nios 2

Post by Nautilus85 » Tue Dec 09, 2008 8:53 pm

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: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re:Task Example for Nios 2

Post by paolo.gai » Tue Dec 09, 2008 9:42 pm

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

Post Reply