ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_display_pal_lcd.h File Reference

LCD backend (ra8_glcdc) for the display PAL. More...

#include "ra8_display_pal.h"
Include dependency graph for ra8_display_pal_lcd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

const display_backend_iface_t k_display_backend_lcd_ra8_glcdc
 LCD backend vtable – pass its address through display_cfg_t.iface to drive the EK-RA8D2 panel.

Detailed Description

LCD backend (ra8_glcdc) for the display PAL.

Tag
[Ring 4 / PAL] {World: NS}

Exports the const display_backend_iface_t instance that wraps libs/ra8_hal/src/ra8_glcdc.c plus the EK-RA8D2 panel power-on sequence. Apps select this backend by setting display_cfg_t.iface = &k_display_backend_lcd_ra8_glcdc; – the rest of the PAL API is identical regardless of which backend is bound.

Since
0.1.0

Definition in file ra8_display_pal_lcd.h.

Variable Documentation

◆ k_display_backend_lcd_ra8_glcdc

const display_backend_iface_t k_display_backend_lcd_ra8_glcdc
extern

LCD backend vtable – pass its address through display_cfg_t.iface to drive the EK-RA8D2 panel.

The vtable's init callback runs the full GLCDC bring-up:

  1. ra8_board_lcd_panel_power_on – toggle RESET_L low/high and assert BLEN.
  2. ra8_board_glcdc_init(k_ra8_board_glcdc_fmt_rgb888) – pin and clock setup for the parallel-RGB bus.
  3. 200 ms settle delay (panel POR + pin direction).
  4. ra8_glcdc_init with the caller's framebuffer / dimensions.
  5. ra8_glcdc_set_background_color(0x000000) – BG plane black.
  6. ra8_glcdc_start(true) – enable scan-out.
  7. ra8_glcdc_layer1_show – expose Graphics 1 over the FB.

The matching deinit callback turns the panel back off.

Note
Only one display can be initialised at a time; calling display_init while a previous handle is still live returns k_ra8_err_busy.
Since
0.1.0

Definition at line 566 of file ra8_display_pal_lcd.c.