[sam3] add GPIO access functions