firmware: move device configureation to header file