I added device for the fucntions that Deal with chip interaction.
The next step will be to reconfig the init function