This article will cover the anatomy and function of the peroneus longus, as well as what can cause pain in the leg muscle ... turn your foot inwards so the sole of your foot is facing in.