Tool/software: TI-RTOS
In the PRU example PRU_ARMtoPRU_Interrupt, It has the code:
uint32_t *pDdr = (uint32_t *) &CT_DDR;
uint32_t score;
CT_CFG.SYSCFG_bit.STANDBY_INIT = 0;
while((__R31 & 0x40000000) == 0){
}
CT_INTC.SECR1 = 0x1;
CT_INTC.ECR1 = 0x1;
PRU0_CTRL.CTPPR1 = 0x00003000;
score = pDdr[0];
score--;
CT_L3 = score;
__halt();
}