Ver código fonte

Keep AI Thinker user GPIO whitelist closed pending SD pin validation

SybexXx 3 dias atrás
pai
commit
86c4d92a5f

+ 3 - 10
code/components/jomjol_controlGPIO/board_gpio_profile.cpp

@@ -16,18 +16,11 @@ static const char *TAG = "GPIO_PROFILE";
  *   no output or PWM capability is granted.
  *   no output or PWM capability is granted.
  * - If the build is changed to 4-bit SD mode, the user whitelist is empty.
  * - If the build is changed to 4-bit SD mode, the user whitelist is empty.
  */
  */
-#if defined(__SD_USE_ONE_LINE_MODE__)
-static const GpioBoardPin kUserPins[] = {
-    { GPIO_NUM_13,
-      static_cast<uint8_t>(GPIO_PIN_CAP_INPUT | GPIO_PIN_CAP_PULL_UP |
-                           GPIO_PIN_CAP_INTERRUPT),
-      "GPIO13 - input only; SD DAT3 is inactive in 1-bit SD mode" }
-};
-static const size_t kUserPinCount = sizeof(kUserPins) / sizeof(kUserPins[0]);
-#else
+/* GPIO13 remains connected to SD DAT3 and is explicitly pulled up by main.cpp.
+ * Do not expose it as a user pin until SD-card interaction and board wiring
+ * have been validated together on hardware. */
 static const GpioBoardPin * const kUserPins = NULL;
 static const GpioBoardPin * const kUserPins = NULL;
 static const size_t kUserPinCount = 0U;
 static const size_t kUserPinCount = 0U;
-#endif
 
 
 static const gpio_num_t kReservedPins[] = {
 static const gpio_num_t kReservedPins[] = {
     CAM_PIN_PWDN, CAM_PIN_RESET, CAM_PIN_XCLK, CAM_PIN_SIOD, CAM_PIN_SIOC,
     CAM_PIN_PWDN, CAM_PIN_RESET, CAM_PIN_XCLK, CAM_PIN_SIOD, CAM_PIN_SIOC,