Added the info that the code is from ChibiOS and rewritten by me.