mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-22 04:45:22 +00:00
Adds native_posix hw counter model and the counter driver. Functionality is needed by software which is tested on native_posix and has dependency on counter. Hardware model was developed similarly to HW timer model. The counter driver wraps HW counter functions and exposes basic functionalities: starting, stopping, setting and cancelling single channel alarms. Code was tested against: tests/drivers/counter/counter_basic_api. Signed-off-by: Filip Zajdel <filip.zajdel@nordicsemi.no>
13 lines
340 B
Plaintext
13 lines
340 B
Plaintext
# Copyright (c) 2020, Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config COUNTER_NATIVE_POSIX
|
|
bool "Enable counter on COUNTER_0"
|
|
default y
|
|
depends on BOARD_NATIVE_POSIX
|
|
|
|
config COUNTER_NATIVE_POSIX_FREQUENCY
|
|
int "native_posix counter frequency in Hz"
|
|
default 1000
|
|
depends on COUNTER_NATIVE_POSIX
|