Remove TAG from LVGL log API
The filename is appended at the beginning of the log output by default, we don't need to do it.
This commit is contained in:
parent
9c886307b2
commit
a0e915eebc
17 changed files with 58 additions and 82 deletions
|
@ -15,8 +15,6 @@
|
|||
/*********************
|
||||
* DEFINES
|
||||
*********************/
|
||||
#define TAG "RA8875 :"
|
||||
|
||||
#define DIV_ROUND_UP(n, d) (((n)+(d)-1)/(d))
|
||||
|
||||
#define SPI_CLOCK_SPEED_SLOW_HZ 1000000
|
||||
|
@ -169,7 +167,7 @@ void ra8875_init(void)
|
|||
};
|
||||
#define INIT_CMDS_SIZE (sizeof(init_cmds)/sizeof(init_cmds[0]))
|
||||
|
||||
LV_LOG_INFO(TAG, "Initializing RA8875...");
|
||||
LV_LOG_INFO("Initializing RA8875...");
|
||||
|
||||
// Initialize non-SPI GPIOs
|
||||
|
||||
|
@ -203,7 +201,7 @@ void ra8875_init(void)
|
|||
vTaskDelay(1);
|
||||
}
|
||||
if (i == 0) {
|
||||
LV_LOG_WARN(TAG, "WARNING: Memory clear timed out; RA8875 may be unresponsive.");
|
||||
LV_LOG_WARN("WARNING: Memory clear timed out; RA8875 may be unresponsive.");
|
||||
}
|
||||
|
||||
// Enable the display
|
||||
|
@ -212,7 +210,7 @@ void ra8875_init(void)
|
|||
|
||||
void ra8875_enable_display(bool enable)
|
||||
{
|
||||
LV_LOG_INFO(TAG, "%s display.", enable ? "Enabling" : "Disabling");
|
||||
LV_LOG_INFO("%s display.", enable ? "Enabling" : "Disabling");
|
||||
uint8_t val = enable ? (0x80) : (0x00);
|
||||
ra8875_write_cmd(RA8875_REG_PWRR, val); // Power and Display Control Register (PWRR)
|
||||
}
|
||||
|
@ -228,14 +226,14 @@ void ra8875_flush(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * colo
|
|||
size_t linelen = (area->x2 - area->x1 + 1);
|
||||
uint8_t * buffer = (uint8_t*)color_map;
|
||||
|
||||
LV_LOG_INFO(TAG, "flush: %d,%d at %d,%d", area->x1, area->x2, area->y1, area->y2 );
|
||||
LV_LOG_INFO("flush: %d,%d at %d,%d", area->x1, area->x2, area->y1, area->y2 );
|
||||
|
||||
// Get lock
|
||||
disp_spi_acquire();
|
||||
|
||||
// Set window if needed
|
||||
if ((x1 != area->x1) || (x2 != area->x2)) {
|
||||
LV_LOG_INFO(TAG, "flush: set window (x1,x2): %d,%d -> %d,%d", x1, x2, area->x1, area->x2);
|
||||
LV_LOG_INFO("flush: set window (x1,x2): %d,%d -> %d,%d", x1, x2, area->x1, area->x2);
|
||||
ra8875_set_window(area->x1, area->x2, 0, LV_VER_RES_MAX-1);
|
||||
x1 = area->x1;
|
||||
x2 = area->x2;
|
||||
|
@ -243,7 +241,7 @@ void ra8875_flush(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * colo
|
|||
|
||||
// Set cursor if needed
|
||||
if ((x != area->x1) || (y != area->y1)) {
|
||||
LV_LOG_INFO(TAG, "flush: set cursor (x,y): %d,%d -> %d,%d", x, y, area->x1, area->y1);
|
||||
LV_LOG_INFO("flush: set cursor (x,y): %d,%d -> %d,%d", x, y, area->x1, area->y1);
|
||||
ra8875_set_memory_write_cursor(area->x1, area->y1);
|
||||
x = area->x1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue