Searched query: mono
godFather89 wrote:Just a note: FileGPIO should be implemented as static class or a singleton because there is no need to make multiple instances to read/write from/to a I/O pin.
Code: Select all
#define MAP_SHARED 0x01 /* Share changes */
#define MAP_PRIVATE 0x02 /* Changes are private */
#define MAP_TYPE 0x0f /* Mask for type of mapping */
#define MAP_FIXED 0x10 /* Interpret addr exactly */
#define MAP_ANONYMOUS 0x20 /* don't use a file */Big thanks!godFather89 wrote:Code: Select all
#define ...
Code: Select all
#define PROT_READ 0x1 /* page can be read */
#define PROT_WRITE 0x2 /* page can be written */
#define PROT_EXEC 0x4 /* page can be executed */
#define PROT_NONE 0x0 /* page can not be accessed */
#define O_RDWR 02
#define O_SYNC 010000