File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
tools/test_apps/system/cxx_build_test/main Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ if(CONFIG_SOC_I2C_SUPPORTED)
77 list (APPEND srcs test_i2c_lcd.cpp)
88endif ()
99
10+ if (CONFIG_SOC_TWAI_SUPPORTED)
11+ list (APPEND srcs test_twai.cpp)
12+ endif ()
13+
1014idf_component_register(SRCS "${srcs} "
1115 INCLUDE_DIRS "."
1216 PRIV_REQUIRES driver esp_lcd
Original file line number Diff line number Diff line change 1+ /*
2+ * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
3+ *
4+ * SPDX-License-Identifier: Unlicense OR CC0-1.0
5+ */
6+ #include " driver/twai.h"
7+
8+ void test_twai_apis (void )
9+ {
10+ twai_filter_config_t f_config = TWAI_FILTER_CONFIG_ACCEPT_ALL ();
11+ twai_general_config_t g_config = TWAI_GENERAL_CONFIG_DEFAULT (GPIO_NUM_0, GPIO_NUM_1, TWAI_MODE_NO_ACK);
12+ twai_timing_config_t t_config = TWAI_TIMING_CONFIG_100KBITS ();
13+ twai_driver_install (&g_config, &t_config, &f_config);
14+ twai_driver_uninstall ();
15+ }
You can’t perform that action at this time.
0 commit comments