[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
thanks for reply. Now I describe my steps: - found explicit address of gpio in the file lpc17xx.h at this url: http://www.keil.com/dd/docs/arm/nxp/lpc17xx/lpc17xx.h (search "Peripheral memory map") - copy the address in the "var_io.h" of the stm32 in the "#define" of gpio and copy the part of source that I modify in the "var_io.h" in "the var_io.h" of lpc1766stk - compile ecos with ecosconfig new lpc1766stk ecosconfig tree make - try an application of gpio <cyg/hal/var_io.h> int main (void) { hal_LPC17XX_gpio_set(/*here I put the address*/); hal_LPC17XX_gpio_out(/*here I put the address*/, 0); } I think that gpio (associated to led) send value 0 in the output. -- View this message in context: http://sourceware-org.1504.n7.nabble.com/How-to-create-a-GPIO-driver-tp224910p225418.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