feat(hwa): HWA driver implementation and host unit tests #90
No reviewers
Labels
No labels
Category
App
Category
Documentation
Category
Firmware
Category
Hardware
Category
Qms
PR_Size
L
PR_Size
M
PR_Size
S
PR_Size
XL
PR_Size
XS
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Priority
Very Low Priority
Size
Epic
Size
Feature
Size
Task
Status
Blocked
Status
Draft
Status
Needs-review
Team
Board
Team
Dev
Team
Management
Type
Bug
Type
Capa
Type
Improvement
Type
New-feature
Type
Regulatory
Type
Usability
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
opendutchsolutions.public/hal_awr6843!90
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/89-hwa-driver"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Adds
hal/mss/hwa/hal_hwa.c/.h— the HWA (Hardware Accelerator) driver: reset/clock-gate bring-up (matching TI's ownhwa.creference sequence), raw param-set-entry load (verbatim blob write, no structured field API), single-contiguous-range software trigger, and a poll-only completion check. No interrupt path — no MSS-reachable HWA completion IRQ exists (documented inhal_hwa.h's top-of-file comment). Self-contained — no cross-module dependency.Why
Continues the driver-implementation phase started by GPIO (#75/#76), ESM (#77/#78), UART (#79/#80), I2C (#81/#82), SPI (#83/#84), ADCBUF (#85/#86), and CBUFF (#87/#88).
Related Issue
Closes #89
Type of Change
Impact Assessment
Testing
testing/mss/unit/hal_functionality/test_hwa_functionallocally (10 test cases, 77 assertions, all passing) alongside the full existingctestsuite (259/259 passing, no regressions); ran a full MISRA C:2025 pass (0 unsuppressed findings,-DENABLE_HWA_MODULEadded); reformatted and re-verified against the exact clang-format 18.1.3 the CI runner uses; sanity-checked by dropping the+ 1Ufromhwa_range_mask()'s count computation, confirming the test suite fails (3 test cases, 4 assertions), then reverting.PR Size
Size justification / exemption (if L or XL):
620 raw lines across 9 files, all hand-reviewed (no mechanically-generated content). Not split further — the driver (
hal_hwa.c/.h, 373 lines) and its Catch2 spec (test_hwa.c, 231 lines, covering the reset/bring-up sequence, param-set load bounds checking, trigger range validation, and the done-poll/clear-on-completion logic) don't decompose into independently-reviewable sub-PRs, same rationale as prior driver PRs (#78, #80, #82, #84, #86, #88). The remaining files are small CMake/Kconfig/MISRA wiring diffs, also not independently reviewable apart from the driver they enable.Checklist
type(scope): descriptionconvention withRelates to #<issue>footerSummary
hal/mss/hwa/hal_hwa.c/.h: HWA driver (reset/bring-up, param-set load, single-range trigger, poll-only done check) — deliberately minimal scope, documented in the header's top-of-file commenttesting/mss/unit/hal_functionality/test_hwa.c(+CMakeLists.txt): Catch2 functional test suite. Namedtest_hwa_functional(nottest_hwa) to avoid a CMake target-name collision withti_hal_comparison/test_hwa.c's register-layout comparison test.zephyr/Kconfig/zephyr/CMakeLists.txt/hal/util/hal_config_mss.h:HAL_AWR6843_HWAKconfig option andENABLE_HWA_MODULEbridge, same pattern as every other landed drivertools/misra/run_misra.sh:-DENABLE_HWA_MODULEadded