cpu/samd21:i2c: the wait for SYNCBUSY must come after enable or disable
cpu/samd21:i2c: the wait for SYNCBUSY must come after enable or disable

The power on/off code is refactored somewhat.

BytesGalore/RIOT,altairpearl/RIOT,authmillenon/RIOT,plushvoxel/RIOT,dailab/RIOT,kYc0o/RIOT,BytesGalore/RIOT,dailab/RIOT,kb2ma/RIOT,ant9000/RIOT,LudwigOrtmann/RIOT,TobiasFredersdorf/RIOT,mfrey/RIOT,jbeyerstedt/RIOT-OTA-update,alignan/RIOT,thomaseichinger/RIOT,adrianghc/RIOT,Hyungsin/RIOT-OS,OlegHahm/RIOT,adrianghc/RIOT,A-Paul/RIOT,miri64/RIOT,neumodisch/RIOT,d00616/RIOT,dkm/RIOT,gautric/RIOT,mtausig/RIOT,kaleb-himes/RIOT,mfrey/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,aeneby/RIOT,altairpearl/RIOT,d00616/RIOT,jasonatran/RIOT,kaleb-himes/RIOT,kb2ma/RIOT,toonst/RIOT,jbeyerstedt/RIOT-OTA-update,OlegHahm/RIOT,adjih/RIOT,basilfx/RIOT,adjih/RIOT,plushvoxel/RIOT,kerneltask/RIOT,backenklee/RIOT,cladmi/RIOT,biboc/RIOT,lazytech-org/RIOT,Josar/RIOT,jbeyerstedt/RIOT-OTA-update,RIOT-OS/RIOT,rfuentess/RIOT,adrianghc/RIOT,syin2/RIOT,ks156/RIOT,aeneby/RIOT,cladmi/RIOT,jasonatran/RIOT,x3ro/RIOT,mfrey/RIOT,ant9000/RIOT,lazytech-org/RIOT,immesys/RiSyn,adrianghc/RIOT,neumodisch/RIOT,BytesGalore/RIOT,jfischer-phytec-iot/RIOT,rfuentess/RIOT,hamilton-mote/RIOT-OS,aeneby/RIOT,lazytech-org/RIOT,mtausig/RIOT,Hyungsin/RIOT-OS,Ell-i/RIOT,kYc0o/RIOT,Josar/RIOT,tfar/RIOT,neiljay/RIOT,jasonatran/RIOT,jfischer-phytec-iot/RIOT,gebart/RIOT,RIOT-OS/RIOT,gautric/RIOT,Hyungsin/RIOT-OS,josephnoir/RIOT,x3ro/RIOT,kerneltask/RIOT,roberthartung/RIOT,avmelnikoff/RIOT,LudwigKnuepfer/RIOT,x3ro/RIOT,adjih/RIOT,gebart/RIOT,josephnoir/RIOT,kYc0o/RIOT,kerneltask/RIOT,kYc0o/RIOT,kaspar030/RIOT,miri64/RIOT,OTAkeys/RIOT,tfar/RIOT,altairpearl/RIOT,ks156/RIOT,kaleb-himes/RIOT,yogo1212/RIOT,toonst/RIOT,OTAkeys/RIOT,kaspar030/RIOT,A-Paul/RIOT,josephnoir/RIOT,jbeyerstedt/RIOT-OTA-update,Ell-i/RIOT,syin2/RIOT,OTAkeys/RIOT,Ell-i/RIOT,adjih/RIOT,LudwigKnuepfer/RIOT,thomaseichinger/RIOT,backenklee/RIOT,jasonatran/RIOT,aeneby/RIOT,plushvoxel/RIOT,Ell-i/RIOT,jasonatran/RIOT,LudwigKnuepfer/RIOT,gautric/RIOT,immesys/RiSyn,kaleb-himes/RIOT,biboc/RIOT,ks156/RIOT,immesys/RiSyn,RIOT-OS/RIOT,TobiasFredersdorf/RIOT,kbumsik/RIOT,beurdouche/RIOT,ks156/RIOT,gebart/RIOT,avmelnikoff/RIOT,authmillenon/RIOT,beurdouche/RIOT,miri64/RIOT,avmelnikoff/RIOT,RIOT-OS/RIOT,dkm/RIOT,plushvoxel/RIOT,OlegHahm/RIOT,avmelnikoff/RIOT,alignan/RIOT,neiljay/RIOT,backenklee/RIOT,mtausig/RIOT,smlng/RIOT,dkm/RIOT,katezilla/RIOT,kbumsik/RIOT,syin2/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,tfar/RIOT,tfar/RIOT,gautric/RIOT,dailab/RIOT,LudwigOrtmann/RIOT,alignan/RIOT,Josar/RIOT,Josar/RIOT,lazytech-org/RIOT,dkm/RIOT,neiljay/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,toonst/RIOT,biboc/RIOT,yogo1212/RIOT,aeneby/RIOT,altairpearl/RIOT,TobiasFredersdorf/RIOT,authmillenon/RIOT,beurdouche/RIOT,LudwigOrtmann/RIOT,yogo1212/RIOT,neiljay/RIOT,x3ro/RIOT,LudwigKnuepfer/RIOT,Hyungsin/RIOT-OS,jfischer-phytec-iot/RIOT,biboc/RIOT,kbumsik/RIOT,roberthartung/RIOT,neumodisch/RIOT,toonst/RIOT,biboc/RIOT,thomaseichinger/RIOT,jfischer-phytec-iot/RIOT,rfuentess/RIOT,LudwigOrtmann/RIOT,BytesGalore/RIOT,hamilton-mote/RIOT-OS,OTAkeys/RIOT,jbeyerstedt/RIOT-OTA-update,jfischer-phytec-iot/RIOT,d00616/RIOT,immesys/RiSyn,kb2ma/RIOT,alignan/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,josephnoir/RIOT,A-Paul/RIOT,authmillenon/RIOT,Hyungsin/RIOT-OS,cladmi/RIOT,TobiasFredersdorf/RIOT,ant9000/RIOT,OlegHahm/RIOT,gebart/RIOT,katezilla/RIOT,thomaseichinger/RIOT,kb2ma/RIOT,kaspar030/RIOT,mfrey/RIOT,kbumsik/RIOT,katezilla/RIOT,mtausig/RIOT,alignan/RIOT,neiljay/RIOT,katezilla/RIOT,beurdouche/RIOT,katezilla/RIOT,yogo1212/RIOT,rfuentess/RIOT,basilfx/RIOT,roberthartung/RIOT,basilfx/RIOT,authmillenon/RIOT,d00616/RIOT,beurdouche/RIOT,backenklee/RIOT,miri64/RIOT,hamilton-mote/RIOT-OS,OlegHahm/RIOT,yogo1212/RIOT,neumodisch/RIOT,kaleb-himes/RIOT,smlng/RIOT,immesys/RiSyn,toonst/RIOT,LudwigOrtmann/RIOT,basilfx/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,plushvoxel/RIOT,kb2ma/RIOT,neumodisch/RIOT,kbumsik/RIOT,kerneltask/RIOT,adrianghc/RIOT,cladmi/RIOT,gebart/RIOT,gautric/RIOT,josephnoir/RIOT,syin2/RIOT,mtausig/RIOT,TobiasFredersdorf/RIOT,tfar/RIOT,altairpearl/RIOT,yogo1212/RIOT,miri64/RIOT,LudwigOrtmann/RIOT,basilfx/RIOT,altairpearl/RIOT,LudwigKnuepfer/RIOT,d00616/RIOT,immesys/RiSyn,d00616/RIOT,neumodisch/RIOT,hamilton-mote/RIOT-OS,Josar/RIOT,ant9000/RIOT,A-Paul/RIOT,thomaseichinger/RIOT,kYc0o/RIOT,backenklee/RIOT,roberthartung/RIOT,authmillenon/RIOT,OTAkeys/RIOT,syin2/RIOT,ant9000/RIOT,kerneltask/RIOT,smlng/RIOT,BytesGalore/RIOT,kaspar030/RIOT,smlng/RIOT,dailab/RIOT,lazytech-org/RIOT,smlng/RIOT,avmelnikoff/RIOT,hamilton-mote/RIOT-OS,rfuentess/RIOT,x3ro/RIOT,dailab/RIOT,RIOT-OS/RIOT,ks156/RIOT,adjih/RIOT,Ell-i/RIOT,kaspar030/RIOT,roberthartung/RIOT,cladmi/RIOT,mfrey/RIOT,dkm/RIOT,A-Paul/RIOT