Skip to content

Commit 4fc9033

Browse files
MarekPietakapi-no
authored andcommitted
applications: nrf_desktop: Handle report creation outside of hid state
Move the input report creation code outside of HID state module. The HID state will now focus only on maintaining connections to HID subscribers. The formatting of reports as well as collection of required data will be done by distinctive HID report providers. Change also deprecates Kconfig options that are no longer needed. Jira: NCSDK-34095 Signed-off-by: Marek Pieta <[email protected]> Signed-off-by: Pawel Dunaj <[email protected]>
1 parent 8525e35 commit 4fc9033

File tree

2 files changed

+247
-784
lines changed

2 files changed

+247
-784
lines changed

applications/nrf_desktop/src/modules/Kconfig.hid_state

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ menu "HID State"
99
config DESKTOP_HID_STATE_ENABLE
1010
bool "Enable HID state"
1111
depends on DESKTOP_ROLE_HID_PERIPHERAL
12-
select DESKTOP_HID_KEYMAP
13-
select DESKTOP_HID_EVENTQ
14-
select DESKTOP_KEYS_STATE
12+
select DESKTOP_HID_REPORT_PROVIDER_EVENT
1513
help
1614
The module generates HID reports based on user input.
1715

@@ -43,14 +41,14 @@ config DESKTOP_HID_STATE_PM_ENABLE
4341
This enables small module that blocks power down if HID is active.
4442

4543
config DESKTOP_HID_REPORT_EXPIRATION
46-
int "HID report expiration [ms]"
44+
int "HID report expiration [ms] [DEPRECATED]"
4745
default 500
4846
help
4947
Define the time after which a HID report expires
5048
and is not sent again.
5149

5250
config DESKTOP_HID_EVENT_QUEUE_SIZE
53-
int "HID event queue size"
51+
int "HID event queue size [DEPRECATED]"
5452
default 12
5553
range 2 255
5654
help

0 commit comments

Comments
 (0)