coptercontrol: fixed build using DIAG_TASKS=YES
This was introduced by 245ae648dd06e5fb15aeed3b600a070fd558f370
discoveryf4: use dwt and CoreDebug from CMSIS
Merge pull request #519 from lilvinz/fix_cc_dwt_usage

Fix cc dwt usage