Hi everyone.
Currently I'm configuring the GPIO pins of the beagle board for
measuring our
algorithm's running time.
I've read all previous posts and can't manage yet how to initiliaze
the Board.
For me I do the following steps:
1) I declare at /include/asm-arm/arch-omap/mux.h
In the enum omap34xx_index{
AH4_3430_GPIO133
}
2) Then at /arch/arm/mach-omap2/mux.c:
In the struct pin_config __initdata_or_module omap34xx_pins[]={
MUX_CNF_34xx("AH4_3430_GPIO133", 0x15, 4,0,0,1,0,1,0,0,0,0)
This is, I want it as an OUTPUT.
3) Finally at arch/arm/mach-omap2/board-omap3beagle.c in the
static void __init omap3evm_init_irq(void)
{
/*.............*/
omap_gpio_init();
omap_cnf_reg(AH4_3430_GPIO133);
}
Is there something I'm doing wrong?
I think other choice may be doing this very thing but at :
/arch/arm/plat-omap/gpio.c
inside the function:
static int __init _omap_gpio_init(void)
Once done, I'm writing a simple code, that initializa all this stuff,
and triggers repeatedly
1-0-1-0 at the corresponding 15 pin (AH4) so that I can measure the
algorithm's effective time.
Can anyone help me?
thanks