QP/C  8.0.0
Real-Time Embedded Framework
Loading...
Searching...
No Matches
qs_port.h File Reference

Sample QS/C port. More...

#include "qp_port.h"
#include "qs.h"

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

Sample QS/C port.

Details
This is just an example of a QS port for a 32-bit CPU. Other specific QS ports will define the QS facilities differently.
Remarks
QS might be used with or without the other QP 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.h" before "qs.h".

Definition in file qs_port.h.

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.

Definition at line 28 of file qs_port.h.

◆ 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.

Definition at line 40 of file qs_port.h.