-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] driver pwrmccdaq: simulate better connection of DIO ports A <-> B
The simulator simulates port A being connected to port B. So writting to a bit on port A causes the equivalent bit on port B to read the same value (and inversely too). This worked, but it broke the possibility to read what value is currently set. => write both to port A & B. Also *document* this behaviour. Also, as the test cases relied on such behaviour on the real hardware (by physically connecting some pins together). The tests also work on the simulator. So no need to disable it... However that test was broken, so fix it too.
- Loading branch information
Showing
2 changed files
with
52 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters