Skip to content

Commit 5077832

Browse files
authored
feat(hw_cdc): create cmake config file
Adds necessary CMakeLists.txt file to the project with the HW CDC defines that will enable it.
1 parent bbed8d5 commit 5077832

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# For more information about build system see
2+
# https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html
3+
# The following five lines of boilerplate have to be in your project's
4+
# CMakeLists in this exact order for cmake to work correctly
5+
cmake_minimum_required(VERSION 3.16)
6+
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
7+
8+
# Adds necessary definitions for compiling it using Serial symbol attached to the HW USB CDC port
9+
list(APPEND compile_definitions "ARDUINO_USB_CDC_ON_BOOT=1")
10+
list(APPEND compile_definitions "ARDUINO_USB_MODE=1")
11+
12+
project(hw_cdc_hello_world)

0 commit comments

Comments
 (0)