The details of each write are logged and the value then written. (In
the absence of a printf
, the logging is
necessarily cumbersome).
simputs( "Writing byte 0xa5 to address 0x" ); simputh( (unsigned long int)(&(dev->byte)) ); simputs( "\n" ); dev->byte = 0xa5; simputs( "Writing half word 0xbeef to address 0x" ); simputh( (unsigned long int)(&(dev->halfword)) ); simputs( "\n" ); dev->halfword = 0xbeef; simputs( "Writing full word 0xdeadbeef to address 0x" ); simputh( (unsigned long int)(&(dev->fullword)) ); simputs( "\n" ); dev->fullword = 0xdeadbeef;