Use ## to create sections (Learn more)
static void lcd_v2_set_gram_area(int x_start, int y_start, int x_end, int y_end)
LCDC_CTRL |= RGB24B;
lcd_write_reg(0x36, x_end); /* H end address */
lcd_write_reg(0x37, x_start); /* H start address */
lcd_write_reg(0x38, y_end); /* V end address */
lcd_write_reg(0x39, y_start); /* V start address */
/* set GRAM address */
lcd_write_reg(0x20, (y_start * LCD_WIDTH + x_start) & 0xff);
lcd_write_reg(0x21, (y_start * LCD_WIDTH + x_start) >> 8);
LCDC_CTRL &= ~RGB24B;
Share the private access URL responsibly.
Anyone will be able to find and view this paste. Google will index it.
Be nice. :-) Use Pastie for good, not evil.