Skip to content

Commit 0e9fa47

Browse files
committed
[stm32wba_nucleo, copyright] Fix example stm32wba board config. Add copyright to source files
1 parent ed5993a commit 0e9fa47

24 files changed

Lines changed: 365 additions & 9 deletions

boards/stm32wba55cg_nucleo/board.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -437,12 +437,7 @@ whal_Error Board_Deinit(void)
437437
if (err)
438438
return err;
439439

440-
/* Reduce flash latency then disable flash clock */
441-
err = whal_Stm32wba_Flash_Ext_SetLatency(BOARD_FLASH_DEV, 0);
442-
if (err)
443-
return err;
444-
445-
err = whal_Stm32wba_Rcc_DisablePeriphClk(&g_flashClock);
440+
err = whal_Stm32wba_Flash_Ext_SetLatency(BOARD_FLASH_DEV, 1);
446441
if (err)
447442
return err;
448443

boards/stm32wba55cg_nucleo/board.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ enum {
192192
/* GPIO dev initializer — singleton defined in driver TU. */
193193
#define WHAL_CFG_STM32WBA_GPIO_DEV { \
194194
.base = WHAL_STM32WBA55_GPIO_BASE, \
195-
.driver = WHAL_STM32WBA55_GPIO_DRIVER, \
196195
.cfg = (void *)&(const whal_Stm32wba_Gpio_Cfg){ \
197196
.pinCfg = (const whal_Stm32wba_Gpio_PinCfg[PIN_COUNT]){ \
198197
/* LED: PA9 (LD2, Green), output, push-pull, low speed, pull-up */ \

boards/stm32wba55cg_nucleo/board.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ CFLAGS += -Wall -Werror $(INCLUDE) -g3 -Os -ffunction-sections -fdata-sections \
4444
-DWHAL_CFG_STM32WBA_HASH_HMAC_SHA1_DIRECT_API_MAPPING \
4545
-DWHAL_CFG_STM32WBA_HASH_HMAC_SHA224_DIRECT_API_MAPPING \
4646
-DWHAL_CFG_STM32WBA_HASH_HMAC_SHA256_DIRECT_API_MAPPING \
47+
-DWHAL_CFG_STM32WBA_GPIO_DIRECT_API_MAPPING \
48+
-DWHAL_CFG_STM32WBA_RNG_DIRECT_API_MAPPING \
4749
$(if $(DMA),-DBOARD_DMA) \
4850
$(if $(filter iwdg,$(WATCHDOG)),-DBOARD_WATCHDOG_IWDG) \
4951
$(if $(filter wwdg,$(WATCHDOG)),-DBOARD_WATCHDOG_WWDG) \
@@ -58,15 +60,13 @@ INCLUDE += -I$(_BOARD_DIR) -I$(WHAL_DIR)/boards/peripheral
5860
BOARD_SOURCE = $(_BOARD_DIR)/ivt.c
5961
BOARD_SOURCE += $(_BOARD_DIR)/board.c
6062
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*.c)
61-
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/gpio.c)
6263
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/clock.c)
6364
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/uart.c)
6465
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/flash.c)
6566
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/spi.c)
6667
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/i2c.c)
6768
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/sensor.c)
6869
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/watchdog.c)
69-
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/rng.c)
7070
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/crypto.c)
7171
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/block.c)
7272
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/dma.c)

src/crypto/stm32u5_aes.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
/* stm32u5_aes.c
2+
*
3+
* Copyright (C) 2026 wolfSSL Inc.
4+
*
5+
* This file is part of wolfHAL.
6+
*
7+
* wolfHAL is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License as published by
9+
* the Free Software Foundation; either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* wolfHAL is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU General Public License
18+
* along with this program; if not, write to the Free Software
19+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
20+
*/
21+
122
#ifdef WHAL_CFG_STM32U5_AES_INIT_DIRECT_API_MAPPING
223
#define WHAL_CFG_STM32WB_AES_INIT_DIRECT_API_MAPPING
324
#endif

src/crypto/stm32u5_hash.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
/* stm32u5_hash.c
2+
*
3+
* Copyright (C) 2026 wolfSSL Inc.
4+
*
5+
* This file is part of wolfHAL.
6+
*
7+
* wolfHAL is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License as published by
9+
* the Free Software Foundation; either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* wolfHAL is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU General Public License
18+
* along with this program; if not, write to the Free Software
19+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
20+
*/
21+
122
#ifdef WHAL_CFG_STM32U5_HASH_INIT_DIRECT_API_MAPPING
223
#define WHAL_CFG_STM32WBA_HASH_INIT_DIRECT_API_MAPPING
324
#endif

src/crypto/stm32wb0_pka.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
/* stm32wb0_pka.c
2+
*
3+
* Copyright (C) 2026 wolfSSL Inc.
4+
*
5+
* This file is part of wolfHAL.
6+
*
7+
* wolfHAL is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License as published by
9+
* the Free Software Foundation; either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* wolfHAL is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU General Public License
18+
* along with this program; if not, write to the Free Software
19+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
20+
*/
21+
122
#ifdef WHAL_CFG_STM32WB0_PKA_DIRECT_API_MAPPING
223
#define WHAL_CFG_STM32WB_PKA_DIRECT_API_MAPPING
324
#endif

src/dma/stm32u5_gpdma.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
/* stm32u5_gpdma.c
2+
*
3+
* Copyright (C) 2026 wolfSSL Inc.
4+
*
5+
* This file is part of wolfHAL.
6+
*
7+
* wolfHAL is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License as published by
9+
* the Free Software Foundation; either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* wolfHAL is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU General Public License
18+
* along with this program; if not, write to the Free Software
19+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
20+
*/
21+
122
#ifdef WHAL_CFG_STM32U5_GPDMA_DIRECT_API_MAPPING
223
#define WHAL_CFG_STM32WBA_GPDMA_DIRECT_API_MAPPING
324
#endif

src/dma/stm32wb0_dma.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
/* stm32wb0_dma.c
2+
*
3+
* Copyright (C) 2026 wolfSSL Inc.
4+
*
5+
* This file is part of wolfHAL.
6+
*
7+
* wolfHAL is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License as published by
9+
* the Free Software Foundation; either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* wolfHAL is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU General Public License
18+
* along with this program; if not, write to the Free Software
19+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
20+
*/
21+
122
#ifdef WHAL_CFG_STM32WB0_DMA_DIRECT_API_MAPPING
223
#define WHAL_CFG_STM32WB_DMA_DIRECT_API_MAPPING
324
#endif

src/gpio/stm32u5_gpio.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
/* stm32u5_gpio.c
2+
*
3+
* Copyright (C) 2026 wolfSSL Inc.
4+
*
5+
* This file is part of wolfHAL.
6+
*
7+
* wolfHAL is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License as published by
9+
* the Free Software Foundation; either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* wolfHAL is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU General Public License
18+
* along with this program; if not, write to the Free Software
19+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
20+
*/
21+
122
#ifdef WHAL_CFG_STM32U5_GPIO_DIRECT_API_MAPPING
223
#define WHAL_CFG_STM32WB_GPIO_DIRECT_API_MAPPING
324
#endif

src/gpio/stm32wba_gpio.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@
1919
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
2020
*/
2121

22+
#ifdef WHAL_CFG_STM32WBA_GPIO_DIRECT_API_MAPPING
23+
#define WHAL_CFG_STM32WB_GPIO_DIRECT_API_MAPPING
24+
#endif
25+
2226
#include "stm32wb_gpio.c"

0 commit comments

Comments
 (0)