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.

RTOS/PROCESSOR-SDK-AM437X: ARM to PRU interrupt

Part Number: PROCESSOR-SDK-AM437X

Tool/software: TI-RTOS

In the PRU example PRU_ARMtoPRU_Interrupt, It has the code:

void main(){
   uint32_t *pDdr = (uint32_t *) &CT_DDR;
   uint32_t score;
   /* Clear SYSCFG[STANDBY_INIT] to enable OCP master port */
   CT_CFG.SYSCFG_bit.STANDBY_INIT = 0;
   /* Wait until receipt of interrupt on host 0 */
   while((__R31 & 0x40000000) == 0){
   }
   /* Clear system event in SECR1 */
   CT_INTC.SECR1 = 0x1;
   /* Clear system event enable in ECR1 */
   CT_INTC.ECR1 = 0x1;
   /* Point C30 (L3) to 0x3000 offset and C31 (DDR) to 0x0 offset */
   PRU0_CTRL.CTPPR1 = 0x00003000;
   /* Load value from DDR, decrement, and store it in L3 */
   score = pDdr[0];
   score--;
   CT_L3 = score;
   /* Halt PRU core */
   __halt();
}

I want to know how to generate a interrupt on host 0 from the host CPU?I want to implement a function: when Host CPU complete a work , it will tell the PRU to do something, while the PRU should be waiting for  it .