Skip to content

Commit 343c044

Browse files
committed
zephyr-sys: Add bindings for usb/hid
Add these bindings so that app code can directly use these. Signed-off-by: David Brown <[email protected]>
1 parent c246f51 commit 343c044

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

zephyr-sys/build.rs

+2
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,14 @@ fn main() -> Result<()> {
7272
.allowlist_function("gpio_.*")
7373
.allowlist_function("flash_.*")
7474
.allowlist_function("usb_.*")
75+
.allowlist_function("hid_.*")
7576
.allowlist_item("GPIO_.*")
7677
.allowlist_item("USB_.*")
7778
.allowlist_item("FLASH_.*")
7879
.allowlist_item("Z_.*")
7980
.allowlist_item("ZR_.*")
8081
.allowlist_item("K_.*")
82+
.allowlist_item("hid_ops*")
8183
.allowlist_item("uart_line_ctrl")
8284
// Each DT node has a device entry that is a static.
8385
.allowlist_item("__device_dts_ord.*")

zephyr-sys/wrapper.h

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ extern int errno;
4343
#include <zephyr/drivers/uart.h>
4444
#include <zephyr/drivers/led_strip.h>
4545
#include <zephyr/drivers/led.h>
46+
#include <zephyr/drivers/usb/usb_dc.h>
47+
#include <zephyr/usb/class/hid.h>
48+
#include <zephyr/usb/usb_device.h>
49+
#include <zephyr/usb/class/usb_hid.h>
4650

4751
#ifdef CONFIG_THREAD_ANALYZER
4852
#include <zephyr/debug/thread_analyzer.h>

0 commit comments

Comments
 (0)