Use the GPIO API from emlib instead of accessing the register directly: The emlib API is doing the checks and uses the proper registers depending on the SoC used. Signed-off-by: Steven Lemaire <steven.lemaire@zii.aero>