std1.0.0-beta-7 SafeC docs

std :: interrupt::mmio

Function std::mmio_read16

#include <std/interrupt/mmio.h> source · definition

unsigned int mmio_read16(&volatile unsigned short addr)

8/16-bit registers get 8/16-bit accesses: a 32-bit store would also write the neighbouring registers (and a 32-bit load can fault or have read side effects on them).