8 Software TImers Flashcards

1
Q

What is a software timer?

A

A softwire timer is a timer that doesn’t use any additional hardware resources, it can be set to one shot or auto-reload. The software timer is implemented int the daemon task.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Where is the software timer implemented?

A

The software task is implemented in the daemon task.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When does the software timer use cpu processing time?

A

The software only uses cpu processing time when the software timer callback function is executing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When will the software callback function execute?

A

Once the software timer period expires.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the daemon task?

A

The daemon task is ran in the kernel on the beginning of the scheduler.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How many States does a software timer have?

A

2, Dormant and Running.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Explain the dormant state

A

Dormant – Software timer exists but isn’t running. State when timer is created (xTimerCreate) or stopped (xTimerStop).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Explain the running state

A

Running – State after starting (xTimerStart), resetting (xTimerReset), or changing timer period (xTimerChangePeriod). Timer callback will execute after the timer period has elapsed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Create a software timer.

A

xTimerCreate(“OneShot Timer”, pdMS_TO_TICKS(2000), pdFALSE, 0, oneShotTimerCallback)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What API calls are there to control a software timer?

A

xTimerStart() to start the timer.
xTimerStop() to stop the timer.
xTimerReset() to reset the timer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly