Write an 8-bit value to a port
#include <hw/inout.h> void out8( uintptr_t port, uint8_t val );
- The port you want to write the value to.
- The value that you want to write.
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The out8() function writes an 8-bit value, specified by val, to the specified port.
The calling process must also use mmap_device_io() to access the device's I/O registers.