avr: recongize the common code

Three function can be use all the avr radio, So merge this code into
a common file.

radio_set_operating_channel
radio_set_operating_channel
radio_get_trx_state

Signed-off-by Zhong Hongbo <bocui107@163.com>