Add bank wide GPIO TRAPs for read/write #177
Labels
✨ feature
New things!
good first issue
Good for new contributers!
P-medium
Medium priority
T-os
Topic: The LC-3 OS (TRAPs too)
what
Currently we offer per pin GPIO mode setting and read/write TRAPs:
core/os/src/traps.rs
Lines 12 to 18 in 5e0f0eb
We should also offer bank wide read/write TRAPs for users that are concerned with performance. These should access the port wide GPIO mem-mapped register:
core/baseline-sim/src/mem_mapped.rs
Line 46 in 8404e86
That in turn shells out to
Gpio::read_all
/Gpio::write_all
:core/baseline-sim/src/mem_mapped.rs
Lines 596 to 631 in 8404e86
steps
GPIO_READ_BANK
GPIO_WRITE_BANK
µbench
style benchmark to thetm4c
repo:where
branch:
feat/bank-wide-gpio-traps
open questions
State checking/error handling for the
GPIO_READ_BANK
/GPIO_WRITE_BANK
TRAPs?The text was updated successfully, but these errors were encountered: