Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12745 Discussions

NIOS MicroC OS C code question

MK_ABQ
New Contributor III
608 Views

Hello all,

I am looking at an existing C code of NIOS II RTOS microC/OS-II. I see a bunch of OSTimeDly(1); being used in the code. 

How do I determine how long is the time delay? is it 1 second or 1 microsecond or does it account to some other number? can you help?

 

thanks,

MK

0 Kudos
1 Solution
BoonBengT_Altera
Moderator
553 Views

Hi @MK_ABQ,


Thank you for posting in Intel community forum and hope all is well.

Per understand the actual time duration of delay task by 1 ticks which usually defined in the BSP.

Perhaps you can check if it being defined under the files os_cfg.h


Note: Usually OSTimeDly(1) means delay this task for 10 ms


Best Wishes

BB


View solution in original post

3 Replies
BoonBengT_Altera
Moderator
554 Views

Hi @MK_ABQ,


Thank you for posting in Intel community forum and hope all is well.

Per understand the actual time duration of delay task by 1 ticks which usually defined in the BSP.

Perhaps you can check if it being defined under the files os_cfg.h


Note: Usually OSTimeDly(1) means delay this task for 10 ms


Best Wishes

BB


BoonBengT_Altera
Moderator
526 Views

Hi @MK_ABQ,


Greetings, just checking in to see if there is any further doubts in regards to this matter.

Hope your doubts have been clarified.


Best Wishes

BB


0 Kudos
BoonBengT_Altera
Moderator
473 Views

Hi @MK_ABQ,


Great! Good to know that your doubts has been clarified, with no further clarification on this thread, it will be transitioned to community support for further help on doubts in this thread. Please login to ‘ https://supporttickets.intel.com/s/?language=en_US’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.

Thank you for the questions and as always pleasure having you here.


Best Wishes

BB


0 Kudos
Reply