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.

Where are ISR and Callback function in PSP driver?

Other Parts Discussed in Thread: CCSTUDIO

 

When I use PSP driver ,I  do not find the ISR and callback function?If I want to configure ISR in the DSP/BIOS Config in the ccs3,how to do it

  • Hi yin yu,

    Can you please confirm which version of the BIOSPSP you are using?. And, which PSP driver are you referring to?.

     

    Thanks & regards,

    Raghavendra

  • BIOS:bios_5_31_02;CCS:CCStudio_v3.3;DVSDK:dvsdk_1_01_00_15 ;PSP:psp_1_00_02_00

  • Hi yin yu,

     

    The driver architecture is divided into different driver components:

    And to be precise,

    DDA (Device driver adaptation)

    -          The DDA module (Works closely with the OS) implements functionalities to hookup to a driver and receive read and write requests from the application through OS.

    DDC (Device  driver core)

    -          The DDC layer implements the device driver functionality. The DDC layer handles functionalities such as initialization, open, close, read, write and device configuration.

    LLC (Low level controller)

    -          LLC implements the functionalities to configure the hardware module to perform basic device operations such as physical write, physical read and initializations.

     

    You can always refer to section 1.2 Driver Software Architecture of PSP_User_Guide.pdf for more details regarding this.

    Hence, the interrupt registration of the drivers are done in the DDA layer, and the corresponding Interrupt service routine can be found in the DDC layer. And the callback functions are called from the ISR's. Please refer the driver files in regards to registration of interrupts (dda_XXBios.c and ddc_XX.c files).

    Secondly, can you please elaborate "I want to configure ISR in the DSP/BIOS Config in the ccs3"??.. you mean in the .tcf file?. And for which driver you want to configure the ISR in DSP/BIOS config?.

     

     

    Thanks & regards,

    Raghavendra

  • for example:Mcbsp,how I to define the Mcbsp's ISR, and  where I should to add the ISR?

  • Hi yin yu,

     

    For all the information you need regarding defining the ISR's and adding the ISR's in PSP using DSP/BIOS you can refer the following thread: http://e2e.ti.com/support/embedded/f/355/t/39241.aspx

    In the above thread it is also mentioned that, there are 128 events and only 14 HWIs. If you are using more than 14 interrupts, you need to use ECM. if you are not, then you can set the interrupts directly: http://tiexpressdsp.com/index.php/Setting_up_interrupts_in_DSP_BIOS

    So, After going through all the links and details and if you are not using ECM then, follow the steps appropriately as mentioned in the above link and then you will able to define the ISR's easily and get them working.

     

    Thanks & regards,

    Raghavendra