Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion FPGA-gpiRead/hps.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ extern "C"
// macro to include the virtual Memory
//
//
#define __VIRTUALMEM_SPACE_INIT() \ \
#define __VIRTUALMEM_SPACE_INIT() \
__fd = open("/dev/mem", (O_RDWR | O_SYNC)); \
__hps_virtualAdreess_FPGAMFRDATA = mmap(NULL, 0x04,(PROT_READ | PROT_WRITE), MAP_SHARED, __fd, ALT_FPGAMGRDATA_OFST); \
__hps_virtualAdreess_FPGAMGR = mmap(NULL, 0x1000,(PROT_READ | PROT_WRITE), MAP_SHARED, __fd, ALT_FPGAMGR_OFST)
Expand Down
2 changes: 1 addition & 1 deletion FPGA-readMSEL/hps.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ extern "C"
// macro to include the virtual Memory
//
//
#define __VIRTUALMEM_SPACE_INIT() \ \
#define __VIRTUALMEM_SPACE_INIT() \
__fd = open("/dev/mem", (O_RDWR | O_SYNC)); \
__hps_virtualAdreess_FPGAMFRDATA = mmap(NULL, 0x04,(PROT_READ | PROT_WRITE), MAP_SHARED, __fd, ALT_FPGAMGRDATA_OFST); \
__hps_virtualAdreess_FPGAMGR = mmap(NULL, 0x1000,(PROT_READ | PROT_WRITE), MAP_SHARED, __fd, ALT_FPGAMGR_OFST)
Expand Down
2 changes: 1 addition & 1 deletion FPGA-status/hps.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ extern "C"
// macro to include the virtual Memory
//
//
#define __VIRTUALMEM_SPACE_INIT() \ \
#define __VIRTUALMEM_SPACE_INIT() \
__fd = open("/dev/mem", (O_RDWR | O_SYNC)); \
__hps_virtualAdreess_FPGAMFRDATA = mmap(NULL, 0x04,(PROT_READ | PROT_WRITE), MAP_SHARED, __fd, ALT_FPGAMGRDATA_OFST); \
__hps_virtualAdreess_FPGAMGR = mmap(NULL, 0x1000,(PROT_READ | PROT_WRITE), MAP_SHARED, __fd, ALT_FPGAMGR_OFST)
Expand Down
1 change: 1 addition & 0 deletions FPGA-writeBridge/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <iostream>
#include <unistd.h>
#include <sstream>
#include <cstdint>
using namespace std;

#define DEC_INPUT 1
Expand Down
4 changes: 2 additions & 2 deletions FPGA-writeConfig/hps.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ extern "C"
// macro to include the virtual Memory
//
//
#define __VIRTUALMEM_SPACE_INIT() \ \
fd = open("/dev/mem", (O_RDWR | O_SYNC)); \
#define __VIRTUALMEM_SPACE_INIT() \
__fd = open("/dev/mem", (O_RDWR | O_SYNC)); \
__hps_virtualAdreess_FPGAMFRDATA = mmap(NULL, 0x04,(PROT_READ | PROT_WRITE), MAP_SHARED, __fd, ALT_FPGAMGRDATA_OFST); \
__hps_virtualAdreess_FPGAMGR = mmap(NULL, 0x1000,(PROT_READ | PROT_WRITE), MAP_SHARED, __fd, ALT_FPGAMGR_OFST)

Expand Down