void VPIF_HWI(void) {

	if (VPIF_beginning_line == 1) {
		// Invalidate Destination
		BCACHE_inv((void *)Image_data,IMAGE_ROWS*IMAGE_COLUMNS*3,EDMA3_CACHE_WAIT);
		VPIF_beginning_line = 0;
	}
	PRU_wakeup(PRU0);
	// at times I had to run the below lines to wake up the PRU ????
//	PRU_stop(PRU0);
//	PRU_run(PRU0);
	SETBIT(VPIF->INTSTATCLR, INT_FRAME_CH1);
}
Exemplo n.º 2
0
void PRU_stop(pru_regs_t *pru) {
	PRU_wakeup(pru);
	pru->CONTROL &= ~ENABLE;
	while(pru->CONTROL & RUNSTATE) {}
}