update gcc cortex m3 example
add mutex, mem and queue deletion at run-time
add event type in safe mode