File tree 1 file changed +4
-48
lines changed 1 file changed +4
-48
lines changed Original file line number Diff line number Diff line change 2
2
*
3
3
* This test is using Serial to check if the peripheral manager is able to
4
4
* 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
5
9
*/
6
10
7
11
#include < unity.h>
18
22
#include " SPI.h"
19
23
#endif
20
24
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
-
29
25
#include " ETH.h"
30
26
31
27
/* Definitions */
@@ -177,37 +173,13 @@ void spi_test(void) {
177
173
}
178
174
#endif
179
175
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
-
190
176
#if SOC_TOUCH_SENSOR_SUPPORTED
191
177
void touch_test (void ) {
192
178
touchRead (T1);
193
179
last_test = " Touch" ;
194
180
}
195
181
#endif
196
182
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
-
211
183
#if SOC_GPSPI_SUPPORTED || CONFIG_ETH_USE_ESP32_EMAC
212
184
void eth_test (void ) {
213
185
ETH.begin ();
@@ -268,27 +240,11 @@ void setup() {
268
240
RUN_TEST (dac_test);
269
241
#endif
270
242
271
- #if 0
272
- #if SOC_SDMMC_HOST_SUPPORTED
273
- RUN_TEST(sdmmc_test);
274
- #endif
275
- #endif
276
-
277
243
#if SOC_TOUCH_SENSOR_SUPPORTED
278
244
uart1_tx_pin = T1;
279
245
RUN_TEST (touch_test);
280
246
#endif
281
247
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
-
292
248
RUN_TEST (eth_test);
293
249
294
250
UNITY_END ();
You can’t perform that action at this time.
0 commit comments