Bifurcations in a piecewise linear system