Commit ab7a6de5 authored by Alberto Escolar Piedras's avatar Alberto Escolar Piedras Committed by Benjamin Cabé
Browse files

drivers/counter/counter_native_sim: Rename from counter_native_posix

Including renaming the DTS binding and kconfig options
deprecating the old one.

Signed-off-by: default avatarAlberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
parent 7ffd6987
Loading
Loading
Loading
Loading
+1 −1
Changes for boards/native/native_sim/native_sim.dts: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -170,7 +170,7 @@

	counter0: counter {
		status = "okay";
		compatible = "zephyr,native-posix-counter";
		compatible = "zephyr,native-sim-counter";
	};

	gpio0: gpio_emul {
+1 −1
Changes for drivers/counter/CMakeLists.txt: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ zephyr_library_sources_ifdef(CONFIG_COUNTER_MCUX_TPM counter_mcux_tpm
zephyr_library_sources_ifdef(CONFIG_COUNTER_XEC                 counter_mchp_xec.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_MCUX_LPTMR          counter_mcux_lptmr.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_MAXIM_DS3231        maxim_ds3231.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_NATIVE_POSIX        counter_native_posix.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_NATIVE_SIM          counter_native_sim.c)
zephyr_library_sources_ifdef(CONFIG_USERSPACE                   counter_handlers.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_NXP_PIT             counter_nxp_pit.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_XLNX_AXI_TIMER      counter_xlnx_axi_timer.c)
+1 −1
Changes for drivers/counter/Kconfig: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ source "drivers/counter/Kconfig.mcux_lptmr"

source "drivers/counter/Kconfig.maxim_ds3231"

source "drivers/counter/Kconfig.native_posix"
source "drivers/counter/Kconfig.native_sim"

source "drivers/counter/Kconfig.nxp_pit"

+0 −17
Changes for drivers/counter/Kconfig.native_posix: 0 added lines, 17 removed lines.
Original line number Diff line number Diff line
# Copyright (c) 2020, Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

config COUNTER_NATIVE_POSIX
	bool "Counter on COUNTER_0"
	default y
	depends on DT_HAS_ZEPHYR_NATIVE_POSIX_COUNTER_ENABLED

config COUNTER_NATIVE_POSIX_FREQUENCY
	int "native_posix counter frequency in Hz"
	default 1000
	depends on COUNTER_NATIVE_POSIX

config COUNTER_NATIVE_POSIX_NBR_CHANNELS
	int "native counter, number of channels"
	default 4
	depends on COUNTER_NATIVE_POSIX
+29 −0
Changes for drivers/counter/Kconfig.native_sim: 29 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Copyright (c) 2020, Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

config COUNTER_NATIVE_SIM
	bool "Counter on COUNTER_0"
	default y
	depends on (DT_HAS_ZEPHYR_NATIVE_SIM_COUNTER_ENABLED || DT_HAS_ZEPHYR_NATIVE_POSIX_COUNTER_ENABLED)

config COUNTER_NATIVE_SIM_FREQUENCY
	int "native_sim counter frequency in Hz"
	default COUNTER_NATIVE_POSIX_FREQUENCY
	depends on COUNTER_NATIVE_SIM

config COUNTER_NATIVE_SIM_NBR_CHANNELS
	int "native_sim counter: number of channels"
	default COUNTER_NATIVE_POSIX_NBR_CHANNELS
	depends on COUNTER_NATIVE_SIM

config COUNTER_NATIVE_POSIX
	bool "Counter on COUNTER_0 (deprecated)"
	select DEPRECATED

config COUNTER_NATIVE_POSIX_FREQUENCY
	int "native_posix counter frequency in Hz (deprecated)"
	default 1000

config COUNTER_NATIVE_POSIX_NBR_CHANNELS
	int "native counter, number of channels (deprecated)"
	default 4
Loading