Răsfoiți Sursa

SPI can only be HSPI + remove unused defines in globdefs

Philippe G 3 ani în urmă
părinte
comite
559f4ce69f
2 a modificat fișierele cu 2 adăugiri și 9 ștergeri
  1. 2 1
      components/services/accessors.c
  2. 0 8
      components/services/globdefs.h

+ 2 - 1
components/services/accessors.c

@@ -606,7 +606,8 @@ const spi_bus_config_t * config_spi_get(spi_host_device_t * spi_host) {
 		if ((p = strcasestr(nvs_item, "miso")) != NULL) spi.miso_io_num = atoi(strchr(p, '=') + 1);
 		if ((p = strcasestr(nvs_item, "clk")) != NULL) spi.sclk_io_num = atoi(strchr(p, '=') + 1);
 		if ((p = strcasestr(nvs_item, "dc")) != NULL) spi_system_dc_gpio = atoi(strchr(p, '=') + 1);
-		if ((p = strcasestr(nvs_item, "host")) != NULL) spi_system_host = atoi(strchr(p, '=') + 1);
+		// only VSPI (1) can be used as Flash and PSRAM run at 80MHz
+		// if ((p = strcasestr(nvs_item, "host")) != NULL) spi_system_host = atoi(strchr(p, '=') + 1);
 		free(nvs_item);
 	}
 	if(spi_host) *spi_host = spi_system_host;

+ 0 - 8
components/services/globdefs.h

@@ -21,11 +21,3 @@ typedef struct {
 	int timer, base_channel, max;
 } pwm_system_t;
 extern pwm_system_t pwm_system;
-
-#ifdef CONFIG_SQUEEZEAMP
-#define ADAC dac_tas57xx
-#elif defined(CONFIG_A1S)
-#define ADAC dac_a1s
-#else
-#define ADAC dac_external
-#endif