Embedded System Programming Suppose Io Port Memory Mapped Address 0x32 Directive Defines D Q34204555
Embedded System Programming
Suppose that IO-port is memory mapped to address 0x32 and thedirective defines: #DEFINE PORTX 0x32.
Construct C-language macro, which writes the port by storing thevalue to corresponding register. Register is 16 bits wide.