libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
SAM3N
Here is a list of all modules:
 Gpio_definesAccess functions for the SAM3A/U/X I/O ControllerLGPL License Terms libopencm3 License