This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/sim/bfin ChangeLog dv-bfin_gpio.c
- From: vapier at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 25 Mar 2011 00:13:23 -0000
- Subject: src/sim/bfin ChangeLog dv-bfin_gpio.c
CVSROOT: /cvs/src
Module name: src
Changes by: vapier@sourceware.org 2011-03-25 00:13:23
Modified files:
sim/bfin : ChangeLog dv-bfin_gpio.c
Log message:
sim: bfin: fix GPIO logic bugs when processing events
We need the DIR bit cleared, not set, in order for the pin to be treated
as an input.
When looking up the data value, we need to shift the "level" value over by
"my_port" rather than "bit" as the latter has already been shifted over.
We also should normalize the "level" coming in from the outside worlds to
the set of {0,1} since those are the only values that matter to GPIOs.
We need the BOTH bit set, not cleared, in order for the pin to trigger
on both edges.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/bfin/ChangeLog.diff?cvsroot=src&r1=1.21&r2=1.22
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/bfin/dv-bfin_gpio.c.diff?cvsroot=src&r1=1.3&r2=1.4