예제 #1
0
파일: noc.c 프로젝트: hazirguo/patmos
// 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)));
}
예제 #2
0
파일: main.c 프로젝트: kiryaka/nfclib
int main(int argc, char **argv){
    int res;
    
    DW(     nfcOpen("/dev/ttyUSB0") );
    DW(     nfcClose()              );
    
    
    return NFC_SUCCESS;
}