/* Write multiple data in buffer to LCD controller.  */
static void ili9225_write_ram_buffer(const ili9225_color_t *p_us_buf, uint32_t ul_size)
/* Write multiple data in buffer to LCD controller.  */
static void ili9225_write_ram_buffer(const ili9225_color_t *p_us_buf, uint32_t ul_size)
{
	volatile uint32_t i;
	if (ul_size == 0)
		return;
	spi_enable(BOARD_ILI9225_SPI);
	gpio_set_pin_high(BOARD_ILI9225_RS_GPIO);
	for(i = 0; i < ul_size; i++){
		spi_write(BOARD_ILI9225_SPI, p_us_buf[i], BOARD_ILI9225_SPI_NPCS, 0);
	}
	spi_disable(BOARD_ILI9225_SPI);
}