Compare commits

..

2 Commits

Author SHA1 Message Date
anschrammh
ab84498254 Merge branch 'master' of http://82.64.196.164/git/Th3maz1ng/W801_SDK_dev_env 2022-08-16 18:11:03 +02:00
anschrammh
bcde1e686e Changed SPI pins 2022-08-16 18:10:43 +02:00
2 changed files with 12 additions and 11 deletions

View File

@ -137,12 +137,6 @@ int _bus(const shell_cmd_t *pcmd, int argc, char *const argv[])
{
if(strcmp(argv[1], "spi_init") == 0)
{
//Let's set the IO's up
wm_spi_cs_config(WM_IO_PB_14);
wm_spi_ck_config(WM_IO_PB_15);
wm_spi_di_config(WM_IO_PB_16);
wm_spi_do_config(WM_IO_PB_17);
shell_printf("SPI init : %d"NEW_LINE, tls_spi_setup(SPI_DEFAULT_MODE, SPI_CS_ACTIVE_MODE, SPI_DEFAULT_SPEED));
}
else if(strcmp(argv[1], "spi_w") == 0)

View File

@ -182,11 +182,18 @@ void wm_gpio_config()
}
#endif
#if (TLS_CONFIG_LS_SPI)
wm_spi_cs_config(WM_IO_PB_04);
wm_spi_ck_config(WM_IO_PB_02);
wm_spi_di_config(WM_IO_PB_03);
wm_spi_do_config(WM_IO_PB_05);
#if (TLS_CONFIG_LS_SPI)
#if 1
wm_spi_cs_config(WM_IO_PB_14);
wm_spi_ck_config(WM_IO_PB_15);
wm_spi_di_config(WM_IO_PB_16);
wm_spi_do_config(WM_IO_PB_17);
#elif
wm_spi_cs_config(WM_IO_PB_04);
wm_spi_ck_config(WM_IO_PB_02);
wm_spi_di_config(WM_IO_PB_03);
wm_spi_do_config(WM_IO_PB_05);
#endif
#endif
}
#if MAIN_TASK_DELETE_AFTER_START_FTR