Limit cycles in continuous and discontinuous piecewise linear differential systems with two pieces separated by a straight line