Reference Manual For QP/C++ 8.1.6
Loading...
Searching...
No Matches
qs_port.hpp File Reference

Super-template of the QS port. More...

#include "qp_port.hpp"
#include "qs.hpp"

Go to the source code of this file.

Macros

#define QS_OBJ_PTR_SIZE   4U
 Object pointer size in bytes (depends on the CPU).
#define QS_FUN_PTR_SIZE   4U
 function pointer size in bytes (depends on the CPU)

Detailed Description

Super-template of the QS port.

Details

This file is the super-template of the QS port. It defines, in one place, every element of the QS port interface (all QS ports define the same elements), with one representative definition each.

Attention
This file is a super-template, which is NOT compilable as is (it starts with an #error directive). It collects all QS port-specific customizations, with exactly one representative definition of each customizable element. To create an actual port, copy the file, adapt the pointer sizes to the CPU and compiler (and delete anything that does not apply), and delete the #error directive.
Remarks
QS might be used with or without the other QP/C++ Framework components, in which case the separate definitions of the macros QS_CRIT_STAT, QS_CRIT_ENTRY(), and QS_CRIT_EXIT() are needed. In this sample port QS is configured to be used with the other QP component, by simply including qp_port.hpp before qs.hpp.

Backward Traceability

Definition in file qs_port.hpp.

Macro Definition Documentation

◆ QS_OBJ_PTR_SIZE

#define QS_OBJ_PTR_SIZE   4U

Object pointer size in bytes (depends on the CPU).

Details

  • 2U => 2 bytes
  • 4U => 4 bytes (default)
  • 8U => 8 bytes
Note
QS_OBJ_PTR_SIZE depends on the CPU/Compiler and is defined in qs_port.h. It cannot be overridden in qp_config.h.

Applicability

This element is defined in all QS ports (qs_port.hpp).

Backward Traceability

Definition at line 66 of file qs_port.hpp.

◆ QS_FUN_PTR_SIZE

#define QS_FUN_PTR_SIZE   4U

function pointer size in bytes (depends on the CPU)

Details

  • 2U => 2 bytes
  • 4U => 4 bytes (default)
  • 8U => 8 bytes
Note
QS_FUN_PTR_SIZE depends on the CPU/Compiler and is defined in qs_port.h. It cannot be overridden in qp_config.h.

Applicability

This element is defined in all QS ports (qs_port.hpp).

Backward Traceability

Definition at line 69 of file qs_port.hpp.