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

QEP/C sample port with all configurable options. More...

#include <stdint.h>
#include <stdbool.h>
#include "qep.h"

Go to the source code of this file.

Macros

#define Q_SIGNAL_SIZE   2U
 
#define Q_NORETURN   __attribute__ ((noreturn)) void
 

Detailed Description

Date
Last updated on: 2023-03-22
Version
Last updated for: Version 7.2.2, 2023-??-??

Definition in file qep_port.h.

Macro Definition Documentation

◆ Q_SIGNAL_SIZE

#define Q_SIGNAL_SIZE   2U

The size (in bytes) of the signal of an event. Valid values: 1U, 2U, or 4U; default 2U

This macro can be defined in the QEP port file (qep_port.h) to configure the QSignal type. When the macro is not defined, the default of 2 bytes is applied in the qep.h header file.

Definition at line 43 of file qep_port.h.

◆ Q_NORETURN

#define Q_NORETURN   __attribute__ ((noreturn)) void

No-return function specifier for the Q_onAssert() callback function.

The Q_NORETURN macro is supposed to be defined in the QP/C port (file qep_port.h). If such definition is NOT provided, the default definition is provided in the qassert.h header file, where it assumes only void type returned from Q_onAssert().

Traceability

Definition at line 55 of file qep_port.h.