diff --git a/.claude/skills/generate-driver-template/SKILL.md b/.claude/skills/generate-driver-template/SKILL.md index 03a3272..2df5523 100644 --- a/.claude/skills/generate-driver-template/SKILL.md +++ b/.claude/skills/generate-driver-template/SKILL.md @@ -16,7 +16,7 @@ chosen automatically from the device type in Step 0: - **Mode B — board-level header-only driver** (clock, power, …): emits a single `.h` with a fixed `_BASE` macro and stubbed `static inline` helpers. No `.c`, no vtable, no device handle. -This skill **only scaffolds one driver**. It does not touch `board.h`, the platform header, +This skill **only scaffolds one driver**. It does not touch `wolfHAL_board.h`, the platform header, the Makefile, or CI. For a full chip-family port use `port-stm32-platform`. ## Inputs @@ -157,7 +157,7 @@ the `timeout` field — use a peripheral-appropriate placeholder instead. ```c /* * @brief Fixed device instance. Defined in the driver TU - * from the WHAL_CFG___DEV initializer in board.h. + * from the WHAL_CFG___DEV initializer in wolfHAL_board.h. */ extern const whal_ whal___Dev; ``` @@ -165,7 +165,7 @@ the `timeout` field — use a peripheral-appropriate placeholder instead. ```c /* * @brief Fixed device instance. Defined in the driver TU - * from the WHAL_CFG___DEV initializer in board.h. + * from the WHAL_CFG___DEV initializer in wolfHAL_board.h. */ #if defined(WHAL_CFG___SINGLE_INSTANCE) extern const whal_ whal___Dev; @@ -210,11 +210,11 @@ const whal_Driver whal___Driver = { ``` ``: -- **single**: `#include "board.h" /* provides WHAL_CFG___DEV initializer */` +- **single**: `#include "wolfHAL_board.h" /* provides WHAL_CFG___DEV initializer */` - **multi**: ```c #ifdef WHAL_CFG___SINGLE_INSTANCE - #include "board.h" /* provides whal___Dev device instance (possibly via platform alias macro) */ + #include "wolfHAL_board.h" /* provides whal___Dev device instance (possibly via platform alias macro) */ #endif ``` @@ -421,7 +421,7 @@ Print a short summary tailored to the mode: - The vtable members stubbed (so the user sees the surface they must implement). - What's intentionally left as TODO: register definitions, the `Cfg` fields, and each body. - That wiring this driver into a board still needs the platform-header base-address `#define`, - the `WHAL_CFG___DEV` initializer in `board.h`, and the Makefile/CI entries — point + the `WHAL_CFG___DEV` initializer in `wolfHAL_board.h`, and the Makefile/CI entries — point to `port-stm32-platform`. **Mode B:** diff --git a/.claude/skills/port-stm32-platform/SKILL.md b/.claude/skills/port-stm32-platform/SKILL.md index 98c0dcc..e0dda07 100644 --- a/.claude/skills/port-stm32-platform/SKILL.md +++ b/.claude/skills/port-stm32-platform/SKILL.md @@ -55,11 +55,11 @@ The clock driver is almost always new per family. GPIO, I2C, and IWDG/WWDG are a **Clock is an architectural exception (2): no vtable, no device handle.** Unlike most driver types, the clock subsystem has no `whal_ClockDriver` vtable, no generic `whal_Clock_Init`/`Enable`/`Disable` API, and no `whal_Clock` handle at all. The chip's clock-controller `_BASE` macro lives at the top of the clock driver header (the platform header just includes the clock header and doesn't re-define `_BASE`). Chip clock drivers expose imperative `Enable*`/`Disable*`/`Set*` helpers (e.g. `whal__Rcc_EnableOsc`, `EnablePll`, `SetSysClock`, `EnablePeriphClk`) that take no device pointer; boards call them directly. The platform header does NOT define a `WHAL__RCC_DRIVER` macro. Power follows the same shape — no handle, helpers take no device pointer, `_BASE` macro at the top of the power driver header. -**Most other drivers are single-instance**, reading their cfg/base from a `whal___Dev` singleton that the driver `.c` defines from a `WHAL_CFG___DEV` initializer macro in `board.h`. The driver header `extern`-declares the singleton. Two flavors: +**Most other drivers are single-instance**, reading their cfg/base from a `whal___Dev` singleton that the driver `.c` defines from a `WHAL_CFG___DEV` initializer macro in `wolfHAL_board.h`. The driver header `extern`-declares the singleton. Two flavors: - **Unconditional single-instance** for true singletons (one per chip): RNG, GPIO, NVIC, SysTick, Watchdog, Crypto, Hash, Ethernet, Flash. Driver body always reads from the singleton; NULL checks dropped. Examples: `src/rng/stm32wb_rng.c`, `src/eth/stm32n6_eth.c`. - **Conditional single-instance** gated on `WHAL_CFG___SINGLE_INSTANCE` for multi-instance peripherals (UART, SPI, I2C, DMA). Default builds keep the pointer-based path; boards opt in per device. Example: `src/uart/stm32wb_uart.c`. -**Flash with peripheral coexistence (e.g. on-chip + SPI NOR W25Q64)**: the driver-owned singleton (defined in the driver `.c` from `WHAL_CFG__FLASH_DEV` in `board.h`) carries `.driver`, `.base`, and `.cfg`. `BOARD_FLASH_DEV` casts its address (`((whal_Flash *)&whal__Flash_Dev)`) so generic `whal_Flash_*` calls can vtable-dispatch through it. There is no separate `g_whalFlash` stub. Reference: `boards/stm32wb55xx_nucleo/board.h` + `src/flash/stm32wb_flash.c`. +**Flash with peripheral coexistence (e.g. on-chip + SPI NOR W25Q64)**: the driver-owned singleton (defined in the driver `.c` from `WHAL_CFG__FLASH_DEV` in `wolfHAL_board.h`) carries `.driver`, `.base`, and `.cfg`. `BOARD_FLASH_DEV` casts its address (`((whal_Flash *)&whal__Flash_Dev)`) so generic `whal_Flash_*` calls can vtable-dispatch through it. There is no separate `g_whalFlash` stub. Reference: `boards/stm32wb55xx_nucleo/wolfHAL_board.h` + `src/flash/stm32wb_flash.c`. **Crypto is also an architectural exception.** Crypto uses per-algorithm device structs (`whal_AesGcm`, `whal_Sha256`, etc.) instead of a single `whal_Crypto` with generic dispatch. Each algo struct has `.crypto` (pointer to the hardware device), `.driver` (per-algo vtable with Oneshot/Start/Process/Finalize), and `.state` (driver-managed streaming state). `whal_Crypto` itself is a platform driver with just Init/Deinit for hardware lifecycle. Direct API mapping is per-algorithm (e.g. `WHAL_CFG_STM32WB_AES_GCM_DIRECT_API_MAPPING`), not per-device-type. See `docs/writing_a_driver.md` "Crypto" section. Reference: `wolfHAL/crypto/stm32wb_aes.h` and `wolfHAL/crypto/stm32wba_hash.h`. @@ -84,7 +84,7 @@ Skeleton: #include _uart.h> /* ...one include per device type... */ -/* Base addresses — referenced by board.h's WHAL_CFG_*_DEV initializers. */ +/* Base addresses — referenced by wolfHAL_board.h's WHAL_CFG_*_DEV initializers. */ #define WHAL__USART1_BASE 0x #define WHAL__AES_BASE 0x #define WHAL__FLASH_BASE 0x @@ -139,7 +139,7 @@ typedef whal__Cfg whal__Cfg; typedef whal__PinCfg whal__PinCfg; /* ...repeat for every exposed type... */ -/* Singleton alias — REQUIRED for any single-instance driver. board.h declares +/* Singleton alias — REQUIRED for any single-instance driver. wolfHAL_board.h declares * the singleton using the new platform's name; this macro renames it at * preprocess time so the leaf driver's references resolve correctly. Place * unconditionally (not under any DIRECT_API_MAPPING guard). */ @@ -210,9 +210,9 @@ This is the same one-line pattern as the driver stub. The build system auto-disc Create `boards//` with: -### `board.h` +### `wolfHAL_board.h` -Three concerns: extern declarations for pointer-based globals that still live in `board.c`, `WHAL_CFG___DEV` initializer macros for each single-instance driver (the driver header `extern`-declares the singleton; the driver `.c` defines it from this initializer after `#include "board.h"`), and the `BOARD__DEV` macro block that lets tests/apps portably reach each peripheral. Follow `docs/adding_a_board.md`. +Three concerns: extern declarations for pointer-based globals that still live in `wolfHAL_board.c`, `WHAL_CFG___DEV` initializer macros for each single-instance driver (the driver header `extern`-declares the singleton; the driver `.c` defines it from this initializer after `#include "wolfHAL_board.h"`), and the `BOARD__DEV` macro block that lets tests/apps portably reach each peripheral. Follow `docs/adding_a_board.md`. Skeleton: @@ -220,7 +220,7 @@ Skeleton: #include #include .h> -/* Pointer-based globals — defined in board.c, declared here for reachability. */ +/* Pointer-based globals — defined in wolfHAL_board.c, declared here for reachability. */ extern whal_Uart g_whalUart; extern whal_Timeout g_whalTimeout; @@ -241,7 +241,7 @@ extern volatile uint32_t g_tick; /* Initializers for single-instance singletons. The driver header * extern-declares whal___Dev; the driver .c writes * const whal_ whal___Dev = WHAL_CFG___DEV; - * after #include "board.h". The board uses its own platform's prefix; if + * after #include "wolfHAL_board.h". The board uses its own platform's prefix; if * the driver is an alias of another platform's, the alias header bridges * the singleton name with a #define. */ #define WHAL_CFG__GPIO_DEV { \ @@ -281,13 +281,13 @@ extern volatile uint32_t g_tick; } ``` -**Names follow the board's own platform.** `WHAL_CFG_STM32G4_IWDG_DEV` in a g4-board's board.h, with `whal_Stm32g4_Iwdg_Dev` as the singleton name. If the IWDG driver is an alias of wb's, the alias header bridges the singleton name (`#define whal_Stm32g4_Iwdg_Dev whal_Stm32wb_Iwdg_Dev`); the board supplies the initializer under the upstream platform's `WHAL_CFG_STM32WB_IWDG_DEV` name (because the leaf driver `.c` references that). Allowed cross-platform names: `whal_Nvic_Dev`, `whal_SysTick_Dev`, `whal_Lan8742a_Dev` (these are genuinely platform-agnostic). +**Names follow the board's own platform.** `WHAL_CFG_STM32G4_IWDG_DEV` in a g4-board's wolfHAL_board.h, with `whal_Stm32g4_Iwdg_Dev` as the singleton name. If the IWDG driver is an alias of wb's, the alias header bridges the singleton name (`#define whal_Stm32g4_Iwdg_Dev whal_Stm32wb_Iwdg_Dev`); the board supplies the initializer under the upstream platform's `WHAL_CFG_STM32WB_IWDG_DEV` name (because the leaf driver `.c` references that). Allowed cross-platform names: `whal_Nvic_Dev`, `whal_SysTick_Dev`, `whal_Lan8742a_Dev` (these are genuinely platform-agnostic). -**State for AEAD streaming** (AES GCM/CCM, HMAC) is a `static` variable in the driver `.c`. The `WHAL_CFG___DEV` initializer in board.h takes its address via the `.state` field. +**State for AEAD streaming** (AES GCM/CCM, HMAC) is a `static` variable in the driver `.c`. The `WHAL_CFG___DEV` initializer in wolfHAL_board.h takes its address via the `.state` field. -### `board.c` +### `wolfHAL_board.c` -Define remaining pointer-based globals (`g_whalUart` for the still-vtable-dispatched peripherals, `g_whalTimeout`, the SysTick handler) and implement `Board_Init`/`Board_Deinit`/`Board_WaitMs`. Single-instance singletons (flash included) live in their driver `.c` files, not here — `board.c` does not declare or initialize them. +Define remaining pointer-based globals (`g_whalUart` for the still-vtable-dispatched peripherals, `g_whalTimeout`, the SysTick handler) and implement `Board_Init`/`Board_Deinit`/`Board_WaitMs`. Single-instance singletons (flash included) live in their driver `.c` files, not here — `wolfHAL_board.c` does not declare or initialize them. Init/Deinit call sites use `BOARD__DEV`, NOT the raw globals — this lets the board switch a peripheral between single-instance and pointer-based by flipping one macro: @@ -300,10 +300,10 @@ err = whal_Timer_Init(BOARD_TIMER_DEV); Clock-tree bring-up is imperative — `whal__Rcc_EnableOsc(...)`, `EnablePll(...)`, `SetSysClock(...)`, `EnablePeriphClk(...)` take no device pointer (each reads the chip's fixed RCC base from the driver header). -Implement `Board_Init` in dependency order: PWR → bring up clock tree imperatively (oscillator on, PLL configure+enable, sysclk switch) → enable peripheral clocks → GPIO → UART → Timer → the rest. Keep the watchdog out of `Board_Init` (the app starts it when ready to refresh) per `docs/adding_a_board.md`. Guard DMA-specific setup under `#ifdef BOARD_DMA`, matching `boards/stm32wba55cg_nucleo/board.c`. +Implement `Board_Init` in dependency order: PWR → bring up clock tree imperatively (oscillator on, PLL configure+enable, sysclk switch) → enable peripheral clocks → GPIO → UART → Timer → the rest. Keep the watchdog out of `Board_Init` (the app starts it when ready to refresh) per `docs/adding_a_board.md`. Guard DMA-specific setup under `#ifdef BOARD_DMA`, matching `boards/stm32wba55cg_nucleo/wolfHAL_board.c`. ### GPIO pin conflict check -After writing the `pinCfg` array in `board.c`, scan every entry pair and verify no two entries share the same physical port+pin. This is a common mistake when a pin serves double duty (e.g., PA5 used as both an LED and SPI1_SCK). If a conflict is found, consult the chip's alternate-function table in the datasheet and remap the conflicting peripheral to an alternate pin on a different port. +After writing the `pinCfg` array in `wolfHAL_board.c`, scan every entry pair and verify no two entries share the same physical port+pin. This is a common mistake when a pin serves double duty (e.g., PA5 used as both an LED and SPI1_SCK). If a conflict is found, consult the chip's alternate-function table in the datasheet and remap the conflicting peripheral to an alternate pin on a different port. ### `board.mk` Model on `boards/stm32wba55cg_nucleo/board.mk`: @@ -330,7 +330,7 @@ Add the new board to `.github/workflows/boards.yml` by appending it to the `boar 1. `make BOARD=` from the repo root. Fix errors in order. Typical failures: - Missing symbol for an aliased driver → the alias header is missing a `#define` for that function/type, or the stub `.c` isn't present. - - `'whal_Stm32__Dev' undeclared` in a single-instance leaf driver → the alias header for the new platform is missing the `#define whal_Stm32__Dev whal_Stm32__Dev` line, OR the board.h didn't provide `WHAL_CFG_STM32__DEV` (the leaf `.c` defines the singleton from that name). + - `'whal_Stm32__Dev' undeclared` in a single-instance leaf driver → the alias header for the new platform is missing the `#define whal_Stm32__Dev whal_Stm32__Dev` line, OR the wolfHAL_board.h didn't provide `WHAL_CFG_STM32__DEV` (the leaf `.c` defines the singleton from that name). - Duplicate symbol → the Makefile is picking up both `_*.c` and the original `_*.c`; restrict the wildcard to the new prefix only. - Implicit declaration warnings for `whal_Reg_*` / `whal_SetBits` in a stub include → you probably wrote `#include ` with angle brackets in the stub instead of `#include "_.c"` with quotes. The stub must use quoted include so the preprocessor finds the sibling `.c` in the same directory. 2. Flash the binary (user runs this) and run the test suite. Each suite prints `PASS`, `FAIL`, or `SKIP`. diff --git a/boards/README.md b/boards/README.md index 1d39631..8c7f324 100644 --- a/boards/README.md +++ b/boards/README.md @@ -34,13 +34,13 @@ Each board directory contains: - **`board.mk`** - Build configuration: toolchain, CPU flags, platform drivers, and linker script. Included by application Makefiles via `include $(BOARD_DIR)/board.mk`. -- **`board.h`** - Board-level declarations: `extern` globals for vtable-dispatched +- **`wolfHAL_board.h`** - Board-level declarations: `extern` globals for vtable-dispatched peripherals, `WHAL_CFG___DEV` initializer macros consumed by each driver TU to define its `whal___Dev` singleton, `BOARD__DEV` macros that resolve to `WHAL_INTERNAL_DEV`, `&g_whal`, or a cast pointer at one of those singletons (depending on how each peripheral is wired), pin definitions, and `Board_Init()`/`Board_Deinit()` prototypes. -- **`board.c`** - Peripheral instantiation for vtable-dispatched drivers and +- **`wolfHAL_board.c`** - Peripheral instantiation for vtable-dispatched drivers and `Board_Init()` implementation (power, clock, GPIO, UART, flash, timer). - **`linker.ld`** - Linker script defining memory regions (flash, RAM). - Any additional board-specific source files (e.g. interrupt vector table, @@ -65,7 +65,7 @@ the base `board.mk` and adding additional sources. Board `board.mk` populates `BOARD_SOURCE` with all of the sources required to build the wolfHAL tests and sample applications for that board: -- Board files: `board.c` and any additional board-specific source files +- Board files: `wolfHAL_board.c` and any additional board-specific source files - Platform / SoC drivers: e.g. `pic32cz_*.c`, `stm32wb_*.c` - Architecture support: `systick.c` and any related startup / vector code - Core wolfHAL modules and common sources: generic dispatch sources such as @@ -80,6 +80,6 @@ application Makefile to select a different set of modules. 1. Create a new directory: `boards/_/` 2. Add `board.mk` following the `_BOARD_DIR` pattern above -3. Implement `board.h`, `board.c`, and `linker.ld` +3. Implement `wolfHAL_board.h`, `wolfHAL_board.c`, and `linker.ld` 4. Set `PLATFORM`, `TESTS`, toolchain variables, `CFLAGS`, and `BOARD_SOURCE` 5. Build with `make BOARD=` diff --git a/boards/peripheral/block/sdhc_spi_sdcard32gb.c b/boards/peripheral/block/sdhc_spi_sdcard32gb.c index 2d485be..0338255 100644 --- a/boards/peripheral/block/sdhc_spi_sdcard32gb.c +++ b/boards/peripheral/block/sdhc_spi_sdcard32gb.c @@ -21,7 +21,7 @@ #include "sdhc_spi_sdcard32gb.h" #include -#include "board.h" +#include "wolfHAL_board.h" static whal_Spi_ComCfg g_sdcardComCfg = { .freq = 25000000, /* 25 MHz */ diff --git a/boards/peripheral/board.mk b/boards/peripheral/board.mk index 9a0246d..18712b6 100644 --- a/boards/peripheral/board.mk +++ b/boards/peripheral/board.mk @@ -21,7 +21,7 @@ _PERIPHERAL_DIR := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST)))) -BOARD_SOURCE += $(_PERIPHERAL_DIR)/peripheral.c +BOARD_SOURCE += $(_PERIPHERAL_DIR)/wolfHAL_peripheral.c ifneq ($(filter sdhc_spi_sdcard32gb,$(PERIPHERALS)),) CFLAGS += -DPERIPHERAL_SDHC_SPI_SDCARD32GB diff --git a/boards/peripheral/display/sharp_ls013b7dh03.c b/boards/peripheral/display/sharp_ls013b7dh03.c index aad51f8..83cf664 100644 --- a/boards/peripheral/display/sharp_ls013b7dh03.c +++ b/boards/peripheral/display/sharp_ls013b7dh03.c @@ -21,7 +21,7 @@ #include "sharp_ls013b7dh03.h" #include -#include "board.h" +#include "wolfHAL_board.h" /* * Sharp LS013B7DH03 - 128x128 monochrome memory LCD diff --git a/boards/peripheral/flash/spi_nor_w25q64.c b/boards/peripheral/flash/spi_nor_w25q64.c index 99ce480..a222614 100644 --- a/boards/peripheral/flash/spi_nor_w25q64.c +++ b/boards/peripheral/flash/spi_nor_w25q64.c @@ -21,7 +21,7 @@ #include "spi_nor_w25q64.h" #include -#include "board.h" +#include "wolfHAL_board.h" /* * Winbond W25Q64 — 64 Mbit (8 MB) SPI-NOR Flash diff --git a/boards/peripheral/sensor/imu/bmi270.c b/boards/peripheral/sensor/imu/bmi270.c index 16d4413..8adf4fb 100644 --- a/boards/peripheral/sensor/imu/bmi270.c +++ b/boards/peripheral/sensor/imu/bmi270.c @@ -21,7 +21,7 @@ #include "bmi270.h" #include -#include "board.h" +#include "wolfHAL_board.h" /* * Bosch BMI270 — 6-axis IMU (accelerometer + gyroscope) @@ -31,7 +31,7 @@ * - Requires 8192-byte config blob upload during init * * The config blob is not bundled with wolfHAL. Obtain it from the Bosch - * Sensortec BMI270_SensorAPI repository and provide it from your board.h: + * Sensortec BMI270_SensorAPI repository and provide it from your wolfHAL_board.h: * * extern const uint8_t whal_bmi270_config_data[]; * #define WHAL_BMI270_CONFIG_DATA_SZ 8192 diff --git a/boards/peripheral/peripheral.c b/boards/peripheral/wolfHAL_peripheral.c similarity index 98% rename from boards/peripheral/peripheral.c rename to boards/peripheral/wolfHAL_peripheral.c index d06581b..30523b4 100644 --- a/boards/peripheral/peripheral.c +++ b/boards/peripheral/wolfHAL_peripheral.c @@ -1,4 +1,4 @@ -/* peripheral.c +/* wolfHAL_peripheral.c * * Copyright (C) 2026 wolfSSL Inc. * @@ -19,7 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#include "peripheral.h" +#include "wolfHAL_peripheral.h" #ifdef PERIPHERAL_SDHC_SPI_SDCARD32GB #include "block/sdhc_spi_sdcard32gb.h" diff --git a/boards/peripheral/peripheral.h b/boards/peripheral/wolfHAL_peripheral.h similarity index 94% rename from boards/peripheral/peripheral.h rename to boards/peripheral/wolfHAL_peripheral.h index 7db9ca1..550e3aa 100644 --- a/boards/peripheral/peripheral.h +++ b/boards/peripheral/wolfHAL_peripheral.h @@ -1,4 +1,4 @@ -/* peripheral.h +/* wolfHAL_peripheral.h * * Copyright (C) 2026 wolfSSL Inc. * @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#ifndef BOARD_PERIPHERAL_H -#define BOARD_PERIPHERAL_H +#ifndef WOLFHAL_PERIPHERAL_H +#define WOLFHAL_PERIPHERAL_H #include #include @@ -67,4 +67,4 @@ extern whal_PeripheralSensor_Cfg g_peripheralSensor[]; whal_Error Peripheral_Init(void); whal_Error Peripheral_Deinit(void); -#endif /* BOARD_PERIPHERAL_H */ +#endif /* WOLFHAL_PERIPHERAL_H */ diff --git a/boards/pic32cz_curiosity_ultra/board.mk b/boards/pic32cz_curiosity_ultra/board.mk index d08b12d..929481e 100644 --- a/boards/pic32cz_curiosity_ultra/board.mk +++ b/boards/pic32cz_curiosity_ultra/board.mk @@ -42,7 +42,7 @@ LINKER_SCRIPT ?= $(_BOARD_DIR)/linker.ld INCLUDE += -I$(_BOARD_DIR) -I$(WHAL_DIR)/boards/peripheral BOARD_SOURCE = $(_BOARD_DIR)/ivt.c -BOARD_SOURCE += $(_BOARD_DIR)/board.c +BOARD_SOURCE += $(_BOARD_DIR)/wolfHAL_board.c BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/flash.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/rng.c) diff --git a/boards/pic32cz_curiosity_ultra/board.c b/boards/pic32cz_curiosity_ultra/wolfHAL_board.c similarity index 97% rename from boards/pic32cz_curiosity_ultra/board.c rename to boards/pic32cz_curiosity_ultra/wolfHAL_board.c index f27f377..d9115c7 100644 --- a/boards/pic32cz_curiosity_ultra/board.c +++ b/boards/pic32cz_curiosity_ultra/wolfHAL_board.c @@ -1,4 +1,4 @@ -/* board.c +/* wolfHAL_board.c * * Copyright (C) 2026 wolfSSL Inc. * @@ -23,9 +23,9 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include -#include "peripheral.h" +#include "wolfHAL_peripheral.h" /* SysTick timing (must precede g_whalTimeout below) */ volatile uint32_t g_tick = 0; @@ -42,7 +42,7 @@ whal_Timeout g_whalTimeout = { .GetTick = Board_GetTick, }; -/* SUPC singleton lives in board.h as `static const`. */ +/* SUPC singleton lives in wolfHAL_board.h as `static const`. */ /* Peripheral clocks */ static const whal_Pic32cz_Clock_PeriphClk g_periphClks[] = { diff --git a/boards/pic32cz_curiosity_ultra/board.h b/boards/pic32cz_curiosity_ultra/wolfHAL_board.h similarity index 96% rename from boards/pic32cz_curiosity_ultra/board.h rename to boards/pic32cz_curiosity_ultra/wolfHAL_board.h index d1cb9f5..8b9e282 100644 --- a/boards/pic32cz_curiosity_ultra/board.h +++ b/boards/pic32cz_curiosity_ultra/wolfHAL_board.h @@ -1,4 +1,4 @@ -/* board.h +/* wolfHAL_board.h * * Copyright (C) 2026 wolfSSL Inc. * @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#ifndef BOARD_H -#define BOARD_H +#ifndef WOLFHAL_BOARD_H +#define WOLFHAL_BOARD_H #include #include @@ -96,4 +96,4 @@ whal_Error Board_Init(void); whal_Error Board_Deinit(void); void Board_WaitMs(size_t ms); -#endif /* BOARD_H */ +#endif /* WOLFHAL_BOARD_H */ diff --git a/boards/stm32c031_nucleo/board.mk b/boards/stm32c031_nucleo/board.mk index 0b38faf..48df459 100644 --- a/boards/stm32c031_nucleo/board.mk +++ b/boards/stm32c031_nucleo/board.mk @@ -44,7 +44,7 @@ LINKER_SCRIPT ?= $(_BOARD_DIR)/linker.ld INCLUDE += -I$(_BOARD_DIR) -I$(WHAL_DIR)/boards/peripheral BOARD_SOURCE = $(_BOARD_DIR)/ivt.c -BOARD_SOURCE += $(_BOARD_DIR)/board.c +BOARD_SOURCE += $(_BOARD_DIR)/wolfHAL_board.c BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/flash.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/rng.c) diff --git a/boards/stm32c031_nucleo/board.c b/boards/stm32c031_nucleo/wolfHAL_board.c similarity index 98% rename from boards/stm32c031_nucleo/board.c rename to boards/stm32c031_nucleo/wolfHAL_board.c index 409fd3d..dbcc882 100644 --- a/boards/stm32c031_nucleo/board.c +++ b/boards/stm32c031_nucleo/wolfHAL_board.c @@ -1,4 +1,4 @@ -/* board.c +/* wolfHAL_board.c * * Copyright (C) 2026 wolfSSL Inc. * @@ -23,9 +23,9 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include -#include "peripheral.h" +#include "wolfHAL_peripheral.h" /* SysTick timing */ volatile uint32_t g_tick = 0; diff --git a/boards/stm32c031_nucleo/board.h b/boards/stm32c031_nucleo/wolfHAL_board.h similarity index 97% rename from boards/stm32c031_nucleo/board.h rename to boards/stm32c031_nucleo/wolfHAL_board.h index 76d2e95..919067b 100644 --- a/boards/stm32c031_nucleo/board.h +++ b/boards/stm32c031_nucleo/wolfHAL_board.h @@ -1,4 +1,4 @@ -/* board.h +/* wolfHAL_board.h * * Copyright (C) 2026 wolfSSL Inc. * @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#ifndef BOARD_H -#define BOARD_H +#ifndef WOLFHAL_BOARD_H +#define WOLFHAL_BOARD_H #include #include @@ -122,4 +122,4 @@ whal_Error Board_Init(void); whal_Error Board_Deinit(void); void Board_WaitMs(size_t ms); -#endif /* BOARD_H */ +#endif /* WOLFHAL_BOARD_H */ diff --git a/boards/stm32f091rc_nucleo/board.mk b/boards/stm32f091rc_nucleo/board.mk index 54cfcf5..294ab71 100644 --- a/boards/stm32f091rc_nucleo/board.mk +++ b/boards/stm32f091rc_nucleo/board.mk @@ -46,7 +46,7 @@ LINKER_SCRIPT ?= $(_BOARD_DIR)/linker.ld INCLUDE += -I$(_BOARD_DIR) -I$(WHAL_DIR)/boards/peripheral BOARD_SOURCE = $(_BOARD_DIR)/ivt.c -BOARD_SOURCE += $(_BOARD_DIR)/board.c +BOARD_SOURCE += $(_BOARD_DIR)/wolfHAL_board.c BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/flash.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/rng.c) diff --git a/boards/stm32f091rc_nucleo/board.c b/boards/stm32f091rc_nucleo/wolfHAL_board.c similarity index 98% rename from boards/stm32f091rc_nucleo/board.c rename to boards/stm32f091rc_nucleo/wolfHAL_board.c index d3a2d5e..61a987f 100644 --- a/boards/stm32f091rc_nucleo/board.c +++ b/boards/stm32f091rc_nucleo/wolfHAL_board.c @@ -1,4 +1,4 @@ -/* board.c +/* wolfHAL_board.c * * Copyright (C) 2026 wolfSSL Inc. * @@ -21,9 +21,9 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include -#include "peripheral.h" +#include "wolfHAL_peripheral.h" volatile uint32_t g_tick = 0; volatile uint8_t g_waiting = 0; diff --git a/boards/stm32f091rc_nucleo/board.h b/boards/stm32f091rc_nucleo/wolfHAL_board.h similarity index 98% rename from boards/stm32f091rc_nucleo/board.h rename to boards/stm32f091rc_nucleo/wolfHAL_board.h index 63c8f16..bedc7c8 100644 --- a/boards/stm32f091rc_nucleo/board.h +++ b/boards/stm32f091rc_nucleo/wolfHAL_board.h @@ -1,4 +1,4 @@ -/* board.h +/* wolfHAL_board.h * * Copyright (C) 2026 wolfSSL Inc. * @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#ifndef BOARD_H -#define BOARD_H +#ifndef WOLFHAL_BOARD_H +#define WOLFHAL_BOARD_H #include #include @@ -166,4 +166,4 @@ whal_Error Board_Init(void); whal_Error Board_Deinit(void); void Board_WaitMs(size_t ms); -#endif /* BOARD_H */ +#endif /* WOLFHAL_BOARD_H */ diff --git a/boards/stm32f302r8_nucleo/board.mk b/boards/stm32f302r8_nucleo/board.mk index fa5b30f..ebbccd1 100644 --- a/boards/stm32f302r8_nucleo/board.mk +++ b/boards/stm32f302r8_nucleo/board.mk @@ -48,7 +48,7 @@ LINKER_SCRIPT ?= $(_BOARD_DIR)/linker.ld INCLUDE += -I$(_BOARD_DIR) -I$(WHAL_DIR)/boards/peripheral BOARD_SOURCE = $(_BOARD_DIR)/ivt.c -BOARD_SOURCE += $(_BOARD_DIR)/board.c +BOARD_SOURCE += $(_BOARD_DIR)/wolfHAL_board.c BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/flash.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/rng.c) diff --git a/boards/stm32f302r8_nucleo/board.c b/boards/stm32f302r8_nucleo/wolfHAL_board.c similarity index 98% rename from boards/stm32f302r8_nucleo/board.c rename to boards/stm32f302r8_nucleo/wolfHAL_board.c index 732efe4..ed9a4f5 100644 --- a/boards/stm32f302r8_nucleo/board.c +++ b/boards/stm32f302r8_nucleo/wolfHAL_board.c @@ -1,4 +1,4 @@ -/* board.c +/* wolfHAL_board.c * * Copyright (C) 2026 wolfSSL Inc. * @@ -21,9 +21,9 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include -#include "peripheral.h" +#include "wolfHAL_peripheral.h" volatile uint32_t g_tick = 0; volatile uint8_t g_waiting = 0; diff --git a/boards/stm32f302r8_nucleo/board.h b/boards/stm32f302r8_nucleo/wolfHAL_board.h similarity index 98% rename from boards/stm32f302r8_nucleo/board.h rename to boards/stm32f302r8_nucleo/wolfHAL_board.h index 53d4d75..3b37980 100644 --- a/boards/stm32f302r8_nucleo/board.h +++ b/boards/stm32f302r8_nucleo/wolfHAL_board.h @@ -1,4 +1,4 @@ -/* board.h +/* wolfHAL_board.h * * Copyright (C) 2026 wolfSSL Inc. * @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#ifndef BOARD_H -#define BOARD_H +#ifndef WOLFHAL_BOARD_H +#define WOLFHAL_BOARD_H #include #include @@ -168,4 +168,4 @@ whal_Error Board_Init(void); whal_Error Board_Deinit(void); void Board_WaitMs(size_t ms); -#endif /* BOARD_H */ +#endif /* WOLFHAL_BOARD_H */ diff --git a/boards/stm32f411_blackpill/board.mk b/boards/stm32f411_blackpill/board.mk index ec3460c..a3e6fe2 100644 --- a/boards/stm32f411_blackpill/board.mk +++ b/boards/stm32f411_blackpill/board.mk @@ -44,7 +44,7 @@ LINKER_SCRIPT ?= $(_BOARD_DIR)/linker.ld INCLUDE += -I$(_BOARD_DIR) -I$(WHAL_DIR)/boards/peripheral BOARD_SOURCE = $(_BOARD_DIR)/ivt.c -BOARD_SOURCE += $(_BOARD_DIR)/board.c +BOARD_SOURCE += $(_BOARD_DIR)/wolfHAL_board.c BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/flash.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/rng.c) diff --git a/boards/stm32f411_blackpill/board.c b/boards/stm32f411_blackpill/wolfHAL_board.c similarity index 97% rename from boards/stm32f411_blackpill/board.c rename to boards/stm32f411_blackpill/wolfHAL_board.c index d61ad78..aedf277 100644 --- a/boards/stm32f411_blackpill/board.c +++ b/boards/stm32f411_blackpill/wolfHAL_board.c @@ -1,4 +1,4 @@ -/* board.c +/* wolfHAL_board.c * * Copyright (C) 2026 wolfSSL Inc. * @@ -23,9 +23,9 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include -#include "peripheral.h" +#include "wolfHAL_peripheral.h" /* SysTick timing */ volatile uint32_t g_tick = 0; @@ -46,7 +46,7 @@ whal_Timeout g_whalTimeout = { }; /* STM32F411CE sector layout (512 KB). Referenced by the flash singleton's - * cfg in board.h, so this must be globally visible (not static). */ + * cfg in wolfHAL_board.h, so this must be globally visible (not static). */ const whal_Stm32f4_Flash_Sector g_flashSectors[FLASH_SECTOR_COUNT] = { { .addr = 0x08000000, .size = 0x04000 }, /* Sector 0: 16 KB */ { .addr = 0x08004000, .size = 0x04000 }, /* Sector 1: 16 KB */ diff --git a/boards/stm32f411_blackpill/board.h b/boards/stm32f411_blackpill/wolfHAL_board.h similarity index 95% rename from boards/stm32f411_blackpill/board.h rename to boards/stm32f411_blackpill/wolfHAL_board.h index 95fc8b3..2e97906 100644 --- a/boards/stm32f411_blackpill/board.h +++ b/boards/stm32f411_blackpill/wolfHAL_board.h @@ -1,4 +1,4 @@ -/* board.h +/* wolfHAL_board.h * * Copyright (C) 2026 wolfSSL Inc. * @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#ifndef BOARD_H -#define BOARD_H +#ifndef WOLFHAL_BOARD_H +#define WOLFHAL_BOARD_H #include #include @@ -56,8 +56,8 @@ enum { #define BOARD_SPI_DEV (&g_whalSpi) #define BOARD_FLASH_DEV ((whal_Flash *)&whal_Stm32f4_Flash_Dev) -/* Flash sector layout (defined in board.c) — referenced by the flash singleton's - * cfg below. */ +/* Flash sector layout (defined in wolfHAL_board.c), referenced by the flash + * singleton's cfg below. */ #define FLASH_SECTOR_COUNT 8 extern const whal_Stm32f4_Flash_Sector g_flashSectors[FLASH_SECTOR_COUNT]; @@ -129,4 +129,4 @@ whal_Error Board_Init(void); whal_Error Board_Deinit(void); void Board_WaitMs(size_t ms); -#endif /* BOARD_H */ +#endif /* WOLFHAL_BOARD_H */ diff --git a/boards/stm32h563zi_nucleo/board.mk b/boards/stm32h563zi_nucleo/board.mk index b23be91..9564bfd 100644 --- a/boards/stm32h563zi_nucleo/board.mk +++ b/boards/stm32h563zi_nucleo/board.mk @@ -47,7 +47,7 @@ LINKER_SCRIPT ?= $(_BOARD_DIR)/linker.ld INCLUDE += -I$(_BOARD_DIR) -I$(WHAL_DIR)/boards/peripheral BOARD_SOURCE = $(_BOARD_DIR)/ivt.c -BOARD_SOURCE += $(_BOARD_DIR)/board.c +BOARD_SOURCE += $(_BOARD_DIR)/wolfHAL_board.c BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/flash.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/crypto.c) diff --git a/boards/stm32h563zi_nucleo/board.c b/boards/stm32h563zi_nucleo/wolfHAL_board.c similarity index 97% rename from boards/stm32h563zi_nucleo/board.c rename to boards/stm32h563zi_nucleo/wolfHAL_board.c index 48fbc7a..61560de 100644 --- a/boards/stm32h563zi_nucleo/board.c +++ b/boards/stm32h563zi_nucleo/wolfHAL_board.c @@ -1,4 +1,4 @@ -/* board.c +/* wolfHAL_board.c * * Copyright (C) 2026 wolfSSL Inc. * @@ -23,10 +23,10 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include #include -#include "peripheral.h" +#include "wolfHAL_peripheral.h" /* SysTick timing */ volatile uint32_t g_tick = 0; @@ -66,7 +66,7 @@ static const whal_Stm32h5_Rcc_PeriphClk g_ethClocks[] = { }; #define ETH_CLOCK_COUNT (sizeof(g_ethClocks) / sizeof(g_ethClocks[0])) -/* GPIO, RNG, ETH, EthPhy singletons live in board.h as `static const`. */ +/* GPIO, RNG, ETH, EthPhy singletons live in wolfHAL_board.h as `static const`. */ /* UART */ whal_Uart g_whalUart = { @@ -91,7 +91,7 @@ whal_Spi g_whalSpi = { }; /* Ethernet descriptor rings + buffer pool (referenced by the ETH singleton - * cfg in board.h). */ + * cfg in wolfHAL_board.h). */ whal_Stm32h5_Eth_TxDesc ethTxDescs[BOARD_ETH_TX_DESC_COUNT] __attribute__((aligned(16))); whal_Stm32h5_Eth_RxDesc ethRxDescs[BOARD_ETH_RX_DESC_COUNT] diff --git a/boards/stm32h563zi_nucleo/board.h b/boards/stm32h563zi_nucleo/wolfHAL_board.h similarity index 98% rename from boards/stm32h563zi_nucleo/board.h rename to boards/stm32h563zi_nucleo/wolfHAL_board.h index a22959d..4692fc3 100644 --- a/boards/stm32h563zi_nucleo/board.h +++ b/boards/stm32h563zi_nucleo/wolfHAL_board.h @@ -1,4 +1,4 @@ -/* board.h +/* wolfHAL_board.h * * Copyright (C) 2026 wolfSSL Inc. * @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#ifndef BOARD_H -#define BOARD_H +#ifndef WOLFHAL_BOARD_H +#define WOLFHAL_BOARD_H #include #include @@ -171,7 +171,7 @@ enum { }, \ } -/* ETH descriptor rings + buffer pool — defined in board.c, addresses +/* ETH descriptor rings + buffer pool — defined in wolfHAL_board.c, addresses * captured by the ETH singleton's cfg below at compile time. */ #define BOARD_ETH_TX_DESC_COUNT 4 #define BOARD_ETH_RX_DESC_COUNT 4 @@ -225,4 +225,4 @@ whal_Error Board_Init(void); whal_Error Board_Deinit(void); void Board_WaitMs(size_t ms); -#endif /* BOARD_H */ +#endif /* WOLFHAL_BOARD_H */ diff --git a/boards/stm32l152re_nucleo/board.mk b/boards/stm32l152re_nucleo/board.mk index fc13c7d..205c17f 100644 --- a/boards/stm32l152re_nucleo/board.mk +++ b/boards/stm32l152re_nucleo/board.mk @@ -48,7 +48,7 @@ LINKER_SCRIPT ?= $(_BOARD_DIR)/linker.ld INCLUDE += -I$(_BOARD_DIR) -I$(WHAL_DIR)/boards/peripheral BOARD_SOURCE = $(_BOARD_DIR)/ivt.c -BOARD_SOURCE += $(_BOARD_DIR)/board.c +BOARD_SOURCE += $(_BOARD_DIR)/wolfHAL_board.c BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/flash.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/rng.c) diff --git a/boards/stm32l152re_nucleo/board.c b/boards/stm32l152re_nucleo/wolfHAL_board.c similarity index 97% rename from boards/stm32l152re_nucleo/board.c rename to boards/stm32l152re_nucleo/wolfHAL_board.c index afe39a5..ed73ff9 100644 --- a/boards/stm32l152re_nucleo/board.c +++ b/boards/stm32l152re_nucleo/wolfHAL_board.c @@ -1,4 +1,4 @@ -/* board.c +/* wolfHAL_board.c * * Copyright (C) 2026 wolfSSL Inc. * @@ -21,9 +21,9 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include -#include "peripheral.h" +#include "wolfHAL_peripheral.h" volatile uint32_t g_tick = 0; volatile uint8_t g_waiting = 0; @@ -69,7 +69,7 @@ static const whal_Stm32l1_Rcc_PeriphClk g_periphClks[] = { }; #define PERIPH_CLK_COUNT (sizeof(g_periphClks) / sizeof(g_periphClks[0])) -/* PWR singleton lives in board.h as `static const`. */ +/* PWR singleton lives in wolfHAL_board.h as `static const`. */ /* UART -- USART2 at 115200 baud */ whal_Uart g_whalUart = { diff --git a/boards/stm32l152re_nucleo/board.h b/boards/stm32l152re_nucleo/wolfHAL_board.h similarity index 98% rename from boards/stm32l152re_nucleo/board.h rename to boards/stm32l152re_nucleo/wolfHAL_board.h index 28e27e9..63ff0b6 100644 --- a/boards/stm32l152re_nucleo/board.h +++ b/boards/stm32l152re_nucleo/wolfHAL_board.h @@ -1,4 +1,4 @@ -/* board.h +/* wolfHAL_board.h * * Copyright (C) 2026 wolfSSL Inc. * @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#ifndef BOARD_H -#define BOARD_H +#ifndef WOLFHAL_BOARD_H +#define WOLFHAL_BOARD_H #include #include @@ -168,4 +168,4 @@ whal_Error Board_Init(void); whal_Error Board_Deinit(void); void Board_WaitMs(size_t ms); -#endif /* BOARD_H */ +#endif /* WOLFHAL_BOARD_H */ diff --git a/boards/stm32n657a0_nucleo/board.mk b/boards/stm32n657a0_nucleo/board.mk index 6bb1fba..4484f40 100644 --- a/boards/stm32n657a0_nucleo/board.mk +++ b/boards/stm32n657a0_nucleo/board.mk @@ -65,7 +65,7 @@ LINKER_SCRIPT ?= $(_BOARD_DIR)/linker.ld INCLUDE += -I$(_BOARD_DIR) -I$(WHAL_DIR)/boards/peripheral BOARD_SOURCE = $(_BOARD_DIR)/ivt.c -BOARD_SOURCE += $(_BOARD_DIR)/board.c +BOARD_SOURCE += $(_BOARD_DIR)/wolfHAL_board.c BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/sensor.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/watchdog.c) diff --git a/boards/stm32n657a0_nucleo/board.c b/boards/stm32n657a0_nucleo/wolfHAL_board.c similarity index 99% rename from boards/stm32n657a0_nucleo/board.c rename to boards/stm32n657a0_nucleo/wolfHAL_board.c index 9762971..25d7045 100644 --- a/boards/stm32n657a0_nucleo/board.c +++ b/boards/stm32n657a0_nucleo/wolfHAL_board.c @@ -1,4 +1,4 @@ -/* board.c +/* wolfHAL_board.c * * Copyright (C) 2026 wolfSSL Inc. * @@ -23,10 +23,10 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include #include -#include "peripheral.h" +#include "wolfHAL_peripheral.h" /* SysTick timing */ volatile uint32_t g_tick = 0; @@ -127,7 +127,7 @@ whal_Uart g_whalUart = { }, }; -/* RNG, ETH, EthPhy, AES mode, HASH algorithm singletons live in board.h as +/* RNG, ETH, EthPhy, AES mode, HASH algorithm singletons live in wolfHAL_board.h as * `static const`. */ /* Crypto (CRYP hardware accelerator) — vtable dispatcher for whal_Crypto_Init/Deinit. */ diff --git a/boards/stm32n657a0_nucleo/board.h b/boards/stm32n657a0_nucleo/wolfHAL_board.h similarity index 98% rename from boards/stm32n657a0_nucleo/board.h rename to boards/stm32n657a0_nucleo/wolfHAL_board.h index 7beeb50..af08d8d 100644 --- a/boards/stm32n657a0_nucleo/board.h +++ b/boards/stm32n657a0_nucleo/wolfHAL_board.h @@ -1,4 +1,4 @@ -/* board.h +/* wolfHAL_board.h * * Copyright (C) 2026 wolfSSL Inc. * @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#ifndef BOARD_H -#define BOARD_H +#ifndef WOLFHAL_BOARD_H +#define WOLFHAL_BOARD_H #include #include @@ -289,7 +289,7 @@ enum { .crypto = (whal_Crypto *)&whal_Stm32wba_Hash_Dev, \ } -/* ETH descriptor rings + buffer pool. Live in board.c with the .axisram1 +/* ETH descriptor rings + buffer pool. Live in wolfHAL_board.c with the .axisram1 * section attribute; declared here so the ETH singleton cfg below can * take their addresses at compile time. */ #define BOARD_ETH_TX_DESC_COUNT 4 @@ -350,4 +350,4 @@ whal_Error Board_Init(void); whal_Error Board_Deinit(void); void Board_WaitMs(size_t ms); -#endif /* BOARD_H */ +#endif /* WOLFHAL_BOARD_H */ diff --git a/boards/stm32u5a5zj_nucleo/board.mk b/boards/stm32u5a5zj_nucleo/board.mk index 6b49b83..4aea426 100644 --- a/boards/stm32u5a5zj_nucleo/board.mk +++ b/boards/stm32u5a5zj_nucleo/board.mk @@ -57,7 +57,7 @@ LINKER_SCRIPT ?= $(_BOARD_DIR)/linker.ld INCLUDE += -I$(_BOARD_DIR) -I$(WHAL_DIR)/boards/peripheral BOARD_SOURCE = $(_BOARD_DIR)/ivt.c -BOARD_SOURCE += $(_BOARD_DIR)/board.c +BOARD_SOURCE += $(_BOARD_DIR)/wolfHAL_board.c BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/clock.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/uart.c) diff --git a/boards/stm32u5a5zj_nucleo/board.c b/boards/stm32u5a5zj_nucleo/wolfHAL_board.c similarity index 98% rename from boards/stm32u5a5zj_nucleo/board.c rename to boards/stm32u5a5zj_nucleo/wolfHAL_board.c index 22fa29f..280d01d 100644 --- a/boards/stm32u5a5zj_nucleo/board.c +++ b/boards/stm32u5a5zj_nucleo/wolfHAL_board.c @@ -1,4 +1,4 @@ -/* board.c +/* wolfHAL_board.c * * Copyright (C) 2026 wolfSSL Inc. * @@ -23,9 +23,9 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include -#include "peripheral.h" +#include "wolfHAL_peripheral.h" /* SysTick timing */ volatile uint32_t g_tick = 0; @@ -130,7 +130,7 @@ whal_Uart g_whalUart = { }; /* RNG, AES + mode, HASH + algorithm singletons are defined in their driver TUs - * from WHAL_CFG_* initializers in board.h. */ + * from WHAL_CFG_* initializers in wolfHAL_board.h. */ /* Hash (HASH hardware accelerator) — vtable dispatcher for whal_Crypto_Init/Deinit. */ whal_Crypto g_whalHash = { diff --git a/boards/stm32u5a5zj_nucleo/board.h b/boards/stm32u5a5zj_nucleo/wolfHAL_board.h similarity index 99% rename from boards/stm32u5a5zj_nucleo/board.h rename to boards/stm32u5a5zj_nucleo/wolfHAL_board.h index c11f654..8052714 100644 --- a/boards/stm32u5a5zj_nucleo/board.h +++ b/boards/stm32u5a5zj_nucleo/wolfHAL_board.h @@ -1,4 +1,4 @@ -/* board.h +/* wolfHAL_board.h * * Copyright (C) 2026 wolfSSL Inc. * @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#ifndef BOARD_H -#define BOARD_H +#ifndef WOLFHAL_BOARD_H +#define WOLFHAL_BOARD_H #include #include @@ -266,4 +266,4 @@ whal_Error Board_Init(void); whal_Error Board_Deinit(void); void Board_WaitMs(size_t ms); -#endif /* BOARD_H */ +#endif /* WOLFHAL_BOARD_H */ diff --git a/boards/stm32wb05kz_nucleo/board.mk b/boards/stm32wb05kz_nucleo/board.mk index 0597e52..0a54348 100644 --- a/boards/stm32wb05kz_nucleo/board.mk +++ b/boards/stm32wb05kz_nucleo/board.mk @@ -49,7 +49,7 @@ LINKER_SCRIPT ?= $(_BOARD_DIR)/linker.ld INCLUDE += -I$(_BOARD_DIR) -I$(WHAL_DIR)/boards/peripheral BOARD_SOURCE = $(_BOARD_DIR)/ivt.c -BOARD_SOURCE += $(_BOARD_DIR)/board.c +BOARD_SOURCE += $(_BOARD_DIR)/wolfHAL_board.c BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/flash.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/sensor.c) diff --git a/boards/stm32wb05kz_nucleo/board.c b/boards/stm32wb05kz_nucleo/wolfHAL_board.c similarity index 99% rename from boards/stm32wb05kz_nucleo/board.c rename to boards/stm32wb05kz_nucleo/wolfHAL_board.c index f96806f..208902b 100644 --- a/boards/stm32wb05kz_nucleo/board.c +++ b/boards/stm32wb05kz_nucleo/wolfHAL_board.c @@ -1,4 +1,4 @@ -/* board.c +/* wolfHAL_board.c * * Copyright (C) 2026 wolfSSL Inc. * @@ -23,7 +23,7 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include /* Target SYSCLK 64 MHz from the HSI64M tree (PLL-locked onto the 32 MHz diff --git a/boards/stm32wb05kz_nucleo/board.h b/boards/stm32wb05kz_nucleo/wolfHAL_board.h similarity index 97% rename from boards/stm32wb05kz_nucleo/board.h rename to boards/stm32wb05kz_nucleo/wolfHAL_board.h index ced28d9..246a977 100644 --- a/boards/stm32wb05kz_nucleo/board.h +++ b/boards/stm32wb05kz_nucleo/wolfHAL_board.h @@ -1,4 +1,4 @@ -/* board.h +/* wolfHAL_board.h * * Copyright (C) 2026 wolfSSL Inc. * @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#ifndef BOARD_H -#define BOARD_H +#ifndef WOLFHAL_BOARD_H +#define WOLFHAL_BOARD_H #include #include @@ -63,8 +63,8 @@ enum { /* --- Single-instance device initializers --- * Each driver TU defines its singleton from these macros after #include - * "board.h". Names are WB0-prefixed; the alias header bridges them to the - * WB-prefixed names that the leaf drivers consume. + * "wolfHAL_board.h". Names are WB0-prefixed; the alias header bridges them + * to the WB-prefixed names that the leaf drivers consume. */ /* GPIO dev initializer — singleton defined in stm32wb0_gpio.c. */ @@ -196,4 +196,4 @@ whal_Error Board_Init(void); whal_Error Board_Deinit(void); void Board_WaitMs(size_t ms); -#endif /* BOARD_H */ +#endif /* WOLFHAL_BOARD_H */ diff --git a/boards/stm32wb55xx_nucleo/board.mk b/boards/stm32wb55xx_nucleo/board.mk index e28138a..c65dc0a 100644 --- a/boards/stm32wb55xx_nucleo/board.mk +++ b/boards/stm32wb55xx_nucleo/board.mk @@ -58,7 +58,7 @@ LINKER_SCRIPT ?= $(_BOARD_DIR)/linker.ld INCLUDE += -I$(_BOARD_DIR) -I$(WHAL_DIR)/boards/peripheral BOARD_SOURCE = $(_BOARD_DIR)/ivt.c -BOARD_SOURCE += $(_BOARD_DIR)/board.c +BOARD_SOURCE += $(_BOARD_DIR)/wolfHAL_board.c BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/flash.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/sensor.c) diff --git a/boards/stm32wb55xx_nucleo/board.c b/boards/stm32wb55xx_nucleo/wolfHAL_board.c similarity index 99% rename from boards/stm32wb55xx_nucleo/board.c rename to boards/stm32wb55xx_nucleo/wolfHAL_board.c index b149b07..a528426 100644 --- a/boards/stm32wb55xx_nucleo/board.c +++ b/boards/stm32wb55xx_nucleo/wolfHAL_board.c @@ -1,4 +1,4 @@ -/* board.c +/* wolfHAL_board.c * * Copyright (C) 2026 wolfSSL Inc. * @@ -23,9 +23,9 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include -#include "peripheral.h" +#include "wolfHAL_peripheral.h" /* SysTick timing */ diff --git a/boards/stm32wb55xx_nucleo/board.h b/boards/stm32wb55xx_nucleo/wolfHAL_board.h similarity index 99% rename from boards/stm32wb55xx_nucleo/board.h rename to boards/stm32wb55xx_nucleo/wolfHAL_board.h index 3a01646..91444c8 100644 --- a/boards/stm32wb55xx_nucleo/board.h +++ b/boards/stm32wb55xx_nucleo/wolfHAL_board.h @@ -1,4 +1,4 @@ -/* board.h +/* wolfHAL_board.h * * Copyright (C) 2026 wolfSSL Inc. * @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#ifndef BOARD_H -#define BOARD_H +#ifndef WOLFHAL_BOARD_H +#define WOLFHAL_BOARD_H #include #include @@ -246,4 +246,4 @@ whal_Error Board_Init(void); whal_Error Board_Deinit(void); void Board_WaitMs(size_t ms); -#endif /* BOARD_H */ +#endif /* WOLFHAL_BOARD_H */ diff --git a/boards/stm32wba55cg_nucleo/board.mk b/boards/stm32wba55cg_nucleo/board.mk index 4211a6e..9115841 100644 --- a/boards/stm32wba55cg_nucleo/board.mk +++ b/boards/stm32wba55cg_nucleo/board.mk @@ -58,7 +58,7 @@ LINKER_SCRIPT ?= $(_BOARD_DIR)/linker.ld INCLUDE += -I$(_BOARD_DIR) -I$(WHAL_DIR)/boards/peripheral BOARD_SOURCE = $(_BOARD_DIR)/ivt.c -BOARD_SOURCE += $(_BOARD_DIR)/board.c +BOARD_SOURCE += $(_BOARD_DIR)/wolfHAL_board.c BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/clock.c) BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/uart.c) diff --git a/boards/stm32wba55cg_nucleo/board.c b/boards/stm32wba55cg_nucleo/wolfHAL_board.c similarity index 98% rename from boards/stm32wba55cg_nucleo/board.c rename to boards/stm32wba55cg_nucleo/wolfHAL_board.c index 5e0838c..b58ffac 100644 --- a/boards/stm32wba55cg_nucleo/board.c +++ b/boards/stm32wba55cg_nucleo/wolfHAL_board.c @@ -1,4 +1,4 @@ -/* board.c +/* wolfHAL_board.c * * Copyright (C) 2026 wolfSSL Inc. * @@ -23,9 +23,9 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include -#include "peripheral.h" +#include "wolfHAL_peripheral.h" /* SysTick timing */ volatile uint32_t g_tick = 0; @@ -152,7 +152,7 @@ whal_Uart g_whalUart = { #endif /* RNG, AES + mode, HASH + algorithm singletons are defined in their driver TUs - * from WHAL_CFG_* initializers in board.h. */ + * from WHAL_CFG_* initializers in wolfHAL_board.h. */ /* Hash (HASH hardware accelerator) — vtable dispatcher for whal_Crypto_Init/Deinit. */ whal_Crypto g_whalHash = { diff --git a/boards/stm32wba55cg_nucleo/board.h b/boards/stm32wba55cg_nucleo/wolfHAL_board.h similarity index 99% rename from boards/stm32wba55cg_nucleo/board.h rename to boards/stm32wba55cg_nucleo/wolfHAL_board.h index b17e638..20ddd68 100644 --- a/boards/stm32wba55cg_nucleo/board.h +++ b/boards/stm32wba55cg_nucleo/wolfHAL_board.h @@ -1,4 +1,4 @@ -/* board.h +/* wolfHAL_board.h * * Copyright (C) 2026 wolfSSL Inc. * @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#ifndef BOARD_H -#define BOARD_H +#ifndef WOLFHAL_BOARD_H +#define WOLFHAL_BOARD_H #include #include @@ -265,4 +265,4 @@ whal_Error Board_Init(void); whal_Error Board_Deinit(void); void Board_WaitMs(size_t ms); -#endif /* BOARD_H */ +#endif /* WOLFHAL_BOARD_H */ diff --git a/docs/adding_a_board.md b/docs/adding_a_board.md index ef9ffc1..ac540b5 100644 --- a/docs/adding_a_board.md +++ b/docs/adding_a_board.md @@ -10,17 +10,17 @@ directory under `boards/` named `_/`. ## Required Files -### board.h +### wolfHAL_board.h -`board.h` is where the board describes each peripheral to the rest of the +`wolfHAL_board.h` is where the board describes each peripheral to the rest of the project. It contains four kinds of declaration: 1. `extern` globals for vtable-dispatched drivers (`g_whalUart`, - `g_whalSpi`, `g_whalI2c`, ...) defined over in `board.c`. + `g_whalSpi`, `g_whalI2c`, ...) defined over in `wolfHAL_board.c`. 2. `WHAL_CFG___DEV` initializer macros that each single-instance driver `.c` uses to define its `whal___Dev` singleton. The driver header `extern`-declares the singleton; the `.c` `#include`s - `board.h` and writes `const whal_ whal___Dev = WHAL_CFG___DEV;`. + `wolfHAL_board.h` and writes `const whal_ whal___Dev = WHAL_CFG___DEV;`. 3. `BOARD__DEV` macros that the application and tests use to reach each peripheral — these resolve to either `WHAL_INTERNAL_DEV` (driver ignores it) or to a cast pointer at the singleton @@ -29,7 +29,7 @@ project. It contains four kinds of declaration: `Board_Init` / `Board_Deinit` / `Board_WaitMs` prototypes. ```c -/* board.h */ +/* wolfHAL_board.h */ #include #include @@ -51,7 +51,7 @@ extern whal_Timeout g_whalTimeout; /* Initializer for the GPIO single-instance device. The driver header extern-declares * whal_Myplatform_Gpio_Dev; the driver .c writes * const whal_Gpio whal_Myplatform_Gpio_Dev = WHAL_CFG_MYPLATFORM_GPIO_DEV; - * after #include "board.h". */ + * after #include "wolfHAL_board.h". */ #define WHAL_CFG_MYPLATFORM_GPIO_DEV { \ .base = WHAL_MYPLATFORM_GPIO_BASE, \ /* .driver: direct API mapping */ \ @@ -74,12 +74,12 @@ whal_Error Board_Deinit(void); void Board_WaitMs(size_t ms); ``` -### board.c +### wolfHAL_board.c -Defines the `extern` device instances declared in `board.h` (the +Defines the `extern` device instances declared in `wolfHAL_board.h` (the vtable-dispatched ones) and implements `Board_Init()` / `Board_Deinit()`. Single-instance singletons are defined in their driver `.c` files from the -`WHAL_CFG___DEV` initializers in `board.h`; `board.c` does not +`WHAL_CFG___DEV` initializers in `wolfHAL_board.h`; `wolfHAL_board.c` does not need to declare or initialize them. `Board_Init()` is responsible for initializing all peripherals in @@ -91,9 +91,9 @@ present) may need to come before the clock. It should return `Board_Deinit()` tears down peripherals in reverse order. ```c -#include "board.h" +#include "wolfHAL_board.h" #include -#include "peripheral.h" +#include "wolfHAL_peripheral.h" whal_Uart g_whalUart = { .base = WHAL_MYPLATFORM_UART1_BASE, @@ -134,7 +134,7 @@ whal_Error Board_Init(void) /* Initialize devices. Pass the corresponding BOARD__DEV * macro — it will be WHAL_INTERNAL_DEV for single-instance drivers or * &g_whal for vtable-dispatched drivers, whichever this board - * declared in board.h. */ + * declared in wolfHAL_board.h. */ err = whal_Gpio_Init(BOARD_GPIO_DEV); if (err) return err; @@ -169,7 +169,7 @@ calls (`whal_Flash_Read`, etc.) can vtable-dispatch through it. type so the dispatcher signature accepts it: ```c -/* board.h */ +/* wolfHAL_board.h */ #define WHAL_CFG_MYPLATFORM_FLASH_DEV { \ .driver = WHAL_MYPLATFORM_FLASH_DRIVER, \ .base = WHAL_MYPLATFORM_FLASH_BASE, \ @@ -179,7 +179,7 @@ type so the dispatcher signature accepts it: #define BOARD_FLASH_DEV ((whal_Flash *)&whal_Myplatform_Flash_Dev) /* src/flash/myplatform_flash.c — driver TU owns the singleton. */ -#include "board.h" +#include "wolfHAL_board.h" const whal_Flash whal_Myplatform_Flash_Dev = WHAL_CFG_MYPLATFORM_FLASH_DEV; ``` @@ -194,7 +194,7 @@ cause an unexpected reset. The application or test should call `whal_Watchdog_Init(BOARD_WATCHDOG_DEV)` directly when it is ready to begin refreshing. The board still declares the watchdog device (whether through a `WHAL_CFG___DEV` initializer that the driver `.c` -consumes or as `g_whalWatchdog` in `board.c`, depending on the driver), +consumes or as `g_whalWatchdog` in `wolfHAL_board.c`, depending on the driver), points `BOARD_WATCHDOG_DEV` at it, and enables any required clocks (e.g., WWDG APB clock, IWDG LSI oscillator) in `Board_Init()` so the watchdog is ready to be started. @@ -247,7 +247,7 @@ LINKER_SCRIPT = $(_BOARD_DIR)/linker.ld INCLUDE += -I$(_BOARD_DIR) -I$(WHAL_DIR)/boards/peripheral -BOARD_SOURCE = $(_BOARD_DIR)/board.c +BOARD_SOURCE = $(_BOARD_DIR)/wolfHAL_board.c BOARD_SOURCE += $(_BOARD_DIR)/ivt.c BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*.c) # Dispatch sources for mapped types are excluded; keep dispatch sources @@ -271,7 +271,7 @@ Two families of build-time knobs commonly appear in `board.mk`: - `WHAL_CFG___SINGLE_INSTANCE` makes a conditionally single-instance driver read its `.base` and `.cfg` from the corresponding `whal___Dev` singleton (defined in the driver - `.c` from the `WHAL_CFG___DEV` initializer in `board.h`) + `.c` from the `WHAL_CFG___DEV` initializer in `wolfHAL_board.h`) instead of dereferencing the handle argument. The flag is per-driver per-platform; default builds keep the pointer-based path. Other drivers are unconditionally single-instance and need no flag — their @@ -282,7 +282,7 @@ Two families of build-time knobs commonly appear in `board.mk`: Boards support optional external peripheral devices (e.g., SPI-NOR flash, SD cards) through the peripheral system in `boards/peripheral/`. To enable this: -1. Include `peripheral.h` in `board.c` and add the peripheral include path +1. Include `wolfHAL_peripheral.h` in `wolfHAL_board.c` and add the peripheral include path (`-I$(WHAL_DIR)/boards/peripheral`) in `board.mk`. 2. Include `boards/peripheral/board.mk` at the end of the board's diff --git a/docs/adding_a_peripheral.md b/docs/adding_a_peripheral.md index 629e104..20b121d 100644 --- a/docs/adding_a_peripheral.md +++ b/docs/adding_a_peripheral.md @@ -8,7 +8,7 @@ > > **In an actual application project**, you would not use this registry. > You would simply define the peripheral instances you need directly in -> your `board.c` (the same way you define `g_whalUart`, `g_whalSpi`, etc.) +> your `wolfHAL_board.c` (the same way you define `g_whalUart`, `g_whalSpi`, etc.) > and call them directly from your application. The registry adds a layer > of indirection that's only worth its cost when you're trying to > mix-and-match peripherals across many boards from a single test binary. @@ -24,7 +24,7 @@ A peripheral consists of three parts: 1. A **device configuration file** that instantiates the device with board-specific parameters (SPI bus, CS pin, clock speed, etc.) -2. An **entry in the peripheral registry** (`peripheral.c`) so that board init +2. An **entry in the peripheral registry** (`wolfHAL_peripheral.c`) so that board init and tests can discover the device 3. A **board.mk entry** to conditionally compile the peripheral and its driver source @@ -35,8 +35,8 @@ Peripherals are organized by device type under `boards/peripheral/`: ``` boards/peripheral/ - peripheral.h # Registry structs and extern arrays - peripheral.c # Registry arrays (g_peripheralBlock[], g_peripheralFlash[], g_peripheralSensor[]) + wolfHAL_peripheral.h # Registry structs and extern arrays + wolfHAL_peripheral.c # Registry arrays (g_peripheralBlock[], g_peripheralFlash[], g_peripheralSensor[]) board.mk # Conditional build rules block/ sdhc_spi_sdcard32gb.h @@ -77,12 +77,12 @@ Define the device instance with its configuration. The device reaches its underlying bus (SPI here) and any other host-side peripherals through the board's `BOARD__DEV` macros so the same peripheral source works regardless of how each board has wired those drivers. Other board values -(`SPI_CS_PIN`, `g_whalTimeout`) come from `board.h` directly: +(`SPI_CS_PIN`, `g_whalTimeout`) come from `wolfHAL_board.h` directly: ```c #include "spi_nor_w25q64.h" #include -#include "board.h" +#include "wolfHAL_board.h" #define W25Q64_PAGE_SZ 256 #define W25Q64_CAPACITY (8 * 1024 * 1024) @@ -108,11 +108,11 @@ whal_Flash g_whalSpiNorW25q64 = { }; ``` -## Step 2: Register in peripheral.c +## Step 2: Register in wolfHAL_peripheral.c Add a conditional include and an entry in the appropriate registry array. -In `peripheral.c`: +In `wolfHAL_peripheral.c`: ```c #ifdef PERIPHERAL_SPI_NOR_W25Q64 @@ -135,7 +135,7 @@ whal_PeripheralFlash_Cfg g_peripheralFlash[] = { }; ``` -The registry structs are defined in `peripheral.h`: +The registry structs are defined in `wolfHAL_peripheral.h`: - `whal_PeripheralBlock_Cfg` for block devices (`g_peripheralBlock[]`) - `whal_PeripheralFlash_Cfg` for flash devices (`g_peripheralFlash[]`) diff --git a/docs/adding_a_test.md b/docs/adding_a_test.md index 9874da3..d107467 100644 --- a/docs/adding_a_test.md +++ b/docs/adding_a_test.md @@ -24,7 +24,7 @@ function returns early and the test is marked as failed. Generic tests exercise the wolfHAL API using only the public interface. They reach peripherals through the `BOARD__DEV` macros and board -constants from `board.h` (e.g., `BOARD_GPIO_DEV`, `BOARD_LED_PIN`), so they +constants from `wolfHAL_board.h` (e.g., `BOARD_GPIO_DEV`, `BOARD_LED_PIN`), so they run on any board that supports the device type without modification — the board decides whether `BOARD__DEV` resolves to `WHAL_INTERNAL_DEV` or to a pointer such as `&g_whalUart`. @@ -38,7 +38,7 @@ Create `tests//test_.c`: ```c #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static void Test_Foo_BasicOperation(void) @@ -75,7 +75,7 @@ Create `tests//test__.c`: #include #include /_.h> #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static void Test_Foo_SomeRegister(void) @@ -83,7 +83,7 @@ static void Test_Foo_SomeRegister(void) size_t val = 0; /* Read the register block base from the platform's singleton (extern-declared * in the driver header; defined in the driver .c from the WHAL_CFG___DEV - * initializer in board.h). For vtable-dispatched drivers, use + * initializer in wolfHAL_board.h). For vtable-dispatched drivers, use * BOARD_FOO_DEV->base instead. */ whal_Reg_Get(whal__Foo_Dev.base, REG_OFFSET, MASK, POS, &val); WHAL_ASSERT_EQ(val, EXPECTED); diff --git a/docs/adding_an_example.md b/docs/adding_an_example.md index ba7939f..dd05d2f 100644 --- a/docs/adding_an_example.md +++ b/docs/adding_an_example.md @@ -19,14 +19,14 @@ Create `examples//` with two files: ```c #include -#include "board.h" +#include "wolfHAL_board.h" void main(void) { if (Board_Init() != WHAL_SUCCESS) goto loop; - /* Application code using the BOARD__DEV macros from board.h */ + /* Application code using the BOARD__DEV macros from wolfHAL_board.h */ whal_Gpio_Set(BOARD_GPIO_DEV, BOARD_LED_PIN, 1); whal_Uart_Send(BOARD_UART_DEV, "Hello!\r\n", 8); @@ -37,7 +37,7 @@ loop: Key points: - Include `wolfHAL/wolfHAL.h` for the wolfHAL API -- Include `board.h` for peripheral device macros and board constants +- Include `wolfHAL_board.h` for peripheral device macros and board constants - Call `Board_Init()` before using any peripherals - Use the `BOARD__DEV` macros (e.g., `BOARD_GPIO_DEV`, `BOARD_UART_DEV`) for the device handle. Each board defines these to diff --git a/docs/getting_started.md b/docs/getting_started.md index 05eda96..56a10e3 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -11,8 +11,8 @@ my_project/ wolfHAL/ wolfHAL repository (submodule, copy, etc.) boards/ / - board.h Per-peripheral DEV macros and config initializers - board.c Pointer-based device globals and Board_Init + wolfHAL_board.h Per-peripheral DEV macros and config initializers + wolfHAL_board.c Pointer-based device globals and Board_Init ivt.c Interrupt vector table and Reset_Handler linker.ld Linker script for your MCU board.mk Toolchain, source list, and feature flags @@ -101,7 +101,7 @@ whal_Error whal_Stm32wb_Uart_Send(whal_Uart *dev, ...) } ``` -The board declares the device as a global in `board.c`. The +The board declares the device as a global in `wolfHAL_board.c`. The caller passes it through the API. **Single-instance.** The driver reads `.base` and `.cfg` from a named @@ -121,7 +121,7 @@ whal_Error whal_Stm32wb_Rng_Generate(whal_Rng *dev, ...) ``` ```c -/* board.h */ +/* wolfHAL_board.h */ #define WHAL_CFG_STM32WB_RNG_DEV { \ .base = WHAL_STM32WB_RNG_BASE, \ .cfg = &(whal_Stm32wb_Rng_Cfg) {...} \ @@ -131,7 +131,7 @@ whal_Error whal_Stm32wb_Rng_Generate(whal_Rng *dev, ...) The single-instance device struct is *defined* in the driver `.c`, initialized from a `WHAL_CFG___DEV` macro the board supplies -in `board.h`. The driver `#include`s `board.h` to pull in the +in `wolfHAL_board.h`. The driver `#include`s `wolfHAL_board.h` to pull in the initializer. Callers pass `WHAL_INTERNAL_DEV` (defined as `((void *)0)`) at the call site to make the intent explicit. @@ -140,7 +140,7 @@ at the call site to make the intent explicit. Some boards only wire one instance of a multi-instance capable driver. In that case the driver can be compiled in its single-instance form by defining `WHAL_CFG___SINGLE_INSTANCE` in `board.mk`. The board -then supplies a `WHAL_CFG___DEV` initializer in `board.h` and +then supplies a `WHAL_CFG___DEV` initializer in `wolfHAL_board.h` and points `BOARD__DEV` at `WHAL_INTERNAL_DEV`, exactly as it would for any unconditional single-instance driver. @@ -152,7 +152,7 @@ CFLAGS += -DWHAL_CFG_STM32WB_UART_SINGLE_INSTANCE ``` ```c -/* board.h */ +/* wolfHAL_board.h */ #define WHAL_CFG_STM32WB_UART_DEV { \ .base = WHAL_STM32WB55_UART1_BASE, \ /* .driver: direct API mapping */ \ @@ -190,7 +190,7 @@ const whal_UartDriver whal_Stm32wb_Uart_Driver = { ... }; -/* board.c — vtable dispatch */ +/* wolfHAL_board.c — vtable dispatch */ whal_Flash g_whalFlash = { .base = WHAL_STM32WB55_FLASH_BASE, .driver = &whal_Stm32wb_Uart_Driver, @@ -209,7 +209,7 @@ CFLAGS += -DWHAL_CFG_STM32WB_UART_SINGLE_INSTANCE ``` ```c -/* board.c — direct API mapping */ +/* wolfHAL_board.c — direct API mapping */ whal_Uart g_whalUart = { .base = WHAL_STM32WB55_UART1_BASE, /* .driver: direct API mapping */ @@ -246,7 +246,7 @@ the board calls in order. There is no generic `whal_Clock_Init` walker — clock-tree shape varies too much across vendors to abstract. ```c -/* board.c */ +/* wolfHAL_board.c */ static const whal_Myplatform_Clock_PeriphClk g_periphClks[] = { {WHAL_MYPLATFORM_GPIOB_GATE}, @@ -289,7 +289,7 @@ See the board examples in `boards/` for complete sequences. ```c /* Include the wolfHAL and board header */ #include -#include "board.h" +#include "wolfHAL_board.h" void main(void) { diff --git a/docs/writing_a_driver.md b/docs/writing_a_driver.md index de503f2..9f1cfa9 100644 --- a/docs/writing_a_driver.md +++ b/docs/writing_a_driver.md @@ -148,7 +148,7 @@ Single-instance device drivers must define the device struct within the driver extern const whal_Uart whal_Myplatform_Uart_Dev; /* src/uart/myplatform_uart.c */ -#include "board.h" /* provides WHAL_CFG_MYPLATFORM_UART_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_MYPLATFORM_UART_DEV initializer */ const whal_Uart whal_Myplatform_Uart_Dev = WHAL_CFG_MYPLATFORM_UART_DEV; whal_Error whal_Myplatform_Uart_Init(whal_Uart *uartDev) @@ -167,7 +167,7 @@ multi-instance device. For example: the STM32WB platform has multiple UART devices, each with their own register map offset. Since the user could use multiple instances of the device the user must define -the device struct within the board.c and pass it in as a function argument. The +the device struct within the wolfHAL_board.c and pass it in as a function argument. The driver must determine this at runtime like so: ```c @@ -196,7 +196,7 @@ extern const whal_Uart whal_Myplatform_Uart_Dev; /* src/uart/myplatform_uart.c */ #ifdef WHAL_CFG_MYPLATFORM_UART_SINGLE_INSTANCE -#include "board.h" /* provides WHAL_CFG_MYPLATFORM_UART_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_MYPLATFORM_UART_DEV initializer */ const whal_Uart whal_Myplatform_Uart_Dev = WHAL_CFG_MYPLATFORM_UART_DEV; #endif @@ -440,7 +440,7 @@ devices without knowing the register addresses or driver symbols: The board uses these in device struct initializers: ```c -/* board.c */ +/* wolfHAL_board.c */ #include whal_Uart g_whalUart = { @@ -1297,7 +1297,7 @@ hardware retains all necessary context internally. Applications reach each algorithm through its `BOARD__DEV` macro (`BOARD_AES_GCM_DEV`, `BOARD_SHA256_DEV`, etc.). Boards point those at `WHAL_INTERNAL_DEV` for the common single-instance case or at a -`&g_whalAesGcm` pointer if they have kept the device in `board.c`. +`&g_whalAesGcm` pointer if they have kept the device in `wolfHAL_board.c`. One-shot: @@ -1587,12 +1587,12 @@ qualify, since the chip exposes one of each) follow the pattern in the "Single-instance drivers" section above: the driver header `extern`-declares each singleton (the `whal_Crypto` peripheral and each per-algorithm `whal___Dev`), the driver `.c` defines them -from `WHAL_CFG___DEV` initializers in `board.h`, and any +from `WHAL_CFG___DEV` initializers in `wolfHAL_board.h`, and any streaming state is a `static` variable in the driver `.c` whose address the initializer plumbs into the `.state` field. The per-algorithm initializer's `.crypto` is the cast address of the `whal_Crypto` singleton. The board's `BOARD__DEV` macro is then -`WHAL_INTERNAL_DEV`. See `boards/stm32wb55xx_nucleo/board.h` for a +`WHAL_INTERNAL_DEV`. See `boards/stm32wb55xx_nucleo/wolfHAL_board.h` for a worked example. ### Reference Implementations diff --git a/examples/blinky/main.c b/examples/blinky/main.c index 849d63f..8f233fd 100644 --- a/examples/blinky/main.c +++ b/examples/blinky/main.c @@ -21,7 +21,7 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" void main(void) { diff --git a/src/block/sdhc_spi_block.c b/src/block/sdhc_spi_block.c index 79857c5..58c97dd 100644 --- a/src/block/sdhc_spi_block.c +++ b/src/block/sdhc_spi_block.c @@ -21,7 +21,7 @@ #include #ifdef WHAL_CFG_SDHC_SPI_SINGLE_INSTANCE -#include "board.h" /* provides whal_SdhcSpi_Dev singleton */ +#include "wolfHAL_board.h" /* provides whal_SdhcSpi_Dev singleton */ #endif #include #include diff --git a/src/crypto/stm32n6_cryp.c b/src/crypto/stm32n6_cryp.c index e23d0f8..5562da5 100644 --- a/src/crypto/stm32n6_cryp.c +++ b/src/crypto/stm32n6_cryp.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32N6_CRYP*_DEV initializers */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32N6_CRYP*_DEV initializers */ #include #include #include diff --git a/src/crypto/stm32wb_aes.c b/src/crypto/stm32wb_aes.c index ae5c993..07e70de 100644 --- a/src/crypto/stm32wb_aes.c +++ b/src/crypto/stm32wb_aes.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32WB_AES*_DEV initializers */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32WB_AES*_DEV initializers */ #include #include #include diff --git a/src/crypto/stm32wb_pka.c b/src/crypto/stm32wb_pka.c index e136a00..afa93b3 100644 --- a/src/crypto/stm32wb_pka.c +++ b/src/crypto/stm32wb_pka.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32WB_PKA_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32WB_PKA_DEV initializer */ #include #include #include diff --git a/src/crypto/stm32wba_hash.c b/src/crypto/stm32wba_hash.c index 0af2fd8..8a725a9 100644 --- a/src/crypto/stm32wba_hash.c +++ b/src/crypto/stm32wba_hash.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32WBA_HASH*_DEV initializers */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32WBA_HASH*_DEV initializers */ #include #include #include diff --git a/src/display/sharp_memory_display.c b/src/display/sharp_memory_display.c index ae6f493..21d7773 100644 --- a/src/display/sharp_memory_display.c +++ b/src/display/sharp_memory_display.c @@ -22,7 +22,7 @@ #include #include #ifdef WHAL_CFG_SHARPMEMORY_DISPLAY_SINGLE_INSTANCE -#include "board.h" /* provides WHAL_CFG_SHARPMEMORY_DISPLAY_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_SHARPMEMORY_DISPLAY_DEV initializer */ #endif #include #include diff --git a/src/dma/stm32wb_dma.c b/src/dma/stm32wb_dma.c index bd5bb31..f6d4ad5 100644 --- a/src/dma/stm32wb_dma.c +++ b/src/dma/stm32wb_dma.c @@ -21,7 +21,7 @@ #include #ifdef WHAL_CFG_STM32WB_DMA_SINGLE_INSTANCE -#include "board.h" /* provides whal_Stm32wb_Dma_Dev singleton */ +#include "wolfHAL_board.h" /* provides whal_Stm32wb_Dma_Dev singleton */ #endif #include #include diff --git a/src/dma/stm32wba_gpdma.c b/src/dma/stm32wba_gpdma.c index f70151e..4012fea 100644 --- a/src/dma/stm32wba_gpdma.c +++ b/src/dma/stm32wba_gpdma.c @@ -22,7 +22,7 @@ #include #include #ifdef WHAL_CFG_STM32WBA_GPDMA_SINGLE_INSTANCE -#include "board.h" /* provides whal_Stm32wba_Gpdma_Dev singleton (possibly via platform alias macro) */ +#include "wolfHAL_board.h" /* provides whal_Stm32wba_Gpdma_Dev singleton (possibly via platform alias macro) */ #endif #include #include diff --git a/src/eth/stm32h5_eth.c b/src/eth/stm32h5_eth.c index 048cb69..44580b2 100644 --- a/src/eth/stm32h5_eth.c +++ b/src/eth/stm32h5_eth.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32H5_ETH_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32H5_ETH_DEV initializer */ #include #include #include @@ -30,7 +30,7 @@ const whal_Eth whal_Stm32h5_Eth_Dev = WHAL_CFG_STM32H5_ETH_DEV; /* Driver-internal runtime state. The const cfg lives in the singleton above - * (initialized from board.h), so cfg field accesses fold without LTO; the + * (initialized from wolfHAL_board.h), so cfg field accesses fold without LTO; the * mutable ring-tracking state stays here, separate from the cfg. */ static struct { size_t txHead; diff --git a/src/eth/stm32n6_eth.c b/src/eth/stm32n6_eth.c index 5f73c9a..3bd53ed 100644 --- a/src/eth/stm32n6_eth.c +++ b/src/eth/stm32n6_eth.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32N6_ETH_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32N6_ETH_DEV initializer */ #include #include #include diff --git a/src/eth_phy/lan8742a_eth_phy.c b/src/eth_phy/lan8742a_eth_phy.c index ef443dc..4179961 100644 --- a/src/eth_phy/lan8742a_eth_phy.c +++ b/src/eth_phy/lan8742a_eth_phy.c @@ -19,7 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#include "board.h" /* provides WHAL_CFG_LAN8742A_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_LAN8742A_DEV initializer */ #include #include #include diff --git a/src/flash/pic32cz_flash.c b/src/flash/pic32cz_flash.c index 777dc19..65fe143 100644 --- a/src/flash/pic32cz_flash.c +++ b/src/flash/pic32cz_flash.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_PIC32CZ_FLASH_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_PIC32CZ_FLASH_DEV initializer */ #include #include #include diff --git a/src/flash/spi_nor_flash.c b/src/flash/spi_nor_flash.c index 525a21a..afbfb03 100644 --- a/src/flash/spi_nor_flash.c +++ b/src/flash/spi_nor_flash.c @@ -21,7 +21,7 @@ #include #ifdef WHAL_CFG_SPI_NOR_SINGLE_INSTANCE -#include "board.h" /* provides whal_SpiNor_Dev singleton */ +#include "wolfHAL_board.h" /* provides whal_SpiNor_Dev singleton */ #endif #include #include diff --git a/src/flash/stm32c0_flash.c b/src/flash/stm32c0_flash.c index 272d4bf..ed208b1 100644 --- a/src/flash/stm32c0_flash.c +++ b/src/flash/stm32c0_flash.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32C0_FLASH_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32C0_FLASH_DEV initializer */ #include #include #include diff --git a/src/flash/stm32f0_flash.c b/src/flash/stm32f0_flash.c index 83de759..191b102 100644 --- a/src/flash/stm32f0_flash.c +++ b/src/flash/stm32f0_flash.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32F0_FLASH_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32F0_FLASH_DEV initializer */ #include #include #include diff --git a/src/flash/stm32f4_flash.c b/src/flash/stm32f4_flash.c index 67b41ed..fe47295 100644 --- a/src/flash/stm32f4_flash.c +++ b/src/flash/stm32f4_flash.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32F4_FLASH_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32F4_FLASH_DEV initializer */ #include #include #include diff --git a/src/flash/stm32h5_flash.c b/src/flash/stm32h5_flash.c index a02f38e..70f24c5 100644 --- a/src/flash/stm32h5_flash.c +++ b/src/flash/stm32h5_flash.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32H5_FLASH_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32H5_FLASH_DEV initializer */ #include #include #include diff --git a/src/flash/stm32l1_flash.c b/src/flash/stm32l1_flash.c index de9b652..86194dd 100644 --- a/src/flash/stm32l1_flash.c +++ b/src/flash/stm32l1_flash.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32L1_FLASH_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32L1_FLASH_DEV initializer */ #include #include #include diff --git a/src/flash/stm32u5_flash.c b/src/flash/stm32u5_flash.c index 797ddd4..0602414 100644 --- a/src/flash/stm32u5_flash.c +++ b/src/flash/stm32u5_flash.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32U5_FLASH_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32U5_FLASH_DEV initializer */ #include #include #include diff --git a/src/flash/stm32wb0_flash.c b/src/flash/stm32wb0_flash.c index cbffde5..510646c 100644 --- a/src/flash/stm32wb0_flash.c +++ b/src/flash/stm32wb0_flash.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32WB0_FLASH_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32WB0_FLASH_DEV initializer */ #include #include #include diff --git a/src/flash/stm32wb_flash.c b/src/flash/stm32wb_flash.c index b96c481..50844dd 100644 --- a/src/flash/stm32wb_flash.c +++ b/src/flash/stm32wb_flash.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32WB_FLASH_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32WB_FLASH_DEV initializer */ #include #include #include diff --git a/src/flash/stm32wba_flash.c b/src/flash/stm32wba_flash.c index 72640e6..2206ee6 100644 --- a/src/flash/stm32wba_flash.c +++ b/src/flash/stm32wba_flash.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32WBA_FLASH_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32WBA_FLASH_DEV initializer */ #include #include #include diff --git a/src/gpio/pic32cz_gpio.c b/src/gpio/pic32cz_gpio.c index 697f7a3..9944516 100644 --- a/src/gpio/pic32cz_gpio.c +++ b/src/gpio/pic32cz_gpio.c @@ -19,7 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#include "board.h" /* provides WHAL_CFG_PIC32CZ_GPIO_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_PIC32CZ_GPIO_DEV initializer */ #include #include #include diff --git a/src/gpio/stm32wb0_gpio.c b/src/gpio/stm32wb0_gpio.c index 4720d5f..7be8e43 100644 --- a/src/gpio/stm32wb0_gpio.c +++ b/src/gpio/stm32wb0_gpio.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32WB0_GPIO_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32WB0_GPIO_DEV initializer */ #include #include #include diff --git a/src/gpio/stm32wb_gpio.c b/src/gpio/stm32wb_gpio.c index 2e39abd..081e2ae 100644 --- a/src/gpio/stm32wb_gpio.c +++ b/src/gpio/stm32wb_gpio.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32WB_GPIO_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32WB_GPIO_DEV initializer */ #include #include #include diff --git a/src/i2c/stm32l1_i2c.c b/src/i2c/stm32l1_i2c.c index 5a51416..6dacb8b 100644 --- a/src/i2c/stm32l1_i2c.c +++ b/src/i2c/stm32l1_i2c.c @@ -21,7 +21,7 @@ #include #ifdef WHAL_CFG_STM32L1_I2C_SINGLE_INSTANCE -#include "board.h" /* provides whal_Stm32l1_I2c_Dev singleton */ +#include "wolfHAL_board.h" /* provides whal_Stm32l1_I2c_Dev singleton */ #endif #include #include diff --git a/src/i2c/stm32wb_i2c.c b/src/i2c/stm32wb_i2c.c index 86e6338..b0fa5e5 100644 --- a/src/i2c/stm32wb_i2c.c +++ b/src/i2c/stm32wb_i2c.c @@ -21,7 +21,7 @@ #include #ifdef WHAL_CFG_STM32WB_I2C_SINGLE_INSTANCE -#include "board.h" /* provides whal_Stm32wb_I2c_Dev singleton (possibly via platform alias macro) */ +#include "wolfHAL_board.h" /* provides whal_Stm32wb_I2c_Dev singleton (possibly via platform alias macro) */ #endif #include #include diff --git a/src/irq/cortex_m4_nvic.c b/src/irq/cortex_m4_nvic.c index 484858e..28ce145 100644 --- a/src/irq/cortex_m4_nvic.c +++ b/src/irq/cortex_m4_nvic.c @@ -19,7 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#include "board.h" /* provides WHAL_CFG_NVIC_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_NVIC_DEV initializer */ #include #include #include diff --git a/src/rng/stm32h5_rng.c b/src/rng/stm32h5_rng.c index 3c468e6..f092218 100644 --- a/src/rng/stm32h5_rng.c +++ b/src/rng/stm32h5_rng.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32H5_RNG_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32H5_RNG_DEV initializer */ #include #include #include diff --git a/src/rng/stm32wb0_rng.c b/src/rng/stm32wb0_rng.c index 1865b7f..0a70f6d 100644 --- a/src/rng/stm32wb0_rng.c +++ b/src/rng/stm32wb0_rng.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32WB0_RNG_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32WB0_RNG_DEV initializer */ #include #include #include diff --git a/src/rng/stm32wb_rng.c b/src/rng/stm32wb_rng.c index 41bbbd2..3b1f881 100644 --- a/src/rng/stm32wb_rng.c +++ b/src/rng/stm32wb_rng.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32WB_RNG_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32WB_RNG_DEV initializer */ #include #include #include diff --git a/src/rng/stm32wba_rng.c b/src/rng/stm32wba_rng.c index 179c197..cd9ad50 100644 --- a/src/rng/stm32wba_rng.c +++ b/src/rng/stm32wba_rng.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" /* provides WHAL_CFG_STM32WBA_RNG_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32WBA_RNG_DEV initializer */ #include #include #include diff --git a/src/sensor/imu/bmi270_sensor.c b/src/sensor/imu/bmi270_sensor.c index b82ebc6..b85a5b6 100644 --- a/src/sensor/imu/bmi270_sensor.c +++ b/src/sensor/imu/bmi270_sensor.c @@ -21,7 +21,7 @@ #include #ifdef WHAL_CFG_BMI270_SINGLE_INSTANCE -#include "board.h" /* provides whal_Bmi270_Dev singleton */ +#include "wolfHAL_board.h" /* provides whal_Bmi270_Dev singleton */ #endif #include #include diff --git a/src/spi/stm32f4_spi.c b/src/spi/stm32f4_spi.c index d5a7a74..00e4ae0 100644 --- a/src/spi/stm32f4_spi.c +++ b/src/spi/stm32f4_spi.c @@ -21,7 +21,7 @@ #include #ifdef WHAL_CFG_STM32F4_SPI_SINGLE_INSTANCE -#include "board.h" /* provides whal_Stm32f4_Spi_Dev singleton (possibly via platform alias macro) */ +#include "wolfHAL_board.h" /* provides whal_Stm32f4_Spi_Dev singleton (possibly via platform alias macro) */ #endif #include #include diff --git a/src/spi/stm32h5_spi.c b/src/spi/stm32h5_spi.c index f7bb9e4..1757274 100644 --- a/src/spi/stm32h5_spi.c +++ b/src/spi/stm32h5_spi.c @@ -21,7 +21,7 @@ #include #ifdef WHAL_CFG_STM32H5_SPI_SINGLE_INSTANCE -#include "board.h" /* provides whal_Stm32h5_Spi_Dev singleton (possibly via platform alias macro) */ +#include "wolfHAL_board.h" /* provides whal_Stm32h5_Spi_Dev singleton (possibly via platform alias macro) */ #endif #include #include diff --git a/src/spi/stm32wb_spi.c b/src/spi/stm32wb_spi.c index bd4f9c4..2f6e559 100644 --- a/src/spi/stm32wb_spi.c +++ b/src/spi/stm32wb_spi.c @@ -21,7 +21,7 @@ #include #ifdef WHAL_CFG_STM32WB_SPI_SINGLE_INSTANCE -#include "board.h" /* provides whal_Stm32wb_Spi_Dev singleton (possibly via platform alias macro) */ +#include "wolfHAL_board.h" /* provides whal_Stm32wb_Spi_Dev singleton (possibly via platform alias macro) */ #endif #include #include diff --git a/src/timer/systick.c b/src/timer/systick.c index 95b7a7f..434045b 100644 --- a/src/timer/systick.c +++ b/src/timer/systick.c @@ -19,7 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#include "board.h" /* provides WHAL_CFG_SYSTICK_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_SYSTICK_DEV initializer */ #include #include #include diff --git a/src/uart/pic32cz_uart.c b/src/uart/pic32cz_uart.c index 5aff86e..2fc70e9 100644 --- a/src/uart/pic32cz_uart.c +++ b/src/uart/pic32cz_uart.c @@ -21,7 +21,7 @@ #include #ifdef WHAL_CFG_PIC32CZ_UART_SINGLE_INSTANCE -#include "board.h" /* provides whal_Pic32cz_Uart_Dev singleton */ +#include "wolfHAL_board.h" /* provides whal_Pic32cz_Uart_Dev singleton */ #endif #include #include diff --git a/src/uart/stm32f0_uart.c b/src/uart/stm32f0_uart.c index 73a989c..fe8b397 100644 --- a/src/uart/stm32f0_uart.c +++ b/src/uart/stm32f0_uart.c @@ -21,7 +21,7 @@ #include #ifdef WHAL_CFG_STM32F0_UART_SINGLE_INSTANCE -#include "board.h" /* provides whal_Stm32f0_Uart_Dev singleton (possibly via platform alias macro) */ +#include "wolfHAL_board.h" /* provides whal_Stm32f0_Uart_Dev singleton (possibly via platform alias macro) */ #endif #include #include diff --git a/src/uart/stm32f4_uart.c b/src/uart/stm32f4_uart.c index 6fe4ea0..2e37b49 100644 --- a/src/uart/stm32f4_uart.c +++ b/src/uart/stm32f4_uart.c @@ -21,7 +21,7 @@ #include #ifdef WHAL_CFG_STM32F4_UART_SINGLE_INSTANCE -#include "board.h" /* provides whal_Stm32f4_Uart_Dev singleton (possibly via platform alias macro) */ +#include "wolfHAL_board.h" /* provides whal_Stm32f4_Uart_Dev singleton (possibly via platform alias macro) */ #endif #include #include diff --git a/src/uart/stm32wb_uart.c b/src/uart/stm32wb_uart.c index 1086ecc..f0a5931 100644 --- a/src/uart/stm32wb_uart.c +++ b/src/uart/stm32wb_uart.c @@ -21,7 +21,7 @@ #include #ifdef WHAL_CFG_STM32WB_UART_SINGLE_INSTANCE -#include "board.h" /* provides whal_Stm32wb_Uart_Dev singleton (possibly via platform alias macro) */ +#include "wolfHAL_board.h" /* provides whal_Stm32wb_Uart_Dev singleton (possibly via platform alias macro) */ #endif #include #include diff --git a/src/uart/stm32wb_uart_dma.c b/src/uart/stm32wb_uart_dma.c index 0ba77c0..43548d1 100644 --- a/src/uart/stm32wb_uart_dma.c +++ b/src/uart/stm32wb_uart_dma.c @@ -21,7 +21,7 @@ #include #ifdef WHAL_CFG_STM32WB_UART_DMA_SINGLE_INSTANCE -#include "board.h" /* provides whal_Stm32wb_UartDma_Dev singleton */ +#include "wolfHAL_board.h" /* provides whal_Stm32wb_UartDma_Dev singleton */ #endif #include #include diff --git a/src/uart/stm32wba_uart_dma.c b/src/uart/stm32wba_uart_dma.c index 4847d39..cc36c49 100644 --- a/src/uart/stm32wba_uart_dma.c +++ b/src/uart/stm32wba_uart_dma.c @@ -21,7 +21,7 @@ #include #ifdef WHAL_CFG_STM32WBA_UART_DMA_SINGLE_INSTANCE -#include "board.h" /* provides whal_Stm32wba_UartDma_Dev singleton */ +#include "wolfHAL_board.h" /* provides whal_Stm32wba_UartDma_Dev singleton */ #endif #include #include diff --git a/src/watchdog/stm32f0_wwdg.c b/src/watchdog/stm32f0_wwdg.c index 3da10d1..daf4658 100644 --- a/src/watchdog/stm32f0_wwdg.c +++ b/src/watchdog/stm32f0_wwdg.c @@ -19,7 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#include "board.h" /* provides WHAL_CFG_STM32F0_WWDG_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32F0_WWDG_DEV initializer */ #include #include #include diff --git a/src/watchdog/stm32wb_iwdg.c b/src/watchdog/stm32wb_iwdg.c index 01a1f89..769097f 100644 --- a/src/watchdog/stm32wb_iwdg.c +++ b/src/watchdog/stm32wb_iwdg.c @@ -19,7 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#include "board.h" /* provides WHAL_CFG_STM32WB_IWDG_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32WB_IWDG_DEV initializer */ #include #include #include diff --git a/src/watchdog/stm32wb_wwdg.c b/src/watchdog/stm32wb_wwdg.c index daac0ec..ad39b23 100644 --- a/src/watchdog/stm32wb_wwdg.c +++ b/src/watchdog/stm32wb_wwdg.c @@ -19,7 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -#include "board.h" /* provides WHAL_CFG_STM32WB_WWDG_DEV initializer */ +#include "wolfHAL_board.h" /* provides WHAL_CFG_STM32WB_WWDG_DEV initializer */ #include #include #include diff --git a/tests/block/test_block.c b/tests/block/test_block.c index 439b192..9c59a04 100644 --- a/tests/block/test_block.c +++ b/tests/block/test_block.c @@ -22,9 +22,9 @@ #include #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" -#include "peripheral.h" +#include "wolfHAL_peripheral.h" static whal_Block *g_testBlockDev; static uint8_t *g_testBuf; diff --git a/tests/clock/test_pic32cz_clock.c b/tests/clock/test_pic32cz_clock.c index cd1ae33..574ebff 100644 --- a/tests/clock/test_pic32cz_clock.c +++ b/tests/clock/test_pic32cz_clock.c @@ -22,7 +22,7 @@ #include #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" #define GCLK_PCHCTRL_OFFSET(ch) (0x10000 + 0x80 + ((ch) * 4)) diff --git a/tests/clock/test_stm32wb_clock.c b/tests/clock/test_stm32wb_clock.c index ff91574..0054cfe 100644 --- a/tests/clock/test_stm32wb_clock.c +++ b/tests/clock/test_stm32wb_clock.c @@ -23,7 +23,7 @@ #include #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static void Test_Clock_EnableDisable(void) diff --git a/tests/crypto/test_aes_cbc.c b/tests/crypto/test_aes_cbc.c index 3e465bf..4faaaaf 100644 --- a/tests/crypto/test_aes_cbc.c +++ b/tests/crypto/test_aes_cbc.c @@ -21,7 +21,7 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static const uint8_t key[32] = { diff --git a/tests/crypto/test_aes_ccm.c b/tests/crypto/test_aes_ccm.c index 14d5898..621558c 100644 --- a/tests/crypto/test_aes_ccm.c +++ b/tests/crypto/test_aes_ccm.c @@ -21,7 +21,7 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static const uint8_t key[32] = { diff --git a/tests/crypto/test_aes_ctr.c b/tests/crypto/test_aes_ctr.c index 1a3953f..c889bc3 100644 --- a/tests/crypto/test_aes_ctr.c +++ b/tests/crypto/test_aes_ctr.c @@ -21,7 +21,7 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static const uint8_t key[32] = { diff --git a/tests/crypto/test_aes_ecb.c b/tests/crypto/test_aes_ecb.c index 2fba823..1b6677a 100644 --- a/tests/crypto/test_aes_ecb.c +++ b/tests/crypto/test_aes_ecb.c @@ -21,7 +21,7 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static const uint8_t key[32] = { diff --git a/tests/crypto/test_aes_gcm.c b/tests/crypto/test_aes_gcm.c index e9c093c..22fe940 100644 --- a/tests/crypto/test_aes_gcm.c +++ b/tests/crypto/test_aes_gcm.c @@ -21,7 +21,7 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static const uint8_t key[32] = { diff --git a/tests/crypto/test_aes_gmac.c b/tests/crypto/test_aes_gmac.c index 1a22423..51ab5de 100644 --- a/tests/crypto/test_aes_gmac.c +++ b/tests/crypto/test_aes_gmac.c @@ -21,7 +21,7 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static const uint8_t key[32] = { diff --git a/tests/crypto/test_hmac_sha1.c b/tests/crypto/test_hmac_sha1.c index e8ea5a6..5b91e89 100644 --- a/tests/crypto/test_hmac_sha1.c +++ b/tests/crypto/test_hmac_sha1.c @@ -21,7 +21,7 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" /* RFC 2202 / RFC 4231 Test Case 1: HMAC with 20-byte 0x0b key, "Hi There" */ diff --git a/tests/crypto/test_hmac_sha224.c b/tests/crypto/test_hmac_sha224.c index e7ae948..f88a1cd 100644 --- a/tests/crypto/test_hmac_sha224.c +++ b/tests/crypto/test_hmac_sha224.c @@ -21,7 +21,7 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" /* RFC 2202 / RFC 4231 Test Case 1: HMAC with 20-byte 0x0b key, "Hi There" */ diff --git a/tests/crypto/test_hmac_sha256.c b/tests/crypto/test_hmac_sha256.c index 48c9236..d922284 100644 --- a/tests/crypto/test_hmac_sha256.c +++ b/tests/crypto/test_hmac_sha256.c @@ -21,7 +21,7 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" /* RFC 2202 / RFC 4231 Test Case 1: HMAC with 20-byte 0x0b key, "Hi There" */ diff --git a/tests/crypto/test_pka.c b/tests/crypto/test_pka.c index 19ace2d..c7b6618 100644 --- a/tests/crypto/test_pka.c +++ b/tests/crypto/test_pka.c @@ -23,7 +23,7 @@ #include #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" /* RSA-1024 test key. Generated with `openssl genrsa 1024` for test use only. diff --git a/tests/crypto/test_sha1.c b/tests/crypto/test_sha1.c index bad9391..40ce433 100644 --- a/tests/crypto/test_sha1.c +++ b/tests/crypto/test_sha1.c @@ -21,7 +21,7 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static const uint8_t hashInput[] = { 'a', 'b', 'c' }; diff --git a/tests/crypto/test_sha224.c b/tests/crypto/test_sha224.c index 4a5b79c..4c0b033 100644 --- a/tests/crypto/test_sha224.c +++ b/tests/crypto/test_sha224.c @@ -21,7 +21,7 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static const uint8_t hashInput[] = { 'a', 'b', 'c' }; diff --git a/tests/crypto/test_sha256.c b/tests/crypto/test_sha256.c index 5c59e3e..7286792 100644 --- a/tests/crypto/test_sha256.c +++ b/tests/crypto/test_sha256.c @@ -21,7 +21,7 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static const uint8_t hashInput[] = { 'a', 'b', 'c' }; diff --git a/tests/eth/test_eth.c b/tests/eth/test_eth.c index 81706fc..f767ff8 100644 --- a/tests/eth/test_eth.c +++ b/tests/eth/test_eth.c @@ -23,7 +23,7 @@ #include #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" /* diff --git a/tests/eth/test_stm32h5_eth.c b/tests/eth/test_stm32h5_eth.c index d34233b..f4ed575 100644 --- a/tests/eth/test_stm32h5_eth.c +++ b/tests/eth/test_stm32h5_eth.c @@ -23,7 +23,7 @@ #include #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" /* diff --git a/tests/eth/test_stm32n6_eth.c b/tests/eth/test_stm32n6_eth.c index 5c26bed..78f93d4 100644 --- a/tests/eth/test_stm32n6_eth.c +++ b/tests/eth/test_stm32n6_eth.c @@ -23,7 +23,7 @@ #include #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" /* diff --git a/tests/flash/test_flash.c b/tests/flash/test_flash.c index ef96fd1..722ecaf 100644 --- a/tests/flash/test_flash.c +++ b/tests/flash/test_flash.c @@ -21,9 +21,9 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" -#include "peripheral.h" +#include "wolfHAL_peripheral.h" static whal_Flash *g_testFlashDev; static size_t g_testFlashAddr; diff --git a/tests/flash/test_stm32wb_flash.c b/tests/flash/test_stm32wb_flash.c index 633a5a2..0c387ff 100644 --- a/tests/flash/test_stm32wb_flash.c +++ b/tests/flash/test_stm32wb_flash.c @@ -23,7 +23,7 @@ #include #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" /* Flash CR register offset and LOCK bit */ diff --git a/tests/gpio/test_gpio.c b/tests/gpio/test_gpio.c index e394764..b620fc2 100644 --- a/tests/gpio/test_gpio.c +++ b/tests/gpio/test_gpio.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static void Test_Gpio_Api(void) diff --git a/tests/gpio/test_pic32cz_gpio.c b/tests/gpio/test_pic32cz_gpio.c index 08172e8..388dd0e 100644 --- a/tests/gpio/test_pic32cz_gpio.c +++ b/tests/gpio/test_pic32cz_gpio.c @@ -22,7 +22,7 @@ #include #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" /* diff --git a/tests/gpio/test_stm32wb_gpio.c b/tests/gpio/test_stm32wb_gpio.c index 10c7eb2..58bd9d0 100644 --- a/tests/gpio/test_stm32wb_gpio.c +++ b/tests/gpio/test_stm32wb_gpio.c @@ -22,7 +22,7 @@ #include #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" /* diff --git a/tests/i2c/test_i2c.c b/tests/i2c/test_i2c.c index 2d9fdf6..0c8b134 100644 --- a/tests/i2c/test_i2c.c +++ b/tests/i2c/test_i2c.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static void Test_I2c_Api(void) diff --git a/tests/ipc/test_ipc.c b/tests/ipc/test_ipc.c index de72447..09897fc 100644 --- a/tests/ipc/test_ipc.c +++ b/tests/ipc/test_ipc.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static void Test_Ipc_InitDeinit(void) diff --git a/tests/main.c b/tests/main.c index a5ad460..8eebac6 100644 --- a/tests/main.c +++ b/tests/main.c @@ -21,7 +21,7 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" #ifdef WHAL_TEST_ENABLE_CLOCK_PLATFORM diff --git a/tests/pwm/test_pwm.c b/tests/pwm/test_pwm.c index 9af5888..05d448d 100644 --- a/tests/pwm/test_pwm.c +++ b/tests/pwm/test_pwm.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static void Test_Pwm_Api(void) diff --git a/tests/pwm/test_pwm_pulse.c b/tests/pwm/test_pwm_pulse.c index 2860f3f..e8363b1 100644 --- a/tests/pwm/test_pwm_pulse.c +++ b/tests/pwm/test_pwm_pulse.c @@ -22,7 +22,7 @@ #include #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" /* Period in PWM ticks; the frequency depends on the board's PWM clock and prescaler. */ diff --git a/tests/pwm/test_stm32wb_pwm.c b/tests/pwm/test_stm32wb_pwm.c index 72c69f2..8b1c2c9 100644 --- a/tests/pwm/test_stm32wb_pwm.c +++ b/tests/pwm/test_stm32wb_pwm.c @@ -21,7 +21,7 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" /* The LPTIM driver must enforce the same waveform contract when called diff --git a/tests/rng/test_rng.c b/tests/rng/test_rng.c index b3580e4..ccd3f47 100644 --- a/tests/rng/test_rng.c +++ b/tests/rng/test_rng.c @@ -21,7 +21,7 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static void Test_Rng_Api(void) diff --git a/tests/sensor/imu/test_bmi270_sensor.c b/tests/sensor/imu/test_bmi270_sensor.c index 387dc7b..44e541f 100644 --- a/tests/sensor/imu/test_bmi270_sensor.c +++ b/tests/sensor/imu/test_bmi270_sensor.c @@ -22,8 +22,8 @@ #include #include #include -#include "board.h" -#include "peripheral.h" +#include "wolfHAL_board.h" +#include "wolfHAL_peripheral.h" #include "test.h" /* diff --git a/tests/spi/test_spi_loopback.c b/tests/spi/test_spi_loopback.c index 02d006c..009e2b4 100644 --- a/tests/spi/test_spi_loopback.c +++ b/tests/spi/test_spi_loopback.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" /* diff --git a/tests/timer/test_timer.c b/tests/timer/test_timer.c index 5a6728d..7f8f2d6 100644 --- a/tests/timer/test_timer.c +++ b/tests/timer/test_timer.c @@ -22,7 +22,7 @@ #include #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static void Test_Timer_TicksAdvance(void) diff --git a/tests/uart/test_uart.c b/tests/uart/test_uart.c index fe1ad2a..1580195 100644 --- a/tests/uart/test_uart.c +++ b/tests/uart/test_uart.c @@ -20,7 +20,7 @@ */ #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" static void Test_Uart_Api(void) diff --git a/tests/watchdog/test_watchdog.c b/tests/watchdog/test_watchdog.c index 6e6ce1d..cc46c0a 100644 --- a/tests/watchdog/test_watchdog.c +++ b/tests/watchdog/test_watchdog.c @@ -21,7 +21,7 @@ #include #include -#include "board.h" +#include "wolfHAL_board.h" #include "test.h" /* diff --git a/wolfHAL/block/sdhc_spi_block.h b/wolfHAL/block/sdhc_spi_block.h index b5a3cef..0e7ca21 100644 --- a/wolfHAL/block/sdhc_spi_block.h +++ b/wolfHAL/block/sdhc_spi_block.h @@ -58,7 +58,7 @@ typedef struct whal_SdhcSpi_Cfg { /* * @brief Single-instance device struct. Defined in the driver TU - * from the WHAL_CFG_SDHC_SPI_DEV initializer in board.h. + * from the WHAL_CFG_SDHC_SPI_DEV initializer in wolfHAL_board.h. */ #ifdef WHAL_CFG_SDHC_SPI_SINGLE_INSTANCE extern const whal_Block whal_SdhcSpi_Dev; diff --git a/wolfHAL/crypto/stm32n6_cryp.h b/wolfHAL/crypto/stm32n6_cryp.h index 7cf46b4..6c65ba0 100644 --- a/wolfHAL/crypto/stm32n6_cryp.h +++ b/wolfHAL/crypto/stm32n6_cryp.h @@ -424,7 +424,7 @@ whal_Error whal_Stm32n6_CrypAesCcm_Finalize(whal_AesCcm *dev, /* * @brief Platform-owned CRYP + mode singletons. Defined in the driver TU - * from the WHAL_CFG_STM32N6_CRYP*_DEV initializers in board.h. + * from the WHAL_CFG_STM32N6_CRYP*_DEV initializers in wolfHAL_board.h. */ extern const whal_Crypto whal_Stm32n6_Cryp_Dev; extern const whal_AesEcb whal_Stm32n6_CrypEcb_Dev; diff --git a/wolfHAL/crypto/stm32n6_hash.h b/wolfHAL/crypto/stm32n6_hash.h index 34e2850..a8b9843 100644 --- a/wolfHAL/crypto/stm32n6_hash.h +++ b/wolfHAL/crypto/stm32n6_hash.h @@ -56,7 +56,7 @@ typedef whal_Stm32wba_HmacSha256_State whal_Stm32n6_HmacSha256_State; #define whal_Stm32n6_Hash_HmacSha224Driver whal_Stm32wba_Hash_HmacSha224Driver #define whal_Stm32n6_Hash_HmacSha256Driver whal_Stm32wba_Hash_HmacSha256Driver -/* Config initializer macro aliases. The N6 board.h supplies the bodies +/* Config initializer macro aliases. The N6 wolfHAL_board.h supplies the bodies * under N6-prefixed names; the WBA driver source consumes the WBA names. */ #define WHAL_CFG_STM32WBA_HASH_DEV WHAL_CFG_STM32N6_HASH_DEV #define WHAL_CFG_STM32WBA_HASH_SHA1_DEV WHAL_CFG_STM32N6_HASH_SHA1_DEV diff --git a/wolfHAL/crypto/stm32u5_aes.h b/wolfHAL/crypto/stm32u5_aes.h index 145f914..0cdb736 100644 --- a/wolfHAL/crypto/stm32u5_aes.h +++ b/wolfHAL/crypto/stm32u5_aes.h @@ -55,7 +55,7 @@ typedef whal_Stm32wb_AesCcm_State whal_Stm32u5_AesCcm_State; #define whal_Stm32u5_Aes_GmacDriver whal_Stm32wb_Aes_GmacDriver #define whal_Stm32u5_Aes_CcmDriver whal_Stm32wb_Aes_CcmDriver -/* Config initializer macro aliases. The U5 board.h supplies the bodies +/* Config initializer macro aliases. The U5 wolfHAL_board.h supplies the bodies * under U5-prefixed names; the WB driver source consumes the WB names. */ #define WHAL_CFG_STM32WB_AES_DEV WHAL_CFG_STM32U5_AES_DEV #define WHAL_CFG_STM32WB_AES_ECB_DEV WHAL_CFG_STM32U5_AES_ECB_DEV diff --git a/wolfHAL/crypto/stm32u5_hash.h b/wolfHAL/crypto/stm32u5_hash.h index 2032732..a820614 100644 --- a/wolfHAL/crypto/stm32u5_hash.h +++ b/wolfHAL/crypto/stm32u5_hash.h @@ -91,7 +91,7 @@ typedef whal_Stm32wba_HmacSha256_State whal_Stm32u5_HmacSha256_State; #define whal_Stm32u5_HmacSha256_Process whal_Stm32wba_HmacSha256_Process #define whal_Stm32u5_HmacSha256_Finalize whal_Stm32wba_HmacSha256_Finalize -/* Config initializer macro aliases. The U5 board.h supplies the bodies +/* Config initializer macro aliases. The U5 wolfHAL_board.h supplies the bodies * under U5-prefixed names; the WBA driver source consumes the WBA names. */ #define WHAL_CFG_STM32WBA_HASH_DEV WHAL_CFG_STM32U5_HASH_DEV #define WHAL_CFG_STM32WBA_HASH_SHA1_DEV WHAL_CFG_STM32U5_HASH_SHA1_DEV diff --git a/wolfHAL/crypto/stm32wb0_pka.h b/wolfHAL/crypto/stm32wb0_pka.h index c5918a2..9c43b1c 100644 --- a/wolfHAL/crypto/stm32wb0_pka.h +++ b/wolfHAL/crypto/stm32wb0_pka.h @@ -61,8 +61,8 @@ typedef whal_Stm32wb_Pka_Cfg whal_Stm32wb0_Pka_Cfg; #define whal_Stm32wb0_Pka_RsaCrtExp whal_Stm32wb_Pka_RsaCrtExp #endif /* !WHAL_CFG_STM32WB0_PKA_DIRECT_API_MAPPING */ -/* Config initializer macro alias. The WB0 board.h supplies the body under - * the WB0-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The WB0 wolfHAL_board.h supplies the body + * under the WB0-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_PKA_DEV WHAL_CFG_STM32WB0_PKA_DEV #endif /* WHAL_STM32WB0_PKA_H */ diff --git a/wolfHAL/crypto/stm32wb_aes.h b/wolfHAL/crypto/stm32wb_aes.h index 4707f6f..60acdcf 100644 --- a/wolfHAL/crypto/stm32wb_aes.h +++ b/wolfHAL/crypto/stm32wb_aes.h @@ -399,7 +399,7 @@ whal_Error whal_Stm32wb_AesCcm_Finalize(whal_AesCcm *dev, /* * @brief Platform-owned AES + mode singletons. Defined in the driver TU - * from the WHAL_CFG_STM32WB_AES*_DEV initializers in board.h. + * from the WHAL_CFG_STM32WB_AES*_DEV initializers in wolfHAL_board.h. */ extern const whal_Crypto whal_Stm32wb_Aes_Dev; extern const whal_AesEcb whal_Stm32wb_AesEcb_Dev; diff --git a/wolfHAL/crypto/stm32wb_pka.h b/wolfHAL/crypto/stm32wb_pka.h index 0b5adfd..2534bf3 100644 --- a/wolfHAL/crypto/stm32wb_pka.h +++ b/wolfHAL/crypto/stm32wb_pka.h @@ -216,7 +216,7 @@ whal_Error whal_Stm32wb_Pka_RsaCrtExp(const uint8_t *A, size_t ASz, /* * @brief Platform-owned PKA peripheral device. Defined in the driver TU - * from the WHAL_CFG_STM32WB_PKA_DEV initializer in board.h. + * from the WHAL_CFG_STM32WB_PKA_DEV initializer in wolfHAL_board.h. */ extern const whal_Crypto whal_Stm32wb_Pka_Dev; diff --git a/wolfHAL/crypto/stm32wba_aes.h b/wolfHAL/crypto/stm32wba_aes.h index d5f1cfe..bba18f8 100644 --- a/wolfHAL/crypto/stm32wba_aes.h +++ b/wolfHAL/crypto/stm32wba_aes.h @@ -55,7 +55,7 @@ typedef whal_Stm32wb_AesCcm_State whal_Stm32wba_AesCcm_State; #define whal_Stm32wba_Aes_GmacDriver whal_Stm32wb_Aes_GmacDriver #define whal_Stm32wba_Aes_CcmDriver whal_Stm32wb_Aes_CcmDriver -/* Config initializer macro aliases. The WBA board.h supplies the bodies +/* Config initializer macro aliases. The WBA wolfHAL_board.h supplies the bodies * under WBA-prefixed names; the WB driver source consumes the WB names. */ #define WHAL_CFG_STM32WB_AES_DEV WHAL_CFG_STM32WBA_AES_DEV #define WHAL_CFG_STM32WB_AES_ECB_DEV WHAL_CFG_STM32WBA_AES_ECB_DEV diff --git a/wolfHAL/crypto/stm32wba_hash.h b/wolfHAL/crypto/stm32wba_hash.h index a6735bf..953a318 100644 --- a/wolfHAL/crypto/stm32wba_hash.h +++ b/wolfHAL/crypto/stm32wba_hash.h @@ -393,7 +393,7 @@ whal_Error whal_Stm32wba_HmacSha256_Finalize(whal_HmacSha256 *dev, /* * @brief Platform-owned HASH + algorithm singletons. Defined in the driver - * TU from the WHAL_CFG_STM32WBA_HASH*_DEV initializers in board.h. + * TU from the WHAL_CFG_STM32WBA_HASH*_DEV initializers in wolfHAL_board.h. */ extern const whal_Crypto whal_Stm32wba_Hash_Dev; extern const whal_Sha1 whal_Stm32wba_Sha1_Dev; diff --git a/wolfHAL/display/sharp_memory_display.h b/wolfHAL/display/sharp_memory_display.h index 31551d7..228f6a2 100644 --- a/wolfHAL/display/sharp_memory_display.h +++ b/wolfHAL/display/sharp_memory_display.h @@ -83,9 +83,9 @@ typedef struct whal_SharpMemory_Display_Cfg { /** * @brief Fixed device instance for boards with a single on-board panel. * Defined in the driver TU from the WHAL_CFG_SHARPMEMORY_DISPLAY_DEV - * initializer in board.h. When this macro is not defined, the driver instead - * operates on the whal_Display passed to each call (e.g. an external panel - * wired up under boards/peripheral/), like the SPI-NOR flash driver. + * initializer in wolfHAL_board.h. When this macro is not defined, the driver + * instead operates on the whal_Display passed to each call (e.g. an external + * panel wired up under boards/peripheral/), like the SPI-NOR flash driver. */ extern const whal_Display whal_SharpMemory_Display_Dev; #endif diff --git a/wolfHAL/dma/stm32wb0_dma.h b/wolfHAL/dma/stm32wb0_dma.h index 9549df4..d030b5e 100644 --- a/wolfHAL/dma/stm32wb0_dma.h +++ b/wolfHAL/dma/stm32wb0_dma.h @@ -65,8 +65,8 @@ typedef whal_Stm32wb_Dma_Callback whal_Stm32wb0_Dma_Callback; #define WHAL_STM32WB0_DMA_INC_DISABLE WHAL_STM32WB_DMA_INC_DISABLE #define WHAL_STM32WB0_DMA_INC_ENABLE WHAL_STM32WB_DMA_INC_ENABLE -/* Config initializer macro alias. The WB0 board.h supplies the body under - * the WB0-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The WB0 wolfHAL_board.h supplies the body + * under the WB0-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_DMA_DEV WHAL_CFG_STM32WB0_DMA_DEV #endif /* WHAL_STM32WB0_DMA_H */ diff --git a/wolfHAL/dma/stm32wb_dma.h b/wolfHAL/dma/stm32wb_dma.h index 5496428..8fdbcc4 100644 --- a/wolfHAL/dma/stm32wb_dma.h +++ b/wolfHAL/dma/stm32wb_dma.h @@ -99,7 +99,7 @@ typedef struct { /* * @brief Single-instance device struct. Defined in the driver TU - * from the WHAL_CFG_STM32WB_DMA_DEV initializer in board.h. + * from the WHAL_CFG_STM32WB_DMA_DEV initializer in wolfHAL_board.h. */ #if defined(WHAL_CFG_STM32WB_DMA_SINGLE_INSTANCE) || \ defined(WHAL_CFG_STM32WB0_DMA_SINGLE_INSTANCE) diff --git a/wolfHAL/dma/stm32wba_gpdma.h b/wolfHAL/dma/stm32wba_gpdma.h index 6c8e2bf..b909f10 100644 --- a/wolfHAL/dma/stm32wba_gpdma.h +++ b/wolfHAL/dma/stm32wba_gpdma.h @@ -96,7 +96,7 @@ typedef struct { /* * @brief Single-instance device struct. Defined in the driver TU - * from the WHAL_CFG_STM32WBA_GPDMA_DEV initializer in board.h. + * from the WHAL_CFG_STM32WBA_GPDMA_DEV initializer in wolfHAL_board.h. */ #if defined(WHAL_CFG_STM32WBA_GPDMA_SINGLE_INSTANCE) || \ defined(WHAL_CFG_STM32N6_GPDMA_SINGLE_INSTANCE) diff --git a/wolfHAL/eth/stm32h5_eth.h b/wolfHAL/eth/stm32h5_eth.h index 5c8c305..002cc42 100644 --- a/wolfHAL/eth/stm32h5_eth.h +++ b/wolfHAL/eth/stm32h5_eth.h @@ -72,7 +72,7 @@ typedef struct whal_Stm32h5_Eth_Cfg { /* * @brief Platform-owned Ethernet device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32H5_ETH_DEV initializer in board.h. + * from the WHAL_CFG_STM32H5_ETH_DEV initializer in wolfHAL_board.h. */ extern const whal_Eth whal_Stm32h5_Eth_Dev; diff --git a/wolfHAL/eth/stm32n6_eth.h b/wolfHAL/eth/stm32n6_eth.h index 339a944..2fa5287 100644 --- a/wolfHAL/eth/stm32n6_eth.h +++ b/wolfHAL/eth/stm32n6_eth.h @@ -78,7 +78,7 @@ typedef struct whal_Stm32n6_Eth_Cfg { /* * @brief Platform-owned Ethernet device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32N6_ETH_DEV initializer in board.h. + * from the WHAL_CFG_STM32N6_ETH_DEV initializer in wolfHAL_board.h. */ extern const whal_Eth whal_Stm32n6_Eth_Dev; diff --git a/wolfHAL/eth_phy/lan8742a_eth_phy.h b/wolfHAL/eth_phy/lan8742a_eth_phy.h index 38c0cd8..21ceb64 100644 --- a/wolfHAL/eth_phy/lan8742a_eth_phy.h +++ b/wolfHAL/eth_phy/lan8742a_eth_phy.h @@ -43,7 +43,7 @@ typedef struct whal_Lan8742a_Cfg { /* * @brief Platform-owned LAN8742A PHY device singleton. Defined in the - * driver TU from the WHAL_CFG_LAN8742A_DEV initializer in board.h. + * driver TU from the WHAL_CFG_LAN8742A_DEV initializer in wolfHAL_board.h. */ extern const whal_EthPhy whal_Lan8742a_Dev; diff --git a/wolfHAL/flash/pic32cz_flash.h b/wolfHAL/flash/pic32cz_flash.h index ad62dd9..cfc7f61 100644 --- a/wolfHAL/flash/pic32cz_flash.h +++ b/wolfHAL/flash/pic32cz_flash.h @@ -60,7 +60,7 @@ typedef struct whal_Pic32cz_Flash_Cfg { extern const whal_FlashDriver whal_Pic32cz_Flash_Driver; /* * @brief Platform-owned device singleton. Defined in the driver TU - * from the WHAL_CFG_PIC32CZ_FLASH_DEV initializer in board.h. + * from the WHAL_CFG_PIC32CZ_FLASH_DEV initializer in wolfHAL_board.h. */ extern const whal_Flash whal_Pic32cz_Flash_Dev; diff --git a/wolfHAL/flash/spi_nor_flash.h b/wolfHAL/flash/spi_nor_flash.h index 7035bc4..cd90515 100644 --- a/wolfHAL/flash/spi_nor_flash.h +++ b/wolfHAL/flash/spi_nor_flash.h @@ -71,7 +71,7 @@ typedef struct whal_SpiNor_Cfg { /* * @brief Single-instance device struct. Defined in the driver TU - * from the WHAL_CFG_SPI_NOR_DEV initializer in board.h. + * from the WHAL_CFG_SPI_NOR_DEV initializer in wolfHAL_board.h. */ #ifdef WHAL_CFG_SPI_NOR_SINGLE_INSTANCE extern const whal_Flash whal_SpiNor_Dev; diff --git a/wolfHAL/flash/stm32c0_flash.h b/wolfHAL/flash/stm32c0_flash.h index 6993fb3..74d38ef 100644 --- a/wolfHAL/flash/stm32c0_flash.h +++ b/wolfHAL/flash/stm32c0_flash.h @@ -69,7 +69,7 @@ extern const whal_FlashDriver whal_Stm32c0_Flash_Driver; /* * @brief Platform-owned flash device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32C0_FLASH_DEV initializer in board.h. + * from the WHAL_CFG_STM32C0_FLASH_DEV initializer in wolfHAL_board.h. */ extern const whal_Flash whal_Stm32c0_Flash_Dev; diff --git a/wolfHAL/flash/stm32f0_flash.h b/wolfHAL/flash/stm32f0_flash.h index 9577f5f..1bda2c6 100644 --- a/wolfHAL/flash/stm32f0_flash.h +++ b/wolfHAL/flash/stm32f0_flash.h @@ -60,7 +60,7 @@ typedef enum whal_Stm32f0_Flash_Latency { extern const whal_FlashDriver whal_Stm32f0_Flash_Driver; /* * @brief Platform-owned device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32F0_FLASH_DEV initializer in board.h. + * from the WHAL_CFG_STM32F0_FLASH_DEV initializer in wolfHAL_board.h. */ extern const whal_Flash whal_Stm32f0_Flash_Dev; diff --git a/wolfHAL/flash/stm32f3_flash.h b/wolfHAL/flash/stm32f3_flash.h index 0146975..2847fc4 100644 --- a/wolfHAL/flash/stm32f3_flash.h +++ b/wolfHAL/flash/stm32f3_flash.h @@ -54,8 +54,8 @@ typedef whal_Stm32f0_Flash_Cfg whal_Stm32f3_Flash_Cfg; #define whal_Stm32f3_Flash_Ext_SetLatency whal_Stm32f0_Flash_Ext_SetLatency -/* Config initializer macro alias. The F3 board.h supplies the body under - * the F3-prefixed name; the F0 driver source consumes the F0 name. */ +/* Config initializer macro alias. The F3 wolfHAL_board.h supplies the body + * under the F3-prefixed name; the F0 driver source consumes the F0 name. */ #define WHAL_CFG_STM32F0_FLASH_DEV WHAL_CFG_STM32F3_FLASH_DEV #endif /* WHAL_STM32F3_FLASH_H */ diff --git a/wolfHAL/flash/stm32f4_flash.h b/wolfHAL/flash/stm32f4_flash.h index ffd91b2..1f98490 100644 --- a/wolfHAL/flash/stm32f4_flash.h +++ b/wolfHAL/flash/stm32f4_flash.h @@ -89,7 +89,7 @@ typedef enum whal_Stm32f4_Flash_Latency { extern const whal_FlashDriver whal_Stm32f4_Flash_Driver; /* * @brief Platform-owned device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32F4_FLASH_DEV initializer in board.h. + * from the WHAL_CFG_STM32F4_FLASH_DEV initializer in wolfHAL_board.h. */ extern const whal_Flash whal_Stm32f4_Flash_Dev; diff --git a/wolfHAL/flash/stm32h5_flash.h b/wolfHAL/flash/stm32h5_flash.h index 79d3396..c0d9a4b 100644 --- a/wolfHAL/flash/stm32h5_flash.h +++ b/wolfHAL/flash/stm32h5_flash.h @@ -52,7 +52,7 @@ typedef struct whal_Stm32h5_Flash_Cfg { extern const whal_FlashDriver whal_Stm32h5_Flash_Driver; /* * @brief Platform-owned device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32H5_FLASH_DEV initializer in board.h. + * from the WHAL_CFG_STM32H5_FLASH_DEV initializer in wolfHAL_board.h. */ extern const whal_Flash whal_Stm32h5_Flash_Dev; diff --git a/wolfHAL/flash/stm32l1_flash.h b/wolfHAL/flash/stm32l1_flash.h index 28448e0..e2adeb2 100644 --- a/wolfHAL/flash/stm32l1_flash.h +++ b/wolfHAL/flash/stm32l1_flash.h @@ -80,7 +80,7 @@ typedef enum { extern const whal_FlashDriver whal_Stm32l1_Flash_Driver; /* * @brief Platform-owned device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32L1_FLASH_DEV initializer in board.h. + * from the WHAL_CFG_STM32L1_FLASH_DEV initializer in wolfHAL_board.h. */ extern const whal_Flash whal_Stm32l1_Flash_Dev; diff --git a/wolfHAL/flash/stm32u5_flash.h b/wolfHAL/flash/stm32u5_flash.h index f64237e..164bec5 100644 --- a/wolfHAL/flash/stm32u5_flash.h +++ b/wolfHAL/flash/stm32u5_flash.h @@ -45,8 +45,9 @@ * - 2 MB U575/U585 variants: 1 MB per bank, 128 pages per bank. * - 4 MB U59x/U5Ax/U5Fx/U5Gx variants: 2 MB per bank, 256 pages per bank. * Bank 2 lives immediately after bank 1 in the address space and is selected - * with BKER=1. The board.h flash config provides the actual bank size for - * the chip in use; the constants below are defaults used when bankSize is 0. + * with BKER=1. The wolfHAL_board.h flash config provides the actual bank + * size for the chip in use; the constants below are defaults used when + * bankSize is 0. */ #define WHAL_STM32U5_FLASH_BANK_SIZE 0x00200000 /* 2 MB per bank on U5Ax */ @@ -69,7 +70,7 @@ extern const whal_FlashDriver whal_Stm32u5_Flash_Driver; /** * @brief Platform-owned device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32U5_FLASH_DEV initializer in board.h. + * from the WHAL_CFG_STM32U5_FLASH_DEV initializer in wolfHAL_board.h. */ extern const whal_Flash whal_Stm32u5_Flash_Dev; diff --git a/wolfHAL/flash/stm32wb0_flash.h b/wolfHAL/flash/stm32wb0_flash.h index 3160c88..70a5152 100644 --- a/wolfHAL/flash/stm32wb0_flash.h +++ b/wolfHAL/flash/stm32wb0_flash.h @@ -75,7 +75,7 @@ extern const whal_FlashDriver whal_Stm32wb0_Flash_Driver; /** * @brief Platform-owned flash device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32WB0_FLASH_DEV initializer in board.h. + * from the WHAL_CFG_STM32WB0_FLASH_DEV initializer in wolfHAL_board.h. */ extern const whal_Flash whal_Stm32wb0_Flash_Dev; diff --git a/wolfHAL/flash/stm32wb_flash.h b/wolfHAL/flash/stm32wb_flash.h index 2724fb9..225a376 100644 --- a/wolfHAL/flash/stm32wb_flash.h +++ b/wolfHAL/flash/stm32wb_flash.h @@ -77,7 +77,7 @@ extern const whal_FlashDriver whal_Stm32wb_Flash_Driver; /* * @brief Platform-owned flash device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32WB_FLASH_DEV initializer in board.h. Other TUs + * from the WHAL_CFG_STM32WB_FLASH_DEV initializer in wolfHAL_board.h. Other TUs * may take its address (e.g. via BOARD_FLASH_DEV) but should not mutate * it. */ diff --git a/wolfHAL/flash/stm32wba_flash.h b/wolfHAL/flash/stm32wba_flash.h index 0d5d667..f1fd4ba 100644 --- a/wolfHAL/flash/stm32wba_flash.h +++ b/wolfHAL/flash/stm32wba_flash.h @@ -56,7 +56,7 @@ typedef struct whal_Stm32wba_Flash_Cfg { extern const whal_FlashDriver whal_Stm32wba_Flash_Driver; /* * @brief Platform-owned device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32WBA_FLASH_DEV initializer in board.h. + * from the WHAL_CFG_STM32WBA_FLASH_DEV initializer in wolfHAL_board.h. */ extern const whal_Flash whal_Stm32wba_Flash_Dev; diff --git a/wolfHAL/gpio/pic32cz_gpio.h b/wolfHAL/gpio/pic32cz_gpio.h index 96e8d23..c1fd9d5 100644 --- a/wolfHAL/gpio/pic32cz_gpio.h +++ b/wolfHAL/gpio/pic32cz_gpio.h @@ -112,7 +112,7 @@ typedef struct whal_Pic32cz_Gpio_Cfg { /* * @brief Platform-owned GPIO device singleton. Defined in the driver TU - * from the WHAL_CFG_PIC32CZ_GPIO_DEV initializer in board.h. + * from the WHAL_CFG_PIC32CZ_GPIO_DEV initializer in wolfHAL_board.h. */ extern const whal_Gpio whal_Pic32cz_Gpio_Dev; diff --git a/wolfHAL/gpio/stm32c0_gpio.h b/wolfHAL/gpio/stm32c0_gpio.h index ff20ee4..bb2ddde 100644 --- a/wolfHAL/gpio/stm32c0_gpio.h +++ b/wolfHAL/gpio/stm32c0_gpio.h @@ -90,8 +90,8 @@ typedef whal_Stm32wb_Gpio_PinCfg whal_Stm32c0_Gpio_PinCfg; */ #define WHAL_STM32C0_GPIO_PIN WHAL_STM32WB_GPIO_PIN -/* Config initializer macro alias. The C0 board.h supplies the body under - * the C0-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The C0 wolfHAL_board.h supplies the body + * under the C0-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_GPIO_DEV WHAL_CFG_STM32C0_GPIO_DEV #endif /* WHAL_STM32C0_GPIO_H */ diff --git a/wolfHAL/gpio/stm32f0_gpio.h b/wolfHAL/gpio/stm32f0_gpio.h index a4a134f..d6c9175 100644 --- a/wolfHAL/gpio/stm32f0_gpio.h +++ b/wolfHAL/gpio/stm32f0_gpio.h @@ -72,8 +72,8 @@ typedef whal_Stm32wb_Gpio_PinCfg whal_Stm32f0_Gpio_PinCfg; #define WHAL_STM32F0_GPIO_PIN WHAL_STM32WB_GPIO_PIN -/* Config initializer macro alias. The F0 board.h supplies the body under - * the F0-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The F0 wolfHAL_board.h supplies the body + * under the F0-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_GPIO_DEV WHAL_CFG_STM32F0_GPIO_DEV #endif /* WHAL_STM32F0_GPIO_H */ diff --git a/wolfHAL/gpio/stm32f3_gpio.h b/wolfHAL/gpio/stm32f3_gpio.h index d95cc4d..e42a8ab 100644 --- a/wolfHAL/gpio/stm32f3_gpio.h +++ b/wolfHAL/gpio/stm32f3_gpio.h @@ -72,8 +72,8 @@ typedef whal_Stm32wb_Gpio_PinCfg whal_Stm32f3_Gpio_PinCfg; #define WHAL_STM32F3_GPIO_PIN WHAL_STM32WB_GPIO_PIN -/* Config initializer macro alias. The F3 board.h supplies the body under - * the F3-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The F3 wolfHAL_board.h supplies the body + * under the F3-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_GPIO_DEV WHAL_CFG_STM32F3_GPIO_DEV #endif /* WHAL_STM32F3_GPIO_H */ diff --git a/wolfHAL/gpio/stm32f4_gpio.h b/wolfHAL/gpio/stm32f4_gpio.h index 4a86088..a4f1f6d 100644 --- a/wolfHAL/gpio/stm32f4_gpio.h +++ b/wolfHAL/gpio/stm32f4_gpio.h @@ -93,8 +93,8 @@ typedef whal_Stm32wb_Gpio_PinCfg whal_Stm32f4_Gpio_PinCfg; */ #define WHAL_STM32F4_GPIO_PIN WHAL_STM32WB_GPIO_PIN -/* Config initializer macro alias. The F4 board.h supplies the body under - * the F4-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The F4 wolfHAL_board.h supplies the body + * under the F4-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_GPIO_DEV WHAL_CFG_STM32F4_GPIO_DEV #endif /* WHAL_STM32F4_GPIO_H */ diff --git a/wolfHAL/gpio/stm32h5_gpio.h b/wolfHAL/gpio/stm32h5_gpio.h index a81fc5c..25d0634 100644 --- a/wolfHAL/gpio/stm32h5_gpio.h +++ b/wolfHAL/gpio/stm32h5_gpio.h @@ -94,8 +94,8 @@ typedef whal_Stm32wb_Gpio_PinCfg whal_Stm32h5_Gpio_PinCfg; */ #define WHAL_STM32H5_GPIO_PIN WHAL_STM32WB_GPIO_PIN -/* Config initializer macro alias. The H5 board.h supplies the body under - * the H5-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The H5 wolfHAL_board.h supplies the body + * under the H5-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_GPIO_DEV WHAL_CFG_STM32H5_GPIO_DEV #endif /* WHAL_STM32H5_GPIO_H */ diff --git a/wolfHAL/gpio/stm32l1_gpio.h b/wolfHAL/gpio/stm32l1_gpio.h index 0d9b0fe..6d8676d 100644 --- a/wolfHAL/gpio/stm32l1_gpio.h +++ b/wolfHAL/gpio/stm32l1_gpio.h @@ -74,8 +74,8 @@ typedef whal_Stm32wb_Gpio_PinCfg whal_Stm32l1_Gpio_PinCfg; #define WHAL_STM32L1_GPIO_PIN WHAL_STM32WB_GPIO_PIN -/* Config initializer macro alias. The L1 board.h supplies the body under - * the L1-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The L1 wolfHAL_board.h supplies the body + * under the L1-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_GPIO_DEV WHAL_CFG_STM32L1_GPIO_DEV #endif /* WHAL_STM32L1_GPIO_H */ diff --git a/wolfHAL/gpio/stm32n6_gpio.h b/wolfHAL/gpio/stm32n6_gpio.h index c653bc5..8e58b89 100644 --- a/wolfHAL/gpio/stm32n6_gpio.h +++ b/wolfHAL/gpio/stm32n6_gpio.h @@ -74,8 +74,8 @@ typedef whal_Stm32wb_Gpio_PinCfg whal_Stm32n6_Gpio_PinCfg; #define WHAL_STM32N6_GPIO_PIN WHAL_STM32WB_GPIO_PIN -/* Config initializer macro alias. The N6 board.h supplies the body under - * the N6-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The N6 wolfHAL_board.h supplies the body + * under the N6-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_GPIO_DEV WHAL_CFG_STM32N6_GPIO_DEV #endif /* WHAL_STM32N6_GPIO_H */ diff --git a/wolfHAL/gpio/stm32u5_gpio.h b/wolfHAL/gpio/stm32u5_gpio.h index 09e457c..13c8886 100644 --- a/wolfHAL/gpio/stm32u5_gpio.h +++ b/wolfHAL/gpio/stm32u5_gpio.h @@ -93,8 +93,8 @@ typedef whal_Stm32wb_Gpio_PinCfg whal_Stm32u5_Gpio_PinCfg; */ #define WHAL_STM32U5_GPIO_PIN WHAL_STM32WB_GPIO_PIN -/* Config initializer macro alias. The U5 board.h supplies the body under - * the U5-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The U5 wolfHAL_board.h supplies the body + * under the U5-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_GPIO_DEV WHAL_CFG_STM32U5_GPIO_DEV #endif /* WHAL_STM32U5_GPIO_H */ diff --git a/wolfHAL/gpio/stm32wb0_gpio.h b/wolfHAL/gpio/stm32wb0_gpio.h index 253bbc5..95c1746 100644 --- a/wolfHAL/gpio/stm32wb0_gpio.h +++ b/wolfHAL/gpio/stm32wb0_gpio.h @@ -116,7 +116,7 @@ typedef struct { /** * @brief Platform-owned GPIO device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32WB0_GPIO_DEV initializer in board.h. + * from the WHAL_CFG_STM32WB0_GPIO_DEV initializer in wolfHAL_board.h. */ extern const whal_Gpio whal_Stm32wb0_Gpio_Dev; diff --git a/wolfHAL/gpio/stm32wb_gpio.h b/wolfHAL/gpio/stm32wb_gpio.h index 5c5172d..77c1d1d 100644 --- a/wolfHAL/gpio/stm32wb_gpio.h +++ b/wolfHAL/gpio/stm32wb_gpio.h @@ -130,7 +130,7 @@ typedef struct { /* * @brief Platform-owned GPIO device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32WB_GPIO_DEV initializer in board.h. + * from the WHAL_CFG_STM32WB_GPIO_DEV initializer in wolfHAL_board.h. */ extern const whal_Gpio whal_Stm32wb_Gpio_Dev; diff --git a/wolfHAL/gpio/stm32wba_gpio.h b/wolfHAL/gpio/stm32wba_gpio.h index b255d07..d5bdca2 100644 --- a/wolfHAL/gpio/stm32wba_gpio.h +++ b/wolfHAL/gpio/stm32wba_gpio.h @@ -89,8 +89,8 @@ typedef whal_Stm32wb_Gpio_PinCfg whal_Stm32wba_Gpio_PinCfg; */ #define WHAL_STM32WBA_GPIO_PIN WHAL_STM32WB_GPIO_PIN -/* Config initializer macro alias. The WBA board.h supplies the body under - * the WBA-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The WBA wolfHAL_board.h supplies the body + * under the WBA-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_GPIO_DEV WHAL_CFG_STM32WBA_GPIO_DEV #endif /* WHAL_STM32WBA_GPIO_H */ diff --git a/wolfHAL/i2c/stm32l1_i2c.h b/wolfHAL/i2c/stm32l1_i2c.h index 68828a7..797cdc7 100644 --- a/wolfHAL/i2c/stm32l1_i2c.h +++ b/wolfHAL/i2c/stm32l1_i2c.h @@ -49,7 +49,7 @@ typedef struct whal_Stm32l1_I2c_Cfg { /* * @brief Single-instance device struct. Defined in the driver TU - * from the WHAL_CFG_STM32L1_I2C_DEV initializer in board.h. + * from the WHAL_CFG_STM32L1_I2C_DEV initializer in wolfHAL_board.h. */ #ifdef WHAL_CFG_STM32L1_I2C_SINGLE_INSTANCE extern const whal_I2c whal_Stm32l1_I2c_Dev; diff --git a/wolfHAL/i2c/stm32wb0_i2c.h b/wolfHAL/i2c/stm32wb0_i2c.h index debece5..f0d4247 100644 --- a/wolfHAL/i2c/stm32wb0_i2c.h +++ b/wolfHAL/i2c/stm32wb0_i2c.h @@ -47,8 +47,8 @@ typedef whal_Stm32wb_I2c_Cfg whal_Stm32wb0_I2c_Cfg; #define whal_Stm32wb0_I2c_Transfer whal_Stm32wb_I2c_Transfer #endif /* !WHAL_CFG_STM32WB0_I2C_DIRECT_API_MAPPING */ -/* Config initializer macro alias. The WB0 board.h supplies the body under - * the WB0-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The WB0 wolfHAL_board.h supplies the body + * under the WB0-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_I2C_DEV WHAL_CFG_STM32WB0_I2C_DEV #endif /* WHAL_STM32WB0_I2C_H */ diff --git a/wolfHAL/i2c/stm32wb_i2c.h b/wolfHAL/i2c/stm32wb_i2c.h index 5b1d784..00d2639 100644 --- a/wolfHAL/i2c/stm32wb_i2c.h +++ b/wolfHAL/i2c/stm32wb_i2c.h @@ -50,7 +50,7 @@ typedef struct whal_Stm32wb_I2c_Cfg { /* * @brief Single-instance device struct. Defined in the driver TU - * from the WHAL_CFG_STM32WB_I2C_DEV initializer in board.h. + * from the WHAL_CFG_STM32WB_I2C_DEV initializer in wolfHAL_board.h. */ #if defined(WHAL_CFG_STM32WB_I2C_SINGLE_INSTANCE) || \ defined(WHAL_CFG_STM32F0_I2C_SINGLE_INSTANCE) || \ diff --git a/wolfHAL/irq/cortex_m4_nvic.h b/wolfHAL/irq/cortex_m4_nvic.h index eb7fc4e..09b24e2 100644 --- a/wolfHAL/irq/cortex_m4_nvic.h +++ b/wolfHAL/irq/cortex_m4_nvic.h @@ -44,7 +44,7 @@ typedef struct { /* * @brief Platform-owned NVIC device singleton. Defined in the driver TU - * from the WHAL_CFG_NVIC_DEV initializer in board.h. + * from the WHAL_CFG_NVIC_DEV initializer in wolfHAL_board.h. */ extern const whal_Irq whal_Nvic_Dev; diff --git a/wolfHAL/rng/stm32h5_rng.h b/wolfHAL/rng/stm32h5_rng.h index c077124..c9b8ce2 100644 --- a/wolfHAL/rng/stm32h5_rng.h +++ b/wolfHAL/rng/stm32h5_rng.h @@ -45,7 +45,7 @@ typedef struct whal_Stm32h5_Rng_Cfg { /* * @brief Platform-owned RNG device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32H5_RNG_DEV initializer in board.h. + * from the WHAL_CFG_STM32H5_RNG_DEV initializer in wolfHAL_board.h. */ extern const whal_Rng whal_Stm32h5_Rng_Dev; diff --git a/wolfHAL/rng/stm32n6_rng.h b/wolfHAL/rng/stm32n6_rng.h index e42503c..9b3e9fb 100644 --- a/wolfHAL/rng/stm32n6_rng.h +++ b/wolfHAL/rng/stm32n6_rng.h @@ -44,8 +44,8 @@ typedef whal_Stm32wba_Rng_Cfg whal_Stm32n6_Rng_Cfg; #define whal_Stm32n6_Rng_Generate whal_Stm32wba_Rng_Generate #endif /* !WHAL_CFG_STM32N6_RNG_DIRECT_API_MAPPING */ -/* Config initializer macro alias. The N6 board.h supplies the body under - * the N6-prefixed name; the WBA driver source consumes the WBA name. */ +/* Config initializer macro alias. The N6 wolfHAL_board.h supplies the body + * under the N6-prefixed name; the WBA driver source consumes the WBA name. */ #define WHAL_CFG_STM32WBA_RNG_DEV WHAL_CFG_STM32N6_RNG_DEV #endif /* WHAL_STM32N6_RNG_H */ diff --git a/wolfHAL/rng/stm32u5_rng.h b/wolfHAL/rng/stm32u5_rng.h index 95e432b..8ae50f3 100644 --- a/wolfHAL/rng/stm32u5_rng.h +++ b/wolfHAL/rng/stm32u5_rng.h @@ -45,8 +45,8 @@ typedef whal_Stm32wba_Rng_Cfg whal_Stm32u5_Rng_Cfg; #define whal_Stm32u5_Rng_Generate whal_Stm32wba_Rng_Generate #endif /* !WHAL_CFG_STM32U5_RNG_DIRECT_API_MAPPING */ -/* Config initializer macro alias. The U5 board.h supplies the body under - * the U5-prefixed name; the WBA driver source consumes the WBA name. */ +/* Config initializer macro alias. The U5 wolfHAL_board.h supplies the body + * under the U5-prefixed name; the WBA driver source consumes the WBA name. */ #define WHAL_CFG_STM32WBA_RNG_DEV WHAL_CFG_STM32U5_RNG_DEV #endif /* WHAL_STM32U5_RNG_H */ diff --git a/wolfHAL/rng/stm32wb0_rng.h b/wolfHAL/rng/stm32wb0_rng.h index d27b43a..5cc7557 100644 --- a/wolfHAL/rng/stm32wb0_rng.h +++ b/wolfHAL/rng/stm32wb0_rng.h @@ -52,7 +52,7 @@ typedef struct whal_Stm32wb0_Rng_Cfg { /** * @brief Platform-owned RNG device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32WB0_RNG_DEV initializer in board.h. + * from the WHAL_CFG_STM32WB0_RNG_DEV initializer in wolfHAL_board.h. */ extern const whal_Rng whal_Stm32wb0_Rng_Dev; diff --git a/wolfHAL/rng/stm32wb_rng.h b/wolfHAL/rng/stm32wb_rng.h index 45374c4..8e0ad57 100644 --- a/wolfHAL/rng/stm32wb_rng.h +++ b/wolfHAL/rng/stm32wb_rng.h @@ -44,7 +44,7 @@ typedef struct whal_Stm32wb_Rng_Cfg { /* * @brief Platform-owned RNG device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32WB_RNG_DEV initializer in board.h. + * from the WHAL_CFG_STM32WB_RNG_DEV initializer in wolfHAL_board.h. */ extern const whal_Rng whal_Stm32wb_Rng_Dev; diff --git a/wolfHAL/rng/stm32wba_rng.h b/wolfHAL/rng/stm32wba_rng.h index c5e1804..ed24dba 100644 --- a/wolfHAL/rng/stm32wba_rng.h +++ b/wolfHAL/rng/stm32wba_rng.h @@ -42,7 +42,7 @@ typedef struct whal_Stm32wba_Rng_Cfg { /* * @brief Platform-owned RNG device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32WBA_RNG_DEV initializer in board.h. + * from the WHAL_CFG_STM32WBA_RNG_DEV initializer in wolfHAL_board.h. */ extern const whal_Rng whal_Stm32wba_Rng_Dev; diff --git a/wolfHAL/sensor/imu/bmi270_sensor.h b/wolfHAL/sensor/imu/bmi270_sensor.h index 0bd06ab..6905c9a 100644 --- a/wolfHAL/sensor/imu/bmi270_sensor.h +++ b/wolfHAL/sensor/imu/bmi270_sensor.h @@ -69,7 +69,7 @@ typedef struct { /* * @brief Single-instance device struct. Defined in the driver TU - * from the WHAL_CFG_BMI270_DEV initializer in board.h. + * from the WHAL_CFG_BMI270_DEV initializer in wolfHAL_board.h. */ #ifdef WHAL_CFG_BMI270_SINGLE_INSTANCE extern const whal_Sensor whal_Bmi270_Dev; diff --git a/wolfHAL/spi/stm32f4_spi.h b/wolfHAL/spi/stm32f4_spi.h index 9a43d06..b5943de 100644 --- a/wolfHAL/spi/stm32f4_spi.h +++ b/wolfHAL/spi/stm32f4_spi.h @@ -54,7 +54,7 @@ typedef struct whal_Stm32f4_Spi_Cfg { /* * @brief Single-instance device struct. Defined in the driver TU - * from the WHAL_CFG_STM32F4_SPI_DEV initializer in board.h. + * from the WHAL_CFG_STM32F4_SPI_DEV initializer in wolfHAL_board.h. */ #if defined(WHAL_CFG_STM32F4_SPI_SINGLE_INSTANCE) || \ defined(WHAL_CFG_STM32L1_SPI_SINGLE_INSTANCE) diff --git a/wolfHAL/spi/stm32h5_spi.h b/wolfHAL/spi/stm32h5_spi.h index d1d4ed2..4343463 100644 --- a/wolfHAL/spi/stm32h5_spi.h +++ b/wolfHAL/spi/stm32h5_spi.h @@ -48,7 +48,7 @@ typedef struct whal_Stm32h5_Spi_Cfg { /* * @brief Single-instance device struct. Defined in the driver TU - * from the WHAL_CFG_STM32H5_SPI_DEV initializer in board.h. + * from the WHAL_CFG_STM32H5_SPI_DEV initializer in wolfHAL_board.h. */ #if defined(WHAL_CFG_STM32H5_SPI_SINGLE_INSTANCE) || \ defined(WHAL_CFG_STM32N6_SPI_SINGLE_INSTANCE) || \ diff --git a/wolfHAL/spi/stm32wb0_spi.h b/wolfHAL/spi/stm32wb0_spi.h index c0c2d89..46c15fc 100644 --- a/wolfHAL/spi/stm32wb0_spi.h +++ b/wolfHAL/spi/stm32wb0_spi.h @@ -48,8 +48,8 @@ typedef whal_Stm32wb_Spi_Cfg whal_Stm32wb0_Spi_Cfg; #define whal_Stm32wb0_Spi_SendRecv whal_Stm32wb_Spi_SendRecv #endif /* !WHAL_CFG_STM32WB0_SPI_DIRECT_API_MAPPING */ -/* Config initializer macro alias. The WB0 board.h supplies the body under - * the WB0-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The WB0 wolfHAL_board.h supplies the body + * under the WB0-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_SPI_DEV WHAL_CFG_STM32WB0_SPI_DEV #endif /* WHAL_STM32WB0_SPI_H */ diff --git a/wolfHAL/spi/stm32wb_spi.h b/wolfHAL/spi/stm32wb_spi.h index bfee6a5..56d4575 100644 --- a/wolfHAL/spi/stm32wb_spi.h +++ b/wolfHAL/spi/stm32wb_spi.h @@ -50,7 +50,7 @@ typedef struct whal_Stm32wb_Spi_Cfg { /* * @brief Single-instance device struct. Defined in the driver TU - * from the WHAL_CFG_STM32WB_SPI_DEV initializer in board.h. + * from the WHAL_CFG_STM32WB_SPI_DEV initializer in wolfHAL_board.h. */ #if defined(WHAL_CFG_STM32WB_SPI_SINGLE_INSTANCE) || \ defined(WHAL_CFG_STM32C0_SPI_SINGLE_INSTANCE) || \ diff --git a/wolfHAL/timer/systick.h b/wolfHAL/timer/systick.h index 40fbbf0..2ab54de 100644 --- a/wolfHAL/timer/systick.h +++ b/wolfHAL/timer/systick.h @@ -57,7 +57,7 @@ typedef struct { /* * @brief Platform-owned SysTick device singleton. Defined in the driver TU - * from the WHAL_CFG_SYSTICK_DEV initializer in board.h. + * from the WHAL_CFG_SYSTICK_DEV initializer in wolfHAL_board.h. */ extern const whal_Timer whal_SysTick_Dev; diff --git a/wolfHAL/uart/pic32cz_uart.h b/wolfHAL/uart/pic32cz_uart.h index 4a3d0ed..0244539 100644 --- a/wolfHAL/uart/pic32cz_uart.h +++ b/wolfHAL/uart/pic32cz_uart.h @@ -66,7 +66,7 @@ typedef struct whal_Pic32cz_Uart_Cfg { /* * @brief Single-instance device struct. Defined in the driver TU - * from the WHAL_CFG_PIC32CZ_UART_DEV initializer in board.h. + * from the WHAL_CFG_PIC32CZ_UART_DEV initializer in wolfHAL_board.h. */ #ifdef WHAL_CFG_PIC32CZ_UART_SINGLE_INSTANCE extern const whal_Uart whal_Pic32cz_Uart_Dev; diff --git a/wolfHAL/uart/stm32f0_uart.h b/wolfHAL/uart/stm32f0_uart.h index 74a4a0e..eba9fba 100644 --- a/wolfHAL/uart/stm32f0_uart.h +++ b/wolfHAL/uart/stm32f0_uart.h @@ -44,7 +44,7 @@ typedef struct whal_Stm32f0_Uart_Cfg { /* * @brief Single-instance device struct. Defined in the driver TU - * from the WHAL_CFG_STM32F0_UART_DEV initializer in board.h. + * from the WHAL_CFG_STM32F0_UART_DEV initializer in wolfHAL_board.h. */ #if defined(WHAL_CFG_STM32F0_UART_SINGLE_INSTANCE) || \ defined(WHAL_CFG_STM32F3_UART_SINGLE_INSTANCE) diff --git a/wolfHAL/uart/stm32f4_uart.h b/wolfHAL/uart/stm32f4_uart.h index bfe6823..d3a040a 100644 --- a/wolfHAL/uart/stm32f4_uart.h +++ b/wolfHAL/uart/stm32f4_uart.h @@ -65,7 +65,7 @@ typedef struct whal_Stm32f4_Uart_Cfg { /* * @brief Single-instance device struct. Defined in the driver TU - * from the WHAL_CFG_STM32F4_UART_DEV initializer in board.h. + * from the WHAL_CFG_STM32F4_UART_DEV initializer in wolfHAL_board.h. */ #if defined(WHAL_CFG_STM32F4_UART_SINGLE_INSTANCE) || \ defined(WHAL_CFG_STM32L1_UART_SINGLE_INSTANCE) diff --git a/wolfHAL/uart/stm32wb0_uart.h b/wolfHAL/uart/stm32wb0_uart.h index 10ad7e0..13282a6 100644 --- a/wolfHAL/uart/stm32wb0_uart.h +++ b/wolfHAL/uart/stm32wb0_uart.h @@ -52,8 +52,8 @@ typedef whal_Stm32wb_Uart_Cfg whal_Stm32wb0_Uart_Cfg; #define WHAL_STM32WB0_UART_BRR WHAL_STM32WB_UART_BRR #define WHAL_STM32WB0_LPUART_BRR WHAL_STM32WB_LPUART_BRR -/* Config initializer macro alias. The WB0 board.h supplies the body under - * the WB0-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The WB0 wolfHAL_board.h supplies the body + * under the WB0-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_UART_DEV WHAL_CFG_STM32WB0_UART_DEV #endif /* WHAL_STM32WB0_UART_H */ diff --git a/wolfHAL/uart/stm32wb_uart.h b/wolfHAL/uart/stm32wb_uart.h index a6ced2c..f8bf63c 100644 --- a/wolfHAL/uart/stm32wb_uart.h +++ b/wolfHAL/uart/stm32wb_uart.h @@ -53,7 +53,7 @@ typedef struct whal_Stm32wb_Uart_Cfg { /* * @brief Single-instance device struct. Defined in the driver TU - * from the WHAL_CFG_STM32WB_UART_DEV initializer in board.h. + * from the WHAL_CFG_STM32WB_UART_DEV initializer in wolfHAL_board.h. */ #if defined(WHAL_CFG_STM32WB_UART_SINGLE_INSTANCE) || \ defined(WHAL_CFG_STM32H5_UART_SINGLE_INSTANCE) || \ diff --git a/wolfHAL/uart/stm32wb_uart_dma.h b/wolfHAL/uart/stm32wb_uart_dma.h index 7ffa482..fef48c7 100644 --- a/wolfHAL/uart/stm32wb_uart_dma.h +++ b/wolfHAL/uart/stm32wb_uart_dma.h @@ -52,7 +52,7 @@ typedef struct { /* * @brief Single-instance device struct. Defined in the driver TU - * from the WHAL_CFG_STM32WB_UART_DMA_DEV initializer in board.h. + * from the WHAL_CFG_STM32WB_UART_DMA_DEV initializer in wolfHAL_board.h. */ #ifdef WHAL_CFG_STM32WB_UART_DMA_SINGLE_INSTANCE extern const whal_Uart whal_Stm32wb_UartDma_Dev; diff --git a/wolfHAL/uart/stm32wba_uart_dma.h b/wolfHAL/uart/stm32wba_uart_dma.h index 7e1107e..bebba0e 100644 --- a/wolfHAL/uart/stm32wba_uart_dma.h +++ b/wolfHAL/uart/stm32wba_uart_dma.h @@ -63,7 +63,7 @@ typedef struct { /* * @brief Single-instance device struct. Defined in the driver TU - * from the WHAL_CFG_STM32WBA_UART_DMA_DEV initializer in board.h. + * from the WHAL_CFG_STM32WBA_UART_DMA_DEV initializer in wolfHAL_board.h. */ #ifdef WHAL_CFG_STM32WBA_UART_DMA_SINGLE_INSTANCE extern const whal_Uart whal_Stm32wba_UartDma_Dev; diff --git a/wolfHAL/watchdog/stm32f0_iwdg.h b/wolfHAL/watchdog/stm32f0_iwdg.h index 287ae7a..94ce179 100644 --- a/wolfHAL/watchdog/stm32f0_iwdg.h +++ b/wolfHAL/watchdog/stm32f0_iwdg.h @@ -52,8 +52,8 @@ typedef whal_Stm32wb_Iwdg_Cfg whal_Stm32f0_Iwdg_Cfg; #define WHAL_STM32F0_IWDG_PR_128 WHAL_STM32WB_IWDG_PR_128 #define WHAL_STM32F0_IWDG_PR_256 WHAL_STM32WB_IWDG_PR_256 -/* Config initializer macro alias. The F0 board.h supplies the body under - * the F0-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The F0 wolfHAL_board.h supplies the body + * under the F0-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_IWDG_DEV WHAL_CFG_STM32F0_IWDG_DEV #endif /* WHAL_STM32F0_IWDG_H */ diff --git a/wolfHAL/watchdog/stm32f0_wwdg.h b/wolfHAL/watchdog/stm32f0_wwdg.h index 4d10ff2..c91d1ee 100644 --- a/wolfHAL/watchdog/stm32f0_wwdg.h +++ b/wolfHAL/watchdog/stm32f0_wwdg.h @@ -45,7 +45,7 @@ typedef struct { /* * @brief Platform-owned WWDG device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32F0_WWDG_DEV initializer in board.h. + * from the WHAL_CFG_STM32F0_WWDG_DEV initializer in wolfHAL_board.h. */ extern const whal_Watchdog whal_Stm32f0_Wwdg_Dev; diff --git a/wolfHAL/watchdog/stm32f3_iwdg.h b/wolfHAL/watchdog/stm32f3_iwdg.h index 52e919a..d579275 100644 --- a/wolfHAL/watchdog/stm32f3_iwdg.h +++ b/wolfHAL/watchdog/stm32f3_iwdg.h @@ -50,8 +50,8 @@ typedef whal_Stm32wb_Iwdg_Cfg whal_Stm32f3_Iwdg_Cfg; #define WHAL_STM32F3_IWDG_PR_128 WHAL_STM32WB_IWDG_PR_128 #define WHAL_STM32F3_IWDG_PR_256 WHAL_STM32WB_IWDG_PR_256 -/* Config initializer macro alias. The F3 board.h supplies the body under - * the F3-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The F3 wolfHAL_board.h supplies the body + * under the F3-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_IWDG_DEV WHAL_CFG_STM32F3_IWDG_DEV #endif /* WHAL_STM32F3_IWDG_H */ diff --git a/wolfHAL/watchdog/stm32f3_wwdg.h b/wolfHAL/watchdog/stm32f3_wwdg.h index a93a069..de3015c 100644 --- a/wolfHAL/watchdog/stm32f3_wwdg.h +++ b/wolfHAL/watchdog/stm32f3_wwdg.h @@ -43,8 +43,8 @@ typedef whal_Stm32f0_Wwdg_Cfg whal_Stm32f3_Wwdg_Cfg; #define whal_Stm32f3_Wwdg_Refresh whal_Stm32f0_Wwdg_Refresh #endif /* !WHAL_CFG_STM32F3_WWDG_DIRECT_API_MAPPING */ -/* Config initializer macro alias. The F3 board.h supplies the body under - * the F3-prefixed name; the F0 driver source consumes the F0 name. */ +/* Config initializer macro alias. The F3 wolfHAL_board.h supplies the body + * under the F3-prefixed name; the F0 driver source consumes the F0 name. */ #define WHAL_CFG_STM32F0_WWDG_DEV WHAL_CFG_STM32F3_WWDG_DEV #endif /* WHAL_STM32F3_WWDG_H */ diff --git a/wolfHAL/watchdog/stm32l1_iwdg.h b/wolfHAL/watchdog/stm32l1_iwdg.h index 053958e..07bc4ca 100644 --- a/wolfHAL/watchdog/stm32l1_iwdg.h +++ b/wolfHAL/watchdog/stm32l1_iwdg.h @@ -50,8 +50,8 @@ typedef whal_Stm32wb_Iwdg_Cfg whal_Stm32l1_Iwdg_Cfg; #define WHAL_STM32L1_IWDG_PR_128 WHAL_STM32WB_IWDG_PR_128 #define WHAL_STM32L1_IWDG_PR_256 WHAL_STM32WB_IWDG_PR_256 -/* Config initializer macro alias. The L1 board.h supplies the body under - * the L1-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The L1 wolfHAL_board.h supplies the body + * under the L1-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_IWDG_DEV WHAL_CFG_STM32L1_IWDG_DEV #endif /* WHAL_STM32L1_IWDG_H */ diff --git a/wolfHAL/watchdog/stm32l1_wwdg.h b/wolfHAL/watchdog/stm32l1_wwdg.h index c64a988..8daead8 100644 --- a/wolfHAL/watchdog/stm32l1_wwdg.h +++ b/wolfHAL/watchdog/stm32l1_wwdg.h @@ -43,8 +43,8 @@ typedef whal_Stm32f0_Wwdg_Cfg whal_Stm32l1_Wwdg_Cfg; #define whal_Stm32l1_Wwdg_Refresh whal_Stm32f0_Wwdg_Refresh #endif /* !WHAL_CFG_STM32L1_WWDG_DIRECT_API_MAPPING */ -/* Config initializer macro alias. The L1 board.h supplies the body under - * the L1-prefixed name; the F0 driver source consumes the F0 name. */ +/* Config initializer macro alias. The L1 wolfHAL_board.h supplies the body + * under the L1-prefixed name; the F0 driver source consumes the F0 name. */ #define WHAL_CFG_STM32F0_WWDG_DEV WHAL_CFG_STM32L1_WWDG_DEV #endif /* WHAL_STM32L1_WWDG_H */ diff --git a/wolfHAL/watchdog/stm32n6_iwdg.h b/wolfHAL/watchdog/stm32n6_iwdg.h index 87fec38..643d586 100644 --- a/wolfHAL/watchdog/stm32n6_iwdg.h +++ b/wolfHAL/watchdog/stm32n6_iwdg.h @@ -52,8 +52,8 @@ typedef whal_Stm32wb_Iwdg_Cfg whal_Stm32n6_Iwdg_Cfg; #define WHAL_STM32N6_IWDG_PR_128 WHAL_STM32WB_IWDG_PR_128 #define WHAL_STM32N6_IWDG_PR_256 WHAL_STM32WB_IWDG_PR_256 -/* Config initializer macro alias. The N6 board.h supplies the body under - * the N6-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The N6 wolfHAL_board.h supplies the body + * under the N6-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_IWDG_DEV WHAL_CFG_STM32N6_IWDG_DEV #endif /* WHAL_STM32N6_IWDG_H */ diff --git a/wolfHAL/watchdog/stm32n6_wwdg.h b/wolfHAL/watchdog/stm32n6_wwdg.h index 64a738b..7196ab6 100644 --- a/wolfHAL/watchdog/stm32n6_wwdg.h +++ b/wolfHAL/watchdog/stm32n6_wwdg.h @@ -53,8 +53,8 @@ typedef whal_Stm32wb_Wwdg_Cfg whal_Stm32n6_Wwdg_Cfg; #define WHAL_STM32N6_WWDG_TB_64 WHAL_STM32WB_WWDG_TB_64 #define WHAL_STM32N6_WWDG_TB_128 WHAL_STM32WB_WWDG_TB_128 -/* Config initializer macro alias. The N6 board.h supplies the body under - * the N6-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The N6 wolfHAL_board.h supplies the body + * under the N6-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_WWDG_DEV WHAL_CFG_STM32N6_WWDG_DEV #endif /* WHAL_STM32N6_WWDG_H */ diff --git a/wolfHAL/watchdog/stm32u5_iwdg.h b/wolfHAL/watchdog/stm32u5_iwdg.h index b4f4c1a..690d5c9 100644 --- a/wolfHAL/watchdog/stm32u5_iwdg.h +++ b/wolfHAL/watchdog/stm32u5_iwdg.h @@ -55,8 +55,8 @@ typedef whal_Stm32wb_Iwdg_Cfg whal_Stm32u5_Iwdg_Cfg; #define WHAL_STM32U5_IWDG_PR_128 WHAL_STM32WB_IWDG_PR_128 #define WHAL_STM32U5_IWDG_PR_256 WHAL_STM32WB_IWDG_PR_256 -/* Config initializer macro alias. The U5 board.h supplies the body under - * the U5-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The U5 wolfHAL_board.h supplies the body + * under the U5-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_IWDG_DEV WHAL_CFG_STM32U5_IWDG_DEV #endif /* WHAL_STM32U5_IWDG_H */ diff --git a/wolfHAL/watchdog/stm32u5_wwdg.h b/wolfHAL/watchdog/stm32u5_wwdg.h index b6cb117..857ff71 100644 --- a/wolfHAL/watchdog/stm32u5_wwdg.h +++ b/wolfHAL/watchdog/stm32u5_wwdg.h @@ -56,8 +56,8 @@ typedef whal_Stm32wb_Wwdg_Cfg whal_Stm32u5_Wwdg_Cfg; #define WHAL_STM32U5_WWDG_TB_64 WHAL_STM32WB_WWDG_TB_64 #define WHAL_STM32U5_WWDG_TB_128 WHAL_STM32WB_WWDG_TB_128 -/* Config initializer macro alias. The U5 board.h supplies the body under - * the U5-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The U5 wolfHAL_board.h supplies the body + * under the U5-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_WWDG_DEV WHAL_CFG_STM32U5_WWDG_DEV #endif /* WHAL_STM32U5_WWDG_H */ diff --git a/wolfHAL/watchdog/stm32wb0_iwdg.h b/wolfHAL/watchdog/stm32wb0_iwdg.h index a49379d..0d81079 100644 --- a/wolfHAL/watchdog/stm32wb0_iwdg.h +++ b/wolfHAL/watchdog/stm32wb0_iwdg.h @@ -58,8 +58,8 @@ typedef whal_Stm32wb_Iwdg_Cfg whal_Stm32wb0_Iwdg_Cfg; #define WHAL_STM32WB0_IWDG_PR_128 WHAL_STM32WB_IWDG_PR_128 #define WHAL_STM32WB0_IWDG_PR_256 WHAL_STM32WB_IWDG_PR_256 -/* Config initializer macro alias. The WB0 board.h supplies the body under - * the WB0-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The WB0 wolfHAL_board.h supplies the body + * under the WB0-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_IWDG_DEV WHAL_CFG_STM32WB0_IWDG_DEV #endif /* WHAL_STM32WB0_IWDG_H */ diff --git a/wolfHAL/watchdog/stm32wb_iwdg.h b/wolfHAL/watchdog/stm32wb_iwdg.h index 909bb42..c6e7311 100644 --- a/wolfHAL/watchdog/stm32wb_iwdg.h +++ b/wolfHAL/watchdog/stm32wb_iwdg.h @@ -59,7 +59,7 @@ typedef struct { /* * @brief Platform-owned IWDG device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32WB_IWDG_DEV initializer in board.h. + * from the WHAL_CFG_STM32WB_IWDG_DEV initializer in wolfHAL_board.h. */ extern const whal_Watchdog whal_Stm32wb_Iwdg_Dev; diff --git a/wolfHAL/watchdog/stm32wb_wwdg.h b/wolfHAL/watchdog/stm32wb_wwdg.h index 406549b..89c9b93 100644 --- a/wolfHAL/watchdog/stm32wb_wwdg.h +++ b/wolfHAL/watchdog/stm32wb_wwdg.h @@ -59,7 +59,7 @@ typedef struct { /* * @brief Platform-owned WWDG device singleton. Defined in the driver TU - * from the WHAL_CFG_STM32WB_WWDG_DEV initializer in board.h. + * from the WHAL_CFG_STM32WB_WWDG_DEV initializer in wolfHAL_board.h. */ extern const whal_Watchdog whal_Stm32wb_Wwdg_Dev; diff --git a/wolfHAL/watchdog/stm32wba_iwdg.h b/wolfHAL/watchdog/stm32wba_iwdg.h index 32383bf..bb99fb5 100644 --- a/wolfHAL/watchdog/stm32wba_iwdg.h +++ b/wolfHAL/watchdog/stm32wba_iwdg.h @@ -55,8 +55,8 @@ typedef whal_Stm32wb_Iwdg_Cfg whal_Stm32wba_Iwdg_Cfg; #define WHAL_STM32WBA_IWDG_PR_128 WHAL_STM32WB_IWDG_PR_128 #define WHAL_STM32WBA_IWDG_PR_256 WHAL_STM32WB_IWDG_PR_256 -/* Config initializer macro alias. The WBA board.h supplies the body under - * the WBA-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The WBA wolfHAL_board.h supplies the body + * under the WBA-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_IWDG_DEV WHAL_CFG_STM32WBA_IWDG_DEV #endif /* WHAL_STM32WBA_IWDG_H */ diff --git a/wolfHAL/watchdog/stm32wba_wwdg.h b/wolfHAL/watchdog/stm32wba_wwdg.h index 5c8b2d3..9317180 100644 --- a/wolfHAL/watchdog/stm32wba_wwdg.h +++ b/wolfHAL/watchdog/stm32wba_wwdg.h @@ -56,8 +56,8 @@ typedef whal_Stm32wb_Wwdg_Cfg whal_Stm32wba_Wwdg_Cfg; #define WHAL_STM32WBA_WWDG_TB_64 WHAL_STM32WB_WWDG_TB_64 #define WHAL_STM32WBA_WWDG_TB_128 WHAL_STM32WB_WWDG_TB_128 -/* Config initializer macro alias. The WBA board.h supplies the body under - * the WBA-prefixed name; the WB driver source consumes the WB name. */ +/* Config initializer macro alias. The WBA wolfHAL_board.h supplies the body + * under the WBA-prefixed name; the WB driver source consumes the WB name. */ #define WHAL_CFG_STM32WB_WWDG_DEV WHAL_CFG_STM32WBA_WWDG_DEV #endif /* WHAL_STM32WBA_WWDG_H */ diff --git a/wolfHAL/wolfHAL.h b/wolfHAL/wolfHAL.h index ccb9e45..0c70526 100644 --- a/wolfHAL/wolfHAL.h +++ b/wolfHAL/wolfHAL.h @@ -32,7 +32,7 @@ /* Pass WHAL_INTERNAL_DEV as the dev argument when the driver has direct * API mapping enabled AND is single-instance. The driver reads its dev - * struct (e.g. whal_Stm32wb_Iwdg_Dev) from board.h and ignores whatever + * struct (e.g. whal_Stm32wb_Iwdg_Dev) from wolfHAL_board.h and ignores whatever * gets passed in. */ #define WHAL_INTERNAL_DEV ((void *)0) @@ -40,7 +40,7 @@ * generic type on one board (e.g. on-chip flash + SPI NOR). The stub * carries only the vtable so the generic whal__* dispatch can route * to the right driver; the driver itself reads .base and .cfg from its - * own singleton in board.h, so they're left unset here. */ + * own singleton in wolfHAL_board.h, so they're left unset here. */ #define WHAL_DISPATCH_STUB(driver_ptr) { .driver = (driver_ptr) } #include