direct manipulation port for DUE

Thanks for the answers, that is, I have to translate code from the ARM to AVR.
Since I do not know programming in AVR need help.