When she was a child, she used to spend her summer holidays in Conil. (=solía)
It took me a long time, but I am now used to getting up early on weekdays. (=estar acostumbrado)
After a few basic lessons, he quickly got used to typing with all his fingers. (=acostumbrarse)
THE FIRST VERB PATTERN IS CONSTRUCTED WITH THE INFINITIVE, THE OTHER TWO WITH THE GERUND! (The presence of the word used in all of them is what may cause confusion.)
For a more in-depth presentation of "used to", click on this link to Perfect English Grammar.