This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Delays in RTX kernel and configuration

Hi, Iam working on LPC248 OEM board ,where iam testing the delays in RTX kernel.

In configuration file i set the value as shown below.

#define OS_TICK        10000

Can anybody explain what is the meaning of this?

In

os_dly_wait(100)

i kept 100 as sytem ticks.

The above delay work as 1sec delay.

My aim is to get the delay of 1sec ,what are the changes i needed in configuration file?

Parents
  • In configuration file i set the value as shown below.

    #define OS_TICK 10000

    Can anybody explain what is the meaning of this?

    This is the number of micro-seconds per timer tick

    If you make it 1000000 your tick would be 1 second (That is if your timer has enough range to handle this). 10ms is a fairly good default value for the OS_TICK. 1 could easily be too long.

    os_dly_wait(100) is a delay of 1 second. Do you really want to change something so that you can do os_dly_wait(1) and have a 1 second wait?

    I don't know your specific part, but Real-Time clocks are usually used to give you 1 second ticks and you could easily set up a mechnism to delay based on that clock (and still keep your 10ms timer for the OS)

Reply
  • In configuration file i set the value as shown below.

    #define OS_TICK 10000

    Can anybody explain what is the meaning of this?

    This is the number of micro-seconds per timer tick

    If you make it 1000000 your tick would be 1 second (That is if your timer has enough range to handle this). 10ms is a fairly good default value for the OS_TICK. 1 could easily be too long.

    os_dly_wait(100) is a delay of 1 second. Do you really want to change something so that you can do os_dly_wait(1) and have a 1 second wait?

    I don't know your specific part, but Real-Time clocks are usually used to give you 1 second ticks and you could easily set up a mechnism to delay based on that clock (and still keep your 10ms timer for the OS)

Children