Skip to content
Commit 595a9c11 authored by Manuel Argüelles's avatar Manuel Argüelles Committed by Carles Cufi
Browse files

counter: nxp_s32_sys_timer: use instance-based DT macros



At present, many of the NXP S32 shim drivers do not make use of
devicetree instance-based macros because the NXP S32 HAL relies on an
index-based approach, requiring knowledge of the peripheral instance
index during both compilation and runtime, and this index might not
align with the devicetree instance index.

The proposed solution in this patch eliminates this limitation by
determining the peripheral instance index during compilation
through macrobatics and defining the driver's ISR within the shim
driver itself.

Note that for some peripheral instances is needed to redefine the
HAL macros of the peripheral base address, since the naming is not
uniform for all instances.

Signed-off-by: default avatarManuel Argüelles <manuel.arguelles@nxp.com>
parent 5cdd3773
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment