Federer confirms playing Basel