示例#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;
}