Преглед изворни кода

remove NVIC_SystemReset() in freertos examples

hathach пре 4 година
родитељ
комит
1d8a79ef4f

+ 1 - 3
examples/device/cdc_msc_freertos/src/main.c

@@ -97,10 +97,8 @@ int main(void)
   // skip starting scheduler (and return) for ESP32-S2
 #if CFG_TUSB_MCU != OPT_MCU_ESP32S2
   vTaskStartScheduler();
-#if CFG_TUSB_MCU != OPT_MCU_RX63X
-  NVIC_SystemReset();
-#endif
 #endif
+
   return 0;
 }
 

+ 1 - 3
examples/device/hid_composite_freertos/src/main.c

@@ -98,10 +98,8 @@ int main(void)
   // skip starting scheduler (and return) for ESP32-S2
 #if CFG_TUSB_MCU != OPT_MCU_ESP32S2
   vTaskStartScheduler();
-#if CFG_TUSB_MCU != OPT_MCU_RX63X
-  NVIC_SystemReset();
-#endif
 #endif
+
   return 0;
 }