File tree Expand file tree Collapse file tree 1 file changed +4
-48
lines changed
Expand file tree Collapse file tree 1 file changed +4
-48
lines changed Original file line number Diff line number Diff line change 22 *
33 * This test is using Serial to check if the peripheral manager is able to
44 * attach and detach peripherals correctly on shared pins.
5+ *
6+ * This test skips the following peripherals:
7+ * - USB: USB is not able to be detached
8+ * - SDMMC: SDMMC requires a card to be mounted before the pins are attached
59 */
610
711#include < unity.h>
1822#include " SPI.h"
1923#endif
2024
21- #if SOC_SDMMC_HOST_SUPPORTED
22- #include " SD_MMC.h"
23- #endif
24-
25- #if SOC_USB_OTG_SUPPORTED && (ARDUINO_USB_MODE == 0)
26- #include " USB.h"
27- #endif
28-
2925#include " ETH.h"
3026
3127/* Definitions */
@@ -177,37 +173,13 @@ void spi_test(void) {
177173}
178174#endif
179175
180- #if SOC_SDMMC_HOST_SUPPORTED
181- void sdmmc_test (void ) {
182- // begin() will always fail without a card. How to test?
183- if (!SD_MMC.begin (" /sdcard" , true )) {
184- TEST_FAIL_MESSAGE (" SDMMC init failed" );
185- }
186- last_test = " SDMMC" ;
187- }
188- #endif
189-
190176#if SOC_TOUCH_SENSOR_SUPPORTED
191177void touch_test (void ) {
192178 touchRead (T1);
193179 last_test = " Touch" ;
194180}
195181#endif
196182
197- #if SOC_USB_SERIAL_JTAG_SUPPORTED && (ARDUINO_USB_MODE == 1)
198- void jtag_test (void ) {
199- HWCDCSerial.begin ();
200- last_test = " JTAG" ;
201- }
202- #endif
203-
204- #if SOC_USB_OTG_SUPPORTED && (ARDUINO_USB_MODE == 0)
205- void usb_test (void ) {
206- USB.begin ();
207- last_test = " USB" ;
208- }
209- #endif
210-
211183#if SOC_GPSPI_SUPPORTED || CONFIG_ETH_USE_ESP32_EMAC
212184void eth_test (void ) {
213185 ETH.begin ();
@@ -268,27 +240,11 @@ void setup() {
268240 RUN_TEST (dac_test);
269241 #endif
270242
271- #if 0
272- #if SOC_SDMMC_HOST_SUPPORTED
273- RUN_TEST(sdmmc_test);
274- #endif
275- #endif
276-
277243 #if SOC_TOUCH_SENSOR_SUPPORTED
278244 uart1_tx_pin = T1;
279245 RUN_TEST (touch_test);
280246 #endif
281247
282- #if SOC_USB_SERIAL_JTAG_SUPPORTED && (ARDUINO_USB_MODE == 1)
283- uart1_tx_pin = UART1_TX_DEFAULT;
284- RUN_TEST (jtag_test);
285- #endif
286-
287- #if SOC_USB_OTG_SUPPORTED && (ARDUINO_USB_MODE == 0)
288- uart1_tx_pin = 19 ;
289- RUN_TEST (usb_test);
290- #endif
291-
292248 RUN_TEST (eth_test);
293249
294250 UNITY_END ();
You can’t perform that action at this time.
0 commit comments