Toolchain Abstraction API#

PP_UNUSED_PARAM()#

Description#

Removes warning associated to a function parameter being present but not referenced in a given function.

Files#

lib_mem.h/lib_mem.c

Prototype#

    PP_UNUSED_PARAM (param)

Arguments#

param

Parameter that is unused.

Returned Value#

None.

Notes / Warnings#

  1. This macro can be overriden by defining it first in the compiler options.

PP_ALIGN()#

This macro is deprecated and will be removed in an upcoming release. Use CMSIS __ALIGN instead.

Description#

Forces variable to be aligned on specific memory multiple.

Files#

lib_mem.h/lib_mem.c

Prototype#

    PP_ALIGN (_variable, _align)

Arguments#

_variable

Variable to align.

_align

Alignment required, in bytes.

Returned Value#

None.

Notes / Warnings#

  1. This macro can be overriden by defining it first in the compiler options.

PP_ISR_DECL()#

This macro is deprecated and will be removed in an upcoming release.

Description#

Declare a function, indicating to the compiler it is an ISR.

Files#

lib_mem.h/lib_mem.c

Prototype#

    PP_ISR_DECL (_isr)

Arguments#

_isr

The ISR function's name.

Returned Value#

None.

Notes / Warnings#

  1. This macro can be overriden by defining it first in the compiler options.

  2. Usage is as follows: PP_ISR_DECL(My_ISR_Function);

PP_ISR_DEF()#

This macro is deprecated and will be removed in an upcoming release.

Description#

Define a function, indicating to the compiler that it is an ISR.

Files#

lib_mem.h/lib_mem.c

Prototype#

    PP_ISR_DEF (_isr)

Arguments#

_isr

The ISR function's name.

Returned Value#

None.

Notes / Warnings#

  1. This macro can be overriden by defining it first in the compiler options.

  2. Usage is as follows: PP_ISR_DEF(My_ISR_Function) { [...] }