From: Keith Packard Date: Fri, 14 Apr 2017 03:18:58 +0000 (-0600) Subject: cortexelf-v1: Fetch data at TPB rising when MWR or MRD are low X-Git-Tag: 1.7~39 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=a5c8b8c59f99108233d99ceceb6f85315694e4b1 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 --- 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