I am searching for an explanation for the coding idiom for changing TFT display resolution that is used in the PORT from mcufriend’s Arduino code.
init_table16(R61509V_regValues, sizeof(R61509V_regValues));
p16 = (int16_t *) & _height;*p16 = 400;
Statements 1 and 2 are to adjust the vertical resolution. I do understand this.
p16 int16_t* 0x2000000c<_height>To allocate memory for _height in STM32F103 SRAM (64 KB aliased by bit-banding)To assign value (400) to the location.
Now the magic has happened and the resolution of the ST7793 has been adjusted over the parallel interface.
I am searching for...is not a question \$\endgroup\$_heightvariable to the pointer variablep16. Without more context it's not clear to me why both line couldn't have been simple combined into_height = 400;. \$\endgroup\$