Procházet zdrojové kódy

Leave GPIO 25 alone, it's not the LED

androda před 2 roky
rodič
revize
7c0fde63c4

+ 2 - 2
lib/BlueSCSI_platform_RP2040/BlueSCSI_platform.cpp

@@ -155,7 +155,7 @@ void platform_init()
     gpio_conf(SDIO_D2,        GPIO_FUNC_SIO, true, false, false, true, true);
 
     // LED pin
-    gpio_conf(LED_PIN,        GPIO_FUNC_SIO, false,false, true,  false, false);
+    //gpio_conf(LED_PIN,        GPIO_FUNC_SIO, false,false, true,  false, false);
 
 #ifndef ENABLE_AUDIO_OUTPUT
 #ifdef GPIO_I2C_SDA
@@ -301,7 +301,7 @@ bool platform_is_initiator_mode_enabled()
 void platform_disable_led(void)
 {   
     //        pin      function       pup   pdown  out    state fast
-    gpio_conf(LED_PIN, GPIO_FUNC_SIO, false,false, false, false, false);
+    //gpio_conf(LED_PIN, GPIO_FUNC_SIO, false,false, false, false, false);
     log("Disabling status LED");
 }
 

+ 1 - 1
lib/BlueSCSI_platform_RP2040/BlueSCSI_platform_gpio.h

@@ -53,7 +53,7 @@
 #define SCSI_IN_REQ   9
 
 // Status LED pins
-#define LED_PIN      25
+//#define LED_PIN      25
 #define LED_ON()     cyw43_gpio_set(&cyw43_state, 0, true)  //sio_hw->gpio_set = 1 << LED_PIN
 #define LED_OFF()    cyw43_gpio_set(&cyw43_state, 0, false)  //sio_hw->gpio_clr = 1 << LED_PIN