- changed all NULL to 0
- added full matlab support!! tested OK
- added ctrl module
- stored default offsets to avoid calibrating upon power up
- added ibus fb to bldc_rev2
- fault bug: cannot share faults (IPHASE fault vs IA,IB,IC)
- moved forever loop to main for compatibility with matlab
- bug: changed STM32 slow ADC freq back to 2kHz
- improved feedback and fault initialization for better readability in
app_init
- renamed labels from APP_FB_XXX and APP_FAULT_XXX to FB_XXX and
FAULT_XXX
- added encoder module
- tested abcqd0 transforms
- tested cos transform
- re-tested all math functions
- integrated all modules to matlab test branch

Merge branch 'master' into matlab_test

Conflicts:
	matlab/matlab_model.mdl
	source/matlab/wrapper.c