fix "function is static but used in inline function which is not static
fixed function declaration isn't a prototype
fixed a typo which leads to build error
use %p for printf-ing pointer
inlcude stdio.h for puts()
use ENABLE_DEBUG instead of redefining DEBUG
use TIM_TypeDef instead of casting to avoid warnings
Merge pull request #7 from thomaseichinger/build-fixes

stm32f103rey6: fix warnings and one typo