Don't fire compiler warnings on missing driver configuration
This commit is contained in:
parent
803c58774c
commit
01dc1259f8
|
@ -182,8 +182,7 @@ void il3820_set_px_cb(lv_disp_drv_t * disp_drv, uint8_t* buf,
|
|||
#else
|
||||
(void)byte_index;
|
||||
(void)bit_index;
|
||||
assert(false); // Crash if we get here, but allow compilation for CI
|
||||
#warning "Unsupported orientation used"
|
||||
assert(false); // Unsupported orientation configured. Crash if we get here, but allow compilation for CI
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -123,10 +123,9 @@ static const uint8_t lut_bb1[] = {
|
|||
static const jd79653a_seq_t init_seq[] = {
|
||||
#if defined (CONFIG_LV_DISPLAY_ORIENTATION_PORTRAIT_INVERTED)
|
||||
{0x00, {0xd3, 0x0e}, 2}, // Panel settings
|
||||
#elif defined(CONFIG_LV_DISPLAY_ORIENTATION_PORTRAIT)
|
||||
{0x00, {0xdf, 0x0e}, 2}, // Panel settings
|
||||
//#elif defined(CONFIG_LV_DISPLAY_ORIENTATION_PORTRAIT)
|
||||
#else
|
||||
#warning "Unsupported orientation - only portrait modes are supported for now"
|
||||
{0x00, {0xdf, 0x0e}, 2}, // Panel settings
|
||||
#endif
|
||||
{0x4d, {0x55}, 1}, // Undocumented secret from demo code
|
||||
{0xaa, {0x0f}, 1}, // Undocumented secret from demo code
|
||||
|
@ -249,9 +248,8 @@ static void jd79653a_partial_in()
|
|||
#elif defined(CONFIG_LV_DISPLAY_ORIENTATION_PORTRAIT)
|
||||
uint8_t pst_use_reg_lut[] = { 0xff, 0x0e };
|
||||
#else
|
||||
assert(false); // Crash if we get here, but allow compilation for CI
|
||||
assert(false); // Unsupported orientation configured. Crash if we get here, but allow compilation for CI
|
||||
uint8_t pst_use_reg_lut[] = { 0,0 };
|
||||
#warning "Unsupported orientation - only portrait modes are supported for now"
|
||||
#endif
|
||||
jd79653a_spi_send_cmd(0x00);
|
||||
jd79653a_spi_send_data(pst_use_reg_lut, sizeof(pst_use_reg_lut));
|
||||
|
@ -278,9 +276,8 @@ static void jd79653a_partial_out()
|
|||
#elif defined(CONFIG_LV_DISPLAY_ORIENTATION_PORTRAIT)
|
||||
uint8_t pst_use_otp_lut[] = { 0xdf, 0x0e };
|
||||
#else
|
||||
assert(false); // Crash if we get here, but allow compilation for CI
|
||||
assert(false); // Unsupported orientation configured. Crash if we get here, but allow compilation for CI
|
||||
uint8_t pst_use_otp_lut[] = { 0,0 };
|
||||
#warning "Unsupported orientation - only portrait modes are supported for now"
|
||||
#endif
|
||||
jd79653a_spi_send_cmd(0x00);
|
||||
jd79653a_spi_send_data(pst_use_otp_lut, sizeof(pst_use_otp_lut));
|
||||
|
|
|
@ -59,7 +59,6 @@
|
|||
#define CONFIG_LV_DISP_RA8875_PLLDIVN (0x00)
|
||||
#define CONFIG_LV_DISP_RA8875_PLLDIVK (0x00)
|
||||
|
||||
#warning "No RA8875 settings defined"
|
||||
#else
|
||||
#if ( CONFIG_LV_DISPLAY_ORIENTATION_PORTRAIT_INVERTED || CONFIG_LV_DISPLAY_ORIENTATION_LANDSCAPE_INVERTED )
|
||||
#if CONFIG_LV_INVERT_DISPLAY
|
||||
|
@ -138,6 +137,9 @@ static void ra8875_send_buffer(uint8_t * data, size_t length, bool signal_flush)
|
|||
|
||||
void ra8875_init(void)
|
||||
{
|
||||
#ifndef CONFIG_LV_TFT_DISPLAY_CONTROLLER_RA8875
|
||||
assert(false); // This driver is not properly configured
|
||||
#endif
|
||||
unsigned int i = 0;
|
||||
|
||||
struct {
|
||||
|
|
|
@ -106,7 +106,7 @@ void ssd1306_init(void)
|
|||
orientation_1 = 0xA0;
|
||||
orientation_2 = OLED_CMD_SET_COM_SCAN_MODE_NORMAL;
|
||||
#else
|
||||
#error "Unsupported orientation"
|
||||
assert(false); // Invalid configuration of SSD1306 driver
|
||||
#endif
|
||||
|
||||
uint8_t display_mode = 0;
|
||||
|
|
Loading…
Reference in a new issue