Simone Corsi ends his 20-year career in Grand Prix racing after competing in both the 125cc and Moto2 classes.