projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3390c62
)
cortexelf-v1: Fetch data at TPB rising when MWR or MRD are low
author
Keith Packard
<keithp@keithp.com>
Fri, 14 Apr 2017 03:18:58 +0000
(21:18 -0600)
committer
Keith Packard
<keithp@keithp.com>
Fri, 14 Apr 2017 03:20:13 +0000
(21:20 -0600)
This should get the right value at least.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/cortexelf-v1/ao_1802.c
patch
|
blob
|
history
diff --git
a/src/cortexelf-v1/ao_1802.c
b/src/cortexelf-v1/ao_1802.c
index b7e11637ab9dbf9eeef4a80d5da106a86808c93f..9fb36595d3797376d32b06b042eb0e8f1f361936 100644
(file)
--- 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();
TPB_rising(void)
{
ADDRESS = (ADDRESS & 0xff00) | MA();
+ if (MWR() == 0 || MRD() == 0)
+ DATA = BUS();
ao_wakeup(&ADDRESS);
}
static void
TPB_falling(void)
{
ao_wakeup(&ADDRESS);
}
static void
TPB_falling(void)
{
- DATA = BUS();
- ao_wakeup(&ADDRESS);
}
uint8_t
}
uint8_t