refactoring kernel & hal

1. separate system timer function from scheduler module
2. add rtc hal implementation (Not Complete)
3. clean up unused decl