3 ms·
Low-level stuff on a Raspberry Pi, including native C library calls for mmap, munmap. Binding the mmap library call into Perl 6 is as simple as: sub mmap(Point
by donaldihunter 10y ago
Low-level stuff on a Raspberry Pi, including native C library calls for mmap, munmap. Binding the mmap library call into Perl 6 is as simple as:
sub mmap(Pointer $addr, int32 $length, int32 $prot, int32 $flags, int32 $fd, int32 $offset)
returns CArray[int32] is native {*}
https://github.com/donaldh/Perl6-RPi-GpioDirect/blob/master/lib/RPi/GpioDirect.pm https://github.com/donaldh/Perl6-RPi-GpioDirect/blob/master/...