Compare commits

..

No commits in common. "ab84498254482fe158e5b00fc492dd6b8b5d137b" and "14c3d41ac29b5e0c0afa4fbbd59c26e7cab3d739" have entirely different histories.

2 changed files with 11 additions and 12 deletions

View File

@ -137,6 +137,12 @@ int _bus(const shell_cmd_t *pcmd, int argc, char *const argv[])
{ {
if(strcmp(argv[1], "spi_init") == 0) 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)); 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) else if(strcmp(argv[1], "spi_w") == 0)

View File

@ -183,17 +183,10 @@ void wm_gpio_config()
#endif #endif
#if (TLS_CONFIG_LS_SPI) #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_cs_config(WM_IO_PB_04);
wm_spi_ck_config(WM_IO_PB_02); wm_spi_ck_config(WM_IO_PB_02);
wm_spi_di_config(WM_IO_PB_03); wm_spi_di_config(WM_IO_PB_03);
wm_spi_do_config(WM_IO_PB_05); wm_spi_do_config(WM_IO_PB_05);
#endif
#endif #endif
} }
#if MAIN_TASK_DELETE_AFTER_START_FTR #if MAIN_TASK_DELETE_AFTER_START_FTR