cpu:cortex_common: add core_panic function
Merge pull request #1313 from thomaseichinger/cortexm_crash

cpu:cortex_common: add core_panic function