diff options
| author | Nick Brassel <nick@tzarc.org> | 2022-10-15 04:15:02 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-14 18:15:02 +0100 |
| commit | 19aed5e999ef177a2ff0b2b705443bde9c70588c (patch) | |
| tree | 314b496c9e67435ca7ee217e2481849c6a6babc7 | |
| parent | 3fffa51554556edc9ca53bc04ef45abe87d3d3c9 (diff) | |
Make QP driver init functions weak. (#18717)
| -rw-r--r-- | drivers/painter/gc9a01/qp_gc9a01.c | 2 | ||||
| -rw-r--r-- | drivers/painter/ili9xxx/qp_ili9163.c | 2 | ||||
| -rw-r--r-- | drivers/painter/ili9xxx/qp_ili9341.c | 2 | ||||
| -rw-r--r-- | drivers/painter/ili9xxx/qp_ili9488.c | 2 | ||||
| -rw-r--r-- | drivers/painter/ssd1351/qp_ssd1351.c | 2 | ||||
| -rw-r--r-- | drivers/painter/st77xx/qp_st7735.c | 4 | ||||
| -rw-r--r-- | drivers/painter/st77xx/qp_st7789.c | 2 |
7 files changed, 8 insertions, 8 deletions
diff --git a/drivers/painter/gc9a01/qp_gc9a01.c b/drivers/painter/gc9a01/qp_gc9a01.c index 37700a28a4..5bdab1e520 100644 --- a/drivers/painter/gc9a01/qp_gc9a01.c +++ b/drivers/painter/gc9a01/qp_gc9a01.c | |||
| @@ -17,7 +17,7 @@ tft_panel_dc_reset_painter_device_t gc9a01_drivers[GC9A01_NUM_DEVICES] = {0}; | |||
| 17 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | 17 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 18 | // Initialization | 18 | // Initialization |
| 19 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | 19 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 20 | bool qp_gc9a01_init(painter_device_t device, painter_rotation_t rotation) { | 20 | __attribute__((weak)) bool qp_gc9a01_init(painter_device_t device, painter_rotation_t rotation) { |
| 21 | // A lot of these "unknown" opcodes are sourced from other OSS projects and are seemingly required for this display to function. | 21 | // A lot of these "unknown" opcodes are sourced from other OSS projects and are seemingly required for this display to function. |
| 22 | // clang-format off | 22 | // clang-format off |
| 23 | const uint8_t gc9a01_init_sequence[] = { | 23 | const uint8_t gc9a01_init_sequence[] = { |
diff --git a/drivers/painter/ili9xxx/qp_ili9163.c b/drivers/painter/ili9xxx/qp_ili9163.c index 14363c7d04..8bb01d12e0 100644 --- a/drivers/painter/ili9xxx/qp_ili9163.c +++ b/drivers/painter/ili9xxx/qp_ili9163.c | |||
| @@ -20,7 +20,7 @@ tft_panel_dc_reset_painter_device_t ili9163_drivers[ILI9163_NUM_DEVICES] = {0}; | |||
| 20 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | 20 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 21 | // Initialization | 21 | // Initialization |
| 22 | 22 | ||
| 23 | bool qp_ili9163_init(painter_device_t device, painter_rotation_t rotation) { | 23 | __attribute__((weak)) bool qp_ili9163_init(painter_device_t device, painter_rotation_t rotation) { |
| 24 | // clang-format off | 24 | // clang-format off |
| 25 | const uint8_t ili9163_init_sequence[] = { | 25 | const uint8_t ili9163_init_sequence[] = { |
| 26 | // Command, Delay, N, Data[N] | 26 | // Command, Delay, N, Data[N] |
diff --git a/drivers/painter/ili9xxx/qp_ili9341.c b/drivers/painter/ili9xxx/qp_ili9341.c index 9608f109bd..2a97388316 100644 --- a/drivers/painter/ili9xxx/qp_ili9341.c +++ b/drivers/painter/ili9xxx/qp_ili9341.c | |||
| @@ -20,7 +20,7 @@ tft_panel_dc_reset_painter_device_t ili9341_drivers[ILI9341_NUM_DEVICES] = {0}; | |||
| 20 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | 20 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 21 | // Initialization | 21 | // Initialization |
| 22 | 22 | ||
| 23 | bool qp_ili9341_init(painter_device_t device, painter_rotation_t rotation) { | 23 | __attribute__((weak)) bool qp_ili9341_init(painter_device_t device, painter_rotation_t rotation) { |
| 24 | // clang-format off | 24 | // clang-format off |
| 25 | const uint8_t ili9341_init_sequence[] = { | 25 | const uint8_t ili9341_init_sequence[] = { |
| 26 | // Command, Delay, N, Data[N] | 26 | // Command, Delay, N, Data[N] |
diff --git a/drivers/painter/ili9xxx/qp_ili9488.c b/drivers/painter/ili9xxx/qp_ili9488.c index 55cf9f896f..cda9a9be00 100644 --- a/drivers/painter/ili9xxx/qp_ili9488.c +++ b/drivers/painter/ili9xxx/qp_ili9488.c | |||
| @@ -20,7 +20,7 @@ tft_panel_dc_reset_painter_device_t ili9488_drivers[ILI9488_NUM_DEVICES] = {0}; | |||
| 20 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | 20 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 21 | // Initialization | 21 | // Initialization |
| 22 | 22 | ||
| 23 | bool qp_ili9488_init(painter_device_t device, painter_rotation_t rotation) { | 23 | __attribute__((weak)) bool qp_ili9488_init(painter_device_t device, painter_rotation_t rotation) { |
| 24 | // clang-format off | 24 | // clang-format off |
| 25 | const uint8_t ili9488_init_sequence[] = { | 25 | const uint8_t ili9488_init_sequence[] = { |
| 26 | // Command, Delay, N, Data[N] | 26 | // Command, Delay, N, Data[N] |
diff --git a/drivers/painter/ssd1351/qp_ssd1351.c b/drivers/painter/ssd1351/qp_ssd1351.c index 7ce76bab6d..85146490a0 100644 --- a/drivers/painter/ssd1351/qp_ssd1351.c +++ b/drivers/painter/ssd1351/qp_ssd1351.c | |||
| @@ -20,7 +20,7 @@ tft_panel_dc_reset_painter_device_t ssd1351_drivers[SSD1351_NUM_DEVICES] = {0}; | |||
| 20 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | 20 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 21 | // Initialization | 21 | // Initialization |
| 22 | 22 | ||
| 23 | bool qp_ssd1351_init(painter_device_t device, painter_rotation_t rotation) { | 23 | __attribute__((weak)) bool qp_ssd1351_init(painter_device_t device, painter_rotation_t rotation) { |
| 24 | tft_panel_dc_reset_painter_device_t *driver = (tft_panel_dc_reset_painter_device_t *)device; | 24 | tft_panel_dc_reset_painter_device_t *driver = (tft_panel_dc_reset_painter_device_t *)device; |
| 25 | 25 | ||
| 26 | // clang-format off | 26 | // clang-format off |
diff --git a/drivers/painter/st77xx/qp_st7735.c b/drivers/painter/st77xx/qp_st7735.c index e434e31b92..74145e0e4e 100644 --- a/drivers/painter/st77xx/qp_st7735.c +++ b/drivers/painter/st77xx/qp_st7735.c | |||
| @@ -49,7 +49,7 @@ static inline void st7735_automatic_viewport_offsets(painter_device_t device, pa | |||
| 49 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | 49 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 50 | // Initialization | 50 | // Initialization |
| 51 | 51 | ||
| 52 | bool qp_st7735_init(painter_device_t device, painter_rotation_t rotation) { | 52 | __attribute__((weak)) bool qp_st7735_init(painter_device_t device, painter_rotation_t rotation) { |
| 53 | // clang-format off | 53 | // clang-format off |
| 54 | const uint8_t st7735_init_sequence[] = { | 54 | const uint8_t st7735_init_sequence[] = { |
| 55 | // Command, Delay, N, Data[N] | 55 | // Command, Delay, N, Data[N] |
| @@ -141,4 +141,4 @@ painter_device_t qp_st7735_make_spi_device(uint16_t panel_width, uint16_t panel_ | |||
| 141 | 141 | ||
| 142 | #endif // QUANTUM_PAINTER_ST7735_SPI_ENABLE | 142 | #endif // QUANTUM_PAINTER_ST7735_SPI_ENABLE |
| 143 | 143 | ||
| 144 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// \ No newline at end of file | 144 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
diff --git a/drivers/painter/st77xx/qp_st7789.c b/drivers/painter/st77xx/qp_st7789.c index 49e8436c29..905f6bb270 100644 --- a/drivers/painter/st77xx/qp_st7789.c +++ b/drivers/painter/st77xx/qp_st7789.c | |||
| @@ -48,7 +48,7 @@ static inline void st7789_automatic_viewport_offsets(painter_device_t device, pa | |||
| 48 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | 48 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 49 | // Initialization | 49 | // Initialization |
| 50 | 50 | ||
| 51 | bool qp_st7789_init(painter_device_t device, painter_rotation_t rotation) { | 51 | __attribute__((weak)) bool qp_st7789_init(painter_device_t device, painter_rotation_t rotation) { |
| 52 | // clang-format off | 52 | // clang-format off |
| 53 | const uint8_t st7789_init_sequence[] = { | 53 | const uint8_t st7789_init_sequence[] = { |
| 54 | // Command, Delay, N, Data[N] | 54 | // Command, Delay, N, Data[N] |
