QP-nano
Functions
qfn_init.c File Reference
#include "qpn_port.h"

Go to the source code of this file.

Functions

void QF_init (void)
 QF-nano initialization.

Detailed Description

QF-nano implementation.

Definition in file qfn_init.c.


Function Documentation

void QF_init ( void  )

QF-nano initialization.

This function initializes the internal QF variables as well as all registered active objects to zero. In the C startup code compliant with the C Standard this clearing of internal valiables is unnecessary, because all static variables are supposed to be cleared in the startup code. However in non-compliant implementations calling QF_init() can be very handy.

Note:
Function QF_init() is defined in the separate module qf_init.c, which needs to be included in the build only if the non-standard initialization is required.

Definition at line 38 of file qfn_init.c.

References QActive::head, QActive::nUsed, Q_ASSERT, Q_ROM_PTR, QF_active, QF_MAX_ACTIVE, QF_readySet_, QK_currPrio_, QActive::tail, and QActive::tickCtr.