Cortex-M3: DWT cleanup/fixes
authorDavid Brownell <dbrownell@users.sourceforge.net>
Thu, 5 Nov 2009 09:03:17 +0000 (01:03 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Thu, 5 Nov 2009 09:03:17 +0000 (01:03 -0800)
commit7acb2607ff79336174014ddfc313433ada9abc44
tree9ce092f822ea7fb779253439cf47100162c84ecd
parentff50caa8faaf135426d08f082805b9895b978e9b
Cortex-M3: DWT cleanup/fixes

Fix the watchpoint error checks, and do them in add(), not later
in set() when it's mostly too late.  Support the full range of
watchpoint sizes (1 to 32K bytes each), and check alignments.

Minor cleanup of DWT access:  shrink lines, use "+" for address
calculations, comment a few issues.  Add debug message reporting
DWT capabilities, matching the message for FBP, and some minor
code and spec review comments.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/target/cortex_m3.c