zephyr/drivers/counter
Manuel Argüelles 595a9c11c8 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: Manuel Argüelles <manuel.arguelles@nxp.com>
2023-11-09 18:21:19 +01:00
..
CMakeLists.txt drivers: counter: Add support for rpi_pico timer 2023-09-13 16:18:44 +02:00
counter_ace_v1x_art.c device: remove redundant init functions 2023-04-19 10:00:25 +02:00
counter_ace_v1x_art_regs.h drivers: ace_v1x wallclock driver 2022-09-06 17:44:03 +02:00
counter_ace_v1x_rtc.c drivers: counter: align ace rtc get_value with api 2023-02-20 11:13:45 +01:00
counter_ace_v1x_rtc_regs.h drivers: ace_v1x wallclock driver 2022-09-06 17:44:03 +02:00
counter_ambiq_timer.c drivers: counter: Add Ambiq counter driver 2023-08-07 16:12:58 +02:00
counter_andes_atcpit100.c drivers: counter: add missing includes 2022-10-13 00:07:37 +09:00
counter_cmos.c device: remove redundant init functions 2023-04-19 10:00:25 +02:00
counter_dw_timer.c drivers: counter: add snps apb timer 2023-08-16 10:20:31 +02:00
counter_esp32_rtc.c soc: xtensa,riscv: esp32xx: refactor folder structure 2023-07-25 18:12:33 +02:00
counter_esp32_tmr.c soc: xtensa,riscv: esp32xx: refactor folder structure 2023-07-25 18:12:33 +02:00
counter_gd32_timer.c treewide: Update clock control API usage 2023-04-05 10:55:46 +02:00
counter_gecko_rtcc.c devices: constify device pointers initialized at compile time 2022-08-22 17:08:26 +02:00
counter_gecko_stimer.c drivers: counter: gecko: Add SYSRTC stimer support 2023-08-09 08:24:52 +00:00
counter_handlers.c syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
counter_ifx_cat1.c drivers: counter: cat1: Fix formatting issues 2023-08-10 08:13:11 +00:00
counter_imx_epit.c drivers: counter: add missing includes 2022-10-13 00:07:37 +09:00
counter_ll_stm32_rtc.c drivers: counter: Add support for stm32wba devices 2023-11-08 15:11:27 +00:00
counter_ll_stm32_timer.c drivers: counter: stm32: void return value from reset_line_toggle_dt 2023-07-20 10:57:12 +00:00
counter_mchp_xec.c arm: add missing includes 2022-10-11 18:37:53 -04:00
counter_mcux_ctimer.c include: add missing irq.h include 2022-10-11 18:05:17 +02:00
counter_mcux_gpt.c barriers: Move __DSB() to the new API 2023-05-24 13:13:57 -04:00
counter_mcux_lpc_rtc.c drivers: counter: Update NXP LPC RTC timer 2023-11-06 10:09:33 +01:00
counter_mcux_lptmr.c drivers: counter: add missing includes 2022-10-13 00:07:37 +09:00
counter_mcux_pit.c counter: nxp_pit: use clock control to obtain module's clock rate 2023-09-22 09:23:30 +02:00
counter_mcux_qtmr.c barriers: Move __DSB() to the new API 2023-05-24 13:13:57 -04:00
counter_mcux_rtc.c include: add missing sys_clock.h include 2022-10-11 18:05:17 +02:00
counter_mcux_snvs.c include: add missing irq.h include 2022-10-11 18:05:17 +02:00
counter_native_posix.c drivers: counter native: Add top value conf and multi channel support 2023-10-23 13:38:43 +02:00
counter_nrfx_rtc.c counter: counter_nrfx_rtc: Align to renamed nrfx symbols 2023-05-05 11:47:53 +02:00
counter_nrfx_timer.c drivers: counter: Adapt to use device tree 2023-03-20 16:59:40 +01:00
counter_nxp_s32_sys_timer.c counter: nxp_s32_sys_timer: use instance-based DT macros 2023-11-09 18:21:19 +01:00
counter_rpi_pico_timer.c drivers: counter: Add support for rpi_pico timer 2023-09-13 16:18:44 +02:00
counter_sam0_tc32.c drivers: counter: add missing includes 2022-10-13 00:07:37 +09:00
counter_sam_tc.c treewide: Update clock control API usage 2023-04-05 10:55:46 +02:00
counter_smartbond_timer.c drivers: counter: Fix Smartbond counter get_rate 2023-09-20 20:17:11 +01:00
counter_timer_shell.c drivers: counter: Add shell commands for timer 2023-08-16 10:20:31 +02:00
counter_xlnx_axi_timer.c include: add missing irq.h include 2022-10-11 18:05:17 +02:00
dualtimer_cmsdk_apb.h drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
Kconfig drivers: counter: Add support for rpi_pico timer 2023-09-13 16:18:44 +02:00
Kconfig.ace drivers: ace_v1x wallclock driver 2022-09-06 17:44:03 +02:00
Kconfig.ambiq drivers: counter: Add Ambiq counter driver 2023-08-07 16:12:58 +02:00
Kconfig.andes_atcpit100 drivers: counter: add Andes atcpit100 counter driver 2022-08-26 11:55:36 +02:00
Kconfig.cmos drivers: rtc: rtc_mc146818: Added RTC driver for Motorola MC146818B 2023-04-27 14:15:22 +02:00
Kconfig.dtmr_cmsdk_apb drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.dw drivers: counter: add snps apb timer 2023-08-16 10:20:31 +02:00
Kconfig.esp32_rtc esp32: driver: counter: add RTC-based implementation 2022-07-27 09:48:33 +02:00
Kconfig.esp32_tmr esp32: drivers: counter: update build references 2022-08-04 15:30:18 +02:00
Kconfig.gd32 drivers: counter: add support for GD32 timer 2022-12-12 10:08:12 +01:00
Kconfig.gecko drivers: counter: gecko: Add SYSRTC stimer support 2023-08-09 08:24:52 +00:00
Kconfig.ifx_cat1 drivers: counter: Add Infineon CAT1 counter driver 2023-07-26 09:10:31 +02:00
Kconfig.imx_epit drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.maxim_ds3231 lib: notify: build sys-notify conditionally. 2022-10-03 10:18:15 +02:00
Kconfig.mcp7940n drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_ctimer drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_gpt drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_lpc_rtc drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_lptmr drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_pit drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_qtmr drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_rtc drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_snvs drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.native_posix drivers: counter native: Add top value conf and multi channel support 2023-10-23 13:38:43 +02:00
Kconfig.nrfx drivers: counter: Adapt to use device tree 2023-03-20 16:59:40 +01:00
Kconfig.nxp_s32 counter: nxp_s32_sys_timer: use clock control APIs 2023-09-29 16:29:31 +02:00
Kconfig.rpi_pico drivers: counter: Add support for rpi_pico timer 2023-09-13 16:18:44 +02:00
Kconfig.sam drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.sam0 drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.smartbond_timer drivers: counter: Add Smartbond basic support 2023-07-05 13:00:50 +02:00
Kconfig.stm32_rtc counter: stm32 rtc: handle sub second registers 2023-09-26 15:05:35 +02:00
Kconfig.stm32_timer drivers: counter: Reset timer using RCC before initialization 2022-12-09 09:43:36 -08:00
Kconfig.tmr_cmsdk_apb drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.xec drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.xlnx drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
maxim_ds3231.c syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
rtc_mcp7940n.c drivers: gpio: use gpio_is_ready_dt helper function 2023-08-28 08:48:35 -05:00
timer_cmsdk_apb.h drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
timer_dtmr_cmsdk_apb.c treewide: Update clock control API usage 2023-04-05 10:55:46 +02:00
timer_tmr_cmsdk_apb.c treewide: Update clock control API usage 2023-04-05 10:55:46 +02:00