private static void SafeWriteUInt32(IntPtr address, uint value)
{
// Make sure we don't rely on the first write, which may get
// lost if the previous access was to a different peripheral.
unchecked
{
Marshal.WriteInt32(address, (int)value);
Marshal.WriteInt32(address, (int)value);
}
}