[Openamp-rp] [PATCH 4/6] apps: oob echo: move code common in multiple files to header