update radio config and add a new timer2 lib