Factor target_timer_callbacks_check_time into pieces:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 11 Jun 2009 11:43:00 +0000 (11:43 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 11 Jun 2009 11:43:00 +0000 (11:43 +0000)
commit8e899d43ef8c049200e4558c4ba2b7f052468935
tree86811b35d186c5cc4e6b2910c448b50f41716f20
parent7c892082c9ca0405bf38e93e259735e7eef6fbab
Factor target_timer_callbacks_check_time into pieces:
- Add target_timer_callback_periodic_restart and target_call_timer_callback.
- Clean up and simplify logic that determines whether to call each callback.
- Move variable declarations to location of first use.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2195 b42882b7-edfa-0310-969c-e2dbd0fdcd60
src/target/target.c