feat: HWA driver implementation and host unit tests #89
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#89
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 —ACCENABLE=0, pulseACCRESET,ACCCLKEN=1, clear stalePARAMDONESTAT, zero all param-RAM entries), raw param-set-entry load (verbatim blob write, no structured field API — see rationale below), single-contiguous-range software trigger, and a poll-only completion check (hal_hwa_is_done()).Deliberately minimal scope (documented in
hal_hwa.h's top-of-file comment): no structured per-field param-set API (TI's CSL header is the only register-level source available — the TRM defers to an unavailable Radar HWA User's Guide — so several field semantics aren't confident enough to bake into a typed API), no multi-range chaining/looped execution, and no interrupt path (no MSS-reachable HWA completion IRQ exists — polling only).Use Case / Rationale
As a firmware developer, I need a
hal_hwa_*API for basic HWA bring-up and single-range param-set triggering, following the same driver pattern established by GPIO, ESM, UART, I2C, SPI, ADCBUF, and CBUFF.As a QMS reviewer, I need a host-native Catch2 test suite (
testing/mss/unit/hal_functionality/test_hwa.c) covering the reset/bring-up sequence, param-set load bounds checking, trigger range validation, and the done-poll/clear-on-completion logic, runnable in CI without target hardware.Acceptance Criteria
hal/mss/hwa/hal_hwa.c/.himplemented against this project's currenthal/registers/component/hwa.h/instance/hwa.htesting/mss/unit/hal_functionality/test_hwa.cpasses underctestFunctional Impact
None — self-contained addition alongside the already-landed GPIO/ESM/UART/I2C/SPI/ADCBUF/CBUFF drivers.
Regulatory Impact
None
QMS Impact
None
Risk Impact
No — existing risk coverage sufficient.
Related Issues / PRs
Relates to #4, relates to #75, relates to #77, relates to #79, relates to #81, relates to #83, relates to #85, relates to #87