Post Go back to editing

gpio request problem

Hi,

I am working with 2010R1 distribution and tool chain for BF527 custom  board. The board is having IR receiver connected to the PortH 13 of  BF527.. i have configured the PH13 of bf527 as gpio for input and  interrupt configuration to both edge using the following function...

if (bfin_gpio_request(GPIO_PH13,"IR")) {

return -EBUSY;

}

gpio_direction_input(GPIO_PH13);

set_irq_type(IRQ_PH13,IRQF_TRIGGER_BOTH_EDGE);

/*Request IRQ_PG13 for IR*/

s32_RetVal = request_irq(IRQ_PH13,(void  *)IR_IRQ_Handler,IRQ_DISABLED, "IR_IRQ",NULL);

while runing with standalone application for remote key detection it  display  the following  things when ever  pressing the remote  key.............

root:/> tftp -g -r MYWORK 172.16.6.118
root:/> chmod 777 MYWORK
root:/> ./MYWORK
bfin-gpio: GPIO 45 is already reserved by BFIN-GPIO!  (Documentation/blackfin/bfi
n-gpio-notes.txt)

IR device opened succesfully


bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)
bfin-gpio: GPIO 45 is already reserved by gpio-irq116!  (Documentation/blackfin/b
fin-gpio-notes.txt)

I have refered this document  but i didn't get anything from that   document ..  and one more thing to ur note is if  i am  writing the  folowing thing directly , then no problem with this one,

s32_ReadVal=bfin_read_PORTH_FER();

bfin_write_PORTH_FER(s32_ReadVal&0xDFFF);

asm("ssync;");

can i use in this way or i need use  gpio request API ?         help  me..................

Parents Reply Children
No Data