diff options
author | Keith Packard <keithp@keithp.com> | 2017-04-13 21:18:58 -0600 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-04-13 21:20:13 -0600 |
commit | a5c8b8c59f99108233d99ceceb6f85315694e4b1 (patch) | |
tree | 423d349648967a47dbd0e2b5c8dc512c38809dbe /src/cortexelf-v1 | |
parent | 3390c62b6d0761764ec5249d72bda33b984a8f90 (diff) |
cortexelf-v1: Fetch data at TPB rising when MWR or MRD are low
This should get the right value at least.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cortexelf-v1')
-rw-r--r-- | src/cortexelf-v1/ao_1802.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cortexelf-v1/ao_1802.c b/src/cortexelf-v1/ao_1802.c index b7e11637..9fb36595 100644 --- a/src/cortexelf-v1/ao_1802.c +++ b/src/cortexelf-v1/ao_1802.c @@ -73,14 +73,14 @@ static void TPB_rising(void) { ADDRESS = (ADDRESS & 0xff00) | MA(); + if (MWR() == 0 || MRD() == 0) + DATA = BUS(); ao_wakeup(&ADDRESS); } static void TPB_falling(void) { - DATA = BUS(); - ao_wakeup(&ADDRESS); } uint8_t |