mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-06 14:14:33 +02:00
Merge branch 'bugfix/hid_examples' into 'master'
Update HID examples to comply with the new requirements See merge request espressif/esp-idf!8559
This commit is contained in:
@@ -3,5 +3,4 @@
|
|||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
|
|
||||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
set(SUPPORTED_TARGETS esp32)
|
|
||||||
project(esp_hid_device)
|
project(esp_hid_device)
|
||||||
|
5
examples/bluetooth/esp_hid_device/README.md
Normal file
5
examples/bluetooth/esp_hid_device/README.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
| Supported Targets | ESP32 |
|
||||||
|
| ----------------- | ----- |
|
||||||
|
|
||||||
|
# ESP-IDF BLE HID Device Demo
|
||||||
|
|
@@ -1,5 +1,8 @@
|
|||||||
set(COMPONENT_SRCS "esp_hid_device_main.c"
|
set(srcs "esp_hid_device_main.c"
|
||||||
"esp_hid_gap.c")
|
"esp_hid_gap.c")
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
|
||||||
|
set(include_dirs ".")
|
||||||
|
|
||||||
register_component()
|
idf_component_register(SRCS "${srcs}"
|
||||||
|
INCLUDE_DIRS "${include_dirs}"
|
||||||
|
REQUIRES esp_hid)
|
||||||
|
@@ -3,5 +3,4 @@
|
|||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
|
|
||||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
set(SUPPORTED_TARGETS esp32)
|
|
||||||
project(esp_hid_host)
|
project(esp_hid_host)
|
||||||
|
4
examples/bluetooth/esp_hid_host/README.md
Normal file
4
examples/bluetooth/esp_hid_host/README.md
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
| Supported Targets | ESP32 |
|
||||||
|
| ----------------- | ----- |
|
||||||
|
|
||||||
|
# ESP-IDF BT/BLE HID Host Demo
|
@@ -1,5 +1,8 @@
|
|||||||
set(COMPONENT_SRCS "esp_hid_host_main.c"
|
set(srcs "esp_hid_host_main.c"
|
||||||
"esp_hid_gap.c")
|
"esp_hid_gap.c")
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
|
||||||
|
set(include_dirs ".")
|
||||||
|
|
||||||
register_component()
|
idf_component_register(SRCS "${srcs}"
|
||||||
|
INCLUDE_DIRS "${include_dirs}"
|
||||||
|
REQUIRES esp_hid)
|
||||||
|
Reference in New Issue
Block a user