Wait for a while when switching the RESET_N line
authorKeith Packard <keithp@keithp.com>
Sat, 7 Mar 2009 06:52:35 +0000 (22:52 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 7 Mar 2009 06:56:47 +0000 (22:56 -0800)
commitcc0495b7028f4b1189a00707d828a68534d1dea2
treea7727c8af99af7781f801a00235a6b9fb8d107f1
parent41289e6d8f1767547a33fea349866e928e44910f
Wait for a while when switching the RESET_N line

The cc1111 manual suggests placing a 2.7kΩ resister and 1nF capacitor on the
RESET_N line to filter out noise. This increases the time necessary to reset
the chip to several microseconds which is longer than the interval between
two USB packets. Flush the USB packet queue and sleep for a while after
changing the value on the RESET_N line to make sure the chip sees the state
change.

Signed-off-by: Keith Packard <keithp@keithp.com>
lib/ccdbg-command.c
lib/ccdbg-io.c
lib/ccdbg.h