openocd.sh: refactor splitting banks in a separate function
openocd.sh: refactor splitting banks in a separate function

Prepare for other refactoring.

mfrey/RIOT,mtausig/RIOT,gebart/RIOT,cladmi/RIOT,mtausig/RIOT,RIOT-OS/RIOT,toonst/RIOT,OlegHahm/RIOT,kYc0o/RIOT,mtausig/RIOT,x3ro/RIOT,gebart/RIOT,RIOT-OS/RIOT,authmillenon/RIOT,kYc0o/RIOT,gebart/RIOT,basilfx/RIOT,OTAkeys/RIOT,mtausig/RIOT,josephnoir/RIOT,yogo1212/RIOT,authmillenon/RIOT,basilfx/RIOT,A-Paul/RIOT,josephnoir/RIOT,BytesGalore/RIOT,cladmi/RIOT,miri64/RIOT,lazytech-org/RIOT,yogo1212/RIOT,kYc0o/RIOT,OTAkeys/RIOT,basilfx/RIOT,cladmi/RIOT,gebart/RIOT,mfrey/RIOT,rfuentess/RIOT,gebart/RIOT,yogo1212/RIOT,lazytech-org/RIOT,miri64/RIOT,toonst/RIOT,ant9000/RIOT,jasonatran/RIOT,basilfx/RIOT,yogo1212/RIOT,ant9000/RIOT,mtausig/RIOT,BytesGalore/RIOT,kYc0o/RIOT,smlng/RIOT,OTAkeys/RIOT,authmillenon/RIOT,toonst/RIOT,x3ro/RIOT,kYc0o/RIOT,toonst/RIOT,lazytech-org/RIOT,aeneby/RIOT,josephnoir/RIOT,A-Paul/RIOT,biboc/RIOT,aeneby/RIOT,miri64/RIOT,biboc/RIOT,yogo1212/RIOT,OlegHahm/RIOT,aeneby/RIOT,BytesGalore/RIOT,mfrey/RIOT,A-Paul/RIOT,josephnoir/RIOT,kaspar030/RIOT,smlng/RIOT,kaspar030/RIOT,ant9000/RIOT,rfuentess/RIOT,jasonatran/RIOT,A-Paul/RIOT,miri64/RIOT,smlng/RIOT,yogo1212/RIOT,OTAkeys/RIOT,OlegHahm/RIOT,jasonatran/RIOT,kaspar030/RIOT,OTAkeys/RIOT,mfrey/RIOT,biboc/RIOT,lazytech-org/RIOT,x3ro/RIOT,authmillenon/RIOT,A-Paul/RIOT,x3ro/RIOT,OlegHahm/RIOT,biboc/RIOT,smlng/RIOT,toonst/RIOT,aeneby/RIOT,rfuentess/RIOT,authmillenon/RIOT,cladmi/RIOT,rfuentess/RIOT,RIOT-OS/RIOT,x3ro/RIOT,BytesGalore/RIOT,ant9000/RIOT,kaspar030/RIOT,rfuentess/RIOT,OlegHahm/RIOT,smlng/RIOT,mfrey/RIOT,ant9000/RIOT,miri64/RIOT,lazytech-org/RIOT,jasonatran/RIOT,authmillenon/RIOT,aeneby/RIOT,jasonatran/RIOT,biboc/RIOT,RIOT-OS/RIOT,cladmi/RIOT,kaspar030/RIOT,josephnoir/RIOT,RIOT-OS/RIOT,BytesGalore/RIOT,basilfx/RIOT