Ejemplo n.º 1
0
// Transfer data via the NoC
// The addresses and the size are in bytes
void noc_send(int dst_id, volatile void _SPM *dst,
             volatile void _SPM *src, size_t len) {

  unsigned wp = (char *)dst - (char *)NOC_SPM_BASE;
  unsigned rp = (char *)src - (char *)NOC_SPM_BASE;
  while(!noc_dma(dst_id, DW(wp), DW(rp), DW(len)));
}
Ejemplo n.º 2
0
int main(int argc, char **argv){
    int res;
    
    DW(     nfcOpen("/dev/ttyUSB0") );
    DW(     nfcClose()              );
    
    
    return NFC_SUCCESS;
}