QP-nano  6.9.0
Real-Time Embedded Framework
qpn.h File Reference

QP-nano public interface including backwards-compatibility layer. More...

#include "qpn_conf.h"
#include "qfn_port.h"
#include "qassert.h"

Go to the source code of this file.

Macros

#define QP_API_VERSION   0
 
#define QMActive_ctor   QActive_ctor
 
#define QMsm_ctor   QHsm_ctor
 

Typedefs

typedef QActiveCB QMActiveCB
 
typedef QActive QMActive
 
typedef QHsm QMsm
 

Macro Definition Documentation

◆ QP_API_VERSION

#define QP_API_VERSION   0
Description
This header file must be included directly or indirectly in all application modules (*.c files) that use QP-nano.

Macro that specifies the backwards compatibility with the QP-nano API version.

Description
For example, QP_API_VERSION=450 will cause generating the compatibility layer with QP-nano version 4.5.0 and newer, but not older than 4.5.0. QP_API_VERSION=0 causes generation of the compatibility layer "from the begining of time", which is the maximum backwards compatibilty. This is the default.

Conversely, QP_API_VERSION=9999 means that no compatibility layer should be generated. This setting is useful for checking if an application complies with the latest QP-nano API.

Definition at line 76 of file qpn.h.

◆ QMActive_ctor

#define QMActive_ctor   QActive_ctor
Deprecated:
QMActive constructor; instead use: QActive_ctor()

Definition at line 93 of file qpn.h.

◆ QMsm_ctor

#define QMsm_ctor   QHsm_ctor
Deprecated:
QMsm state machine constructor; instead use: QHsm_ctor()

Definition at line 96 of file qpn.h.

Typedef Documentation

◆ QMActiveCB

Deprecated:
QMActive Control Block; instead use: QActiveCB.

Definition at line 84 of file qpn.h.

◆ QMActive

typedef QActive QMActive
Deprecated:
QMActive; instead use: QActive.

Definition at line 87 of file qpn.h.

◆ QMsm

typedef QHsm QMsm
Deprecated:
QMsm state machine; instead use: QHsm.

Definition at line 90 of file qpn.h.