Rafael,
Protecting a 5V input circuit from 12V can be pretty simple. The circuit below will limit the input voltage to the RoboRIO to just under 5V. As simple as it is, test it on the bench before you plug it into what may be your only RoboRIO.
Good Luck!
Disclaimer: Conceived at 6:30AM, pre-coffee.