This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6748 BIOS PSP GPIO INTERRUPT NUMBER SETUP ISSUE

Hi,

I'm looking at the C6748 BIOS PSP GPIO sample code. In the file ~/pspdrivers_01_30_01/packages/ti/pspiom//examples/evm6748/gpio/src/gpioSample_main.c, the interrupt number was set to gpioParams.BankParams[GPIO_BANK_1].hwiNum=8u. This works fine when I load it to EVM. I want to use another interrupt number such as 10. It does not work on EVM, i.e. no interrupt is generated when you insert a SD card. I checked the .tcf file and it has ECM configuration for 7~10. Can you tell me what I'm missing?

Thanks,

Zach

 

  • Hi Zach,

    Referring to the (C6748) Page91 shows: Table 5-6. DSP Interrupts


    To determine the hardware interrupt numbers for the gpio, following table needs to be considered

    The event number to HWI mapping should be as follows:
    HWI                                  event number

    7                                          0-31

    8                                          32-63

    9                                          64-95

    10                                        96-127

    Hence for "C6748"  SOC the event number to HWI mapping should be as below:

    Source                             event number     map to  HWI

    GPIO Bank 1 interrupt           41                        8

    GPIO Bank 4 Interrupt           54                        8

    GPIO Bank 5 Interrupt           59                        8

    GPIO Bank 7 Interrupt           72                        9

    Only a few are named above. Hence we have,

    /* gpioParams.BankParams[GPIO_BANK_4].hwiNum  = 8u; */

    So, for a particular event number map to an appropriate HWI.

     

    Thanks & regards,

    Raghavendra

  • Hi Raghavendra,

    Thanks for your reply. This clarifies why HwiNum 10 does not work. I was trying to add this piece code to the audio sample code, which also uses HwiNum 8. That's why I would like to change the interrupt number to 10 for gpio. Now since both events (McASP0_INT  61 and GPIO_B4INT 54) lay in 32-63 region, they need to use HwiNum 8. Can they share HwiNum 8? If they can, can you describe simply the major things I need to modify?

    Thanks,

    Zach

  • Hi Zach,

    You can share the same HwiNum to both, and that should not be a problem. Apart from this, there is nothing much to be done.

    Also, there is a very brief and informative post regarding setting up interrupts and about HWI and ECM modules in DSP/BIOIS - http://e2e.ti.com/support/embedded/bios/f/355/t/39241.aspx#136287 Please refer for more info.

    which i think might be helpful for you.. :)

     

    Best Regards,

    Raghavendra