A useful document is the LPC17xx User manual: http://www.nxp.com/documents/user_manual/UM10360.pdf
See chapter 9: LPC17xx General Purpose Input/Output (GPIO). It is also a good idea to read: Chapter 1: Introductory Information Chapter 2: Memory Map Here is an example of how I use the STM32 related functions to do GPIO: #include <cyg/hal/var_io.h> cyg_uint32 v_led_ok = CYGHWR_HAL_STM32_PIN_OUT(B, 14, OPENDRAIN, NONE, 2MHZ); // Turn the LED on CYGHWR_HAL_STM32_GPIO_OUT(v_led_ok, 1); // Turn the LED off CYGHWR_HAL_STM32_GPIO_OUT(v_led_ok, 0); See ./packages/hal/cortexm/stm32/var/current/include/var_io_pins.h for details. Using the user manual above and the ideas used by the STM32, you can create comparable functionality for the LPC1xxx family. ------------------------------ On Mar 14, 2013, at 8:35 AM, EnneGi <enricogiordano1...@gmail.com> wrote: Ok, so how I locate GPIO register in this way? -- View this message in context: http://sourceware-org.1504.n7.nabble.com/How-to-create-a-GPIO-driver-tp224910p225422.html Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss