15 #include ONCE "BBB/pruio.bi"  
   16 #include ONCE "BBB/pruio_pins.bi"  
   17 #include ONCE "BBB/pruio_prussdrv.bi"  
   47   DIM AS CONST UInt32 PRUcode(...) =  { _
 
   56   VAR l = (
UBOUND(PRUcode) + 1) * 
SIZEOF(PRUcode)
 
   72                   ?"initialisation failed (" & *
io->Errr & 
")" : 
EXIT DO 
   88   IF prussdrv_open(PRU_EVTOUT_0) 
THEN _ 
 
   89                                        ?"prussdrv_open failed" : 
EXIT DO 
   93                           ?"failed loading PRUSS instructions" : 
EXIT DO 
  106   ?"instructions loaded, starting PRU-" & 
pru_num 
  108   prussdrv_pru_wait_event(PRU_EVTOUT_0) 
 
  109   prussdrv_pru_clear_event(PRU_EVTOUT_0, 
pru_intr) 
 
  114     ?"Test OK " & 
dram[0] & 
" = " & 
dram[1] & 
" + (" & 
dram[2] & 
" * " & 
dram[3] & 
")" 
  116     ?"Test failed " & 
dram[0] & 
" <> " & 
dram[1] & 
" + (" & 
dram[2] & 
" * " & 
dram[3] & 
")"