feat: DMM driver implementation and host unit tests #91
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#91
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/dmm/hal_dmm.c/.h— the DMM (Data Modification Module) driver: reset/known-state bring-up (pulsesGLBCTRL.RESET, leavesONOFFat the TRM-recommended "off" encoding), Direct Data Mode circular-buffer configuration (DMMDDMDEST/DMMDDMBL, rejecting an unsupported blocksize or a busy module), enable/disable, and the four raw device handlers (DMM1_LVL0_IRQHandler/DMM1_LVL1_IRQHandler/DMM2_LVL0_IRQHandler/DMM2_LVL1_IRQHandler) decodingDMMOFF1/DMMOFF2to a weak, application-overridablehal_dmm_irq_handler()hook. Both DMM instances supported (register-identical per TRM Chapter 20).Deliberately minimal scope (documented in
hal_dmm.h's top-of-file comment): Trace Mode is not implemented at all (only Direct Data Mode), and DMM pin functional-mode muxing (DMMPC0-8) is left entirely to the caller/board.Use Case / Rationale
As a firmware developer, I need a
hal_dmm_*API for basic DMM bring-up and Direct Data Mode buffer configuration, following the same driver pattern established by GPIO, ESM, UART, I2C, SPI, ADCBUF, CBUFF, and HWA.As a QMS reviewer, I need a host-native Catch2 test suite (
testing/mss/unit/hal_functionality/test_dmm.c) covering both instances, the busy-rejection path, the blocksize-encoding validation, and all four IRQ handlers, runnable in CI without target hardware.Acceptance Criteria
hal/mss/dmm/hal_dmm.c/.himplemented against this project's currenthal/registers/component/dmm.h/instance/dmm.htesting/mss/unit/hal_functionality/test_dmm.cpasses underctestFunctional Impact
None — self-contained addition alongside the already-landed GPIO/ESM/UART/I2C/SPI/ADCBUF/CBUFF/HWA 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, relates to #89