Changed SPI pins

This commit is contained in:
anschrammh 2022-08-16 18:10:43 +02:00
parent d4c9ffd223
commit bcde1e686e
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

@ -183,10 +183,17 @@ 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 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