Pedestrians shall be subject to traffic-control signals at intersections as provided in this chapter, but at all other places pedestrians shall be accorded the privileges and shall be subject to the restrictions stated in sections 321.327 through 321.331.