This is an automated email from the ASF dual-hosted git repository. mgorecki pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 1d75f297ba454a2ff879ab05fd5dc4d7e53130a0 Author: Michal Gorecki <[email protected]> AuthorDate: Wed Feb 12 11:56:36 2025 +0100 hw/bsp: Remove leftover variable from stm32 based BSPs This removes rc variable, which is no longer used, as peripherals initializations are moved to a separate function in stm32_common package. This also deletes initialization of spiflash from hal_bsp_init function from nucleo-l073rz BSP. Now spiflash initialization is also carried in function from stm32_common package so it shouldn't be called here. --- hw/bsp/nucleo-g0b1re/src/hal_bsp.c | 3 --- hw/bsp/nucleo-g491re/src/hal_bsp.c | 3 --- hw/bsp/nucleo-h723zg/src/hal_bsp.c | 3 --- hw/bsp/nucleo-h753zi/src/hal_bsp.c | 3 --- hw/bsp/nucleo-l073rz/src/hal_bsp.c | 9 --------- hw/bsp/nucleo-u575zi-q/src/hal_bsp.c | 3 --- hw/bsp/weact_g431cb/src/hal_bsp.c | 3 --- 7 files changed, 27 deletions(-) diff --git a/hw/bsp/nucleo-g0b1re/src/hal_bsp.c b/hw/bsp/nucleo-g0b1re/src/hal_bsp.c index 3b6017cb4..3ed1b5bdb 100644 --- a/hw/bsp/nucleo-g0b1re/src/hal_bsp.c +++ b/hw/bsp/nucleo-g0b1re/src/hal_bsp.c @@ -228,9 +228,6 @@ hal_bsp_core_dump(int *area_cnt) void hal_bsp_init(void) { - int rc; - (void)rc; - stm32_periph_create(); } diff --git a/hw/bsp/nucleo-g491re/src/hal_bsp.c b/hw/bsp/nucleo-g491re/src/hal_bsp.c index 96434bf91..98b20f437 100644 --- a/hw/bsp/nucleo-g491re/src/hal_bsp.c +++ b/hw/bsp/nucleo-g491re/src/hal_bsp.c @@ -185,9 +185,6 @@ hal_bsp_core_dump(int *area_cnt) void hal_bsp_init(void) { - int rc; - (void)rc; - stm32_periph_create(); } diff --git a/hw/bsp/nucleo-h723zg/src/hal_bsp.c b/hw/bsp/nucleo-h723zg/src/hal_bsp.c index ef2663613..0eb40c698 100644 --- a/hw/bsp/nucleo-h723zg/src/hal_bsp.c +++ b/hw/bsp/nucleo-h723zg/src/hal_bsp.c @@ -211,9 +211,6 @@ hal_bsp_core_dump(int *area_cnt) void hal_bsp_init(void) { - int rc; - (void)rc; - stm32_periph_create(); } diff --git a/hw/bsp/nucleo-h753zi/src/hal_bsp.c b/hw/bsp/nucleo-h753zi/src/hal_bsp.c index b873e8067..3b6698f27 100644 --- a/hw/bsp/nucleo-h753zi/src/hal_bsp.c +++ b/hw/bsp/nucleo-h753zi/src/hal_bsp.c @@ -168,9 +168,6 @@ hal_bsp_core_dump(int *area_cnt) void hal_bsp_init(void) { - int rc; - (void)rc; - stm32_periph_create(); } diff --git a/hw/bsp/nucleo-l073rz/src/hal_bsp.c b/hw/bsp/nucleo-l073rz/src/hal_bsp.c index 9880d7947..80c4dbd90 100644 --- a/hw/bsp/nucleo-l073rz/src/hal_bsp.c +++ b/hw/bsp/nucleo-l073rz/src/hal_bsp.c @@ -150,16 +150,7 @@ hal_bsp_core_dump(int *area_cnt) void hal_bsp_init(void) { - int rc; - (void)rc; - stm32_periph_create(); - -#if MYNEWT_VAL(SPIFLASH) && MYNEWT_VAL(BUS_DRIVER_PRESENT) - rc = spiflash_create_spi_dev(&spiflash_dev.dev, - MYNEWT_VAL(BSP_FLASH_SPI_NAME), &flash_spi_cfg); - assert(rc == 0); -#endif } void diff --git a/hw/bsp/nucleo-u575zi-q/src/hal_bsp.c b/hw/bsp/nucleo-u575zi-q/src/hal_bsp.c index 3e93b909b..06153b595 100644 --- a/hw/bsp/nucleo-u575zi-q/src/hal_bsp.c +++ b/hw/bsp/nucleo-u575zi-q/src/hal_bsp.c @@ -177,9 +177,6 @@ hal_bsp_core_dump(int *area_cnt) void hal_bsp_init(void) { - int rc; - (void)rc; - stm32_periph_create(); } diff --git a/hw/bsp/weact_g431cb/src/hal_bsp.c b/hw/bsp/weact_g431cb/src/hal_bsp.c index 1dc95719b..e3329514a 100644 --- a/hw/bsp/weact_g431cb/src/hal_bsp.c +++ b/hw/bsp/weact_g431cb/src/hal_bsp.c @@ -161,9 +161,6 @@ hal_bsp_core_dump(int *area_cnt) void hal_bsp_init(void) { - int rc; - (void)rc; - stm32_periph_create(); }
