LCD: Rename lcd_write_data_fast to lcd_write_data.

It's the only LCD write function!
This commit is contained in:
Jared Boone 2017-07-18 13:27:15 -07:00
parent aa66c0b7f7
commit 1eb561ab45

View File

@ -109,7 +109,7 @@ public:
) { ) {
lcd_command(command); lcd_command(command);
for(size_t i=0; i<data_count; i++) { for(size_t i=0; i<data_count; i++) {
lcd_write_data_fast(data[i]); lcd_write_data(data[i]);
} }
} }
@ -119,7 +119,7 @@ public:
) { ) {
lcd_command(command); lcd_command(command);
for(const auto d : data) { for(const auto d : data) {
lcd_write_data_fast(d); lcd_write_data(d);
} }
} }
@ -135,17 +135,17 @@ public:
} }
void lcd_write_word(const uint32_t w) { void lcd_write_word(const uint32_t w) {
lcd_write_data_fast(w); lcd_write_data(w);
} }
void lcd_write_words(const uint16_t* const w, size_t n) { void lcd_write_words(const uint16_t* const w, size_t n) {
for(size_t i=0; i<n; i++) { for(size_t i=0; i<n; i++) {
lcd_write_data_fast(w[i]); lcd_write_data(w[i]);
} }
} }
void lcd_write_pixel(const ui::Color pixel) { void lcd_write_pixel(const ui::Color pixel) {
lcd_write_data_fast(pixel.v); lcd_write_data(pixel.v);
} }
uint32_t lcd_read_word() { uint32_t lcd_read_word() {
@ -154,7 +154,7 @@ public:
void lcd_write_pixels(const ui::Color pixel, size_t n) { void lcd_write_pixels(const ui::Color pixel, size_t n) {
while(n--) { while(n--) {
lcd_write_data_fast(pixel.v); lcd_write_data(pixel.v);
} }
} }
@ -298,7 +298,7 @@ private:
addr(1); /* Set up for data phase (most likely after a command) */ addr(1); /* Set up for data phase (most likely after a command) */
} }
void lcd_write_data_fast(const uint32_t value) __attribute__((always_inline)) { void lcd_write_data(const uint32_t value) __attribute__((always_inline)) {
// NOTE: Assumes and DIR=0 and ADDR=1 from command phase. // NOTE: Assumes and DIR=0 and ADDR=1 from command phase.
data_write_high(value); /* Drive high byte */ data_write_high(value); /* Drive high byte */
__asm__("nop"); __asm__("nop");