This commit is contained in:
Lee Lup Yuen 2022-10-31 14:27:57 +08:00
parent f49b3a1938
commit 6ca6959d8a

View file

@ -66,8 +66,9 @@ pub export fn test_render() void {
} }
} }
/// Force MIPI DSI Functions to be exported to C. (Why is this needed?) /// Export MIPI DSI Functions to C. (Why is this needed?)
pub export fn export_dsi() void { pub export fn export_dsi_functions() void {
// Export Panel Init Function
dsi.nuttx_panel_init(); dsi.nuttx_panel_init();
} }
@ -82,15 +83,15 @@ const videoInfo = c.fb_videoinfo_s {
/// NuttX Color Plane (Base UI Channel) /// NuttX Color Plane (Base UI Channel)
const planeInfo = c.fb_planeinfo_s { const planeInfo = c.fb_planeinfo_s {
.fbmem = &fb0, // Start of frame buffer memory .fbmem = &fb0, // Start of frame buffer memory
.fblen = @sizeOf( @TypeOf(fb0) ), // Length of frame buffer memory in bytes .fblen = @sizeOf( @TypeOf(fb0) ), // Length of frame buffer memory in bytes
.stride = 720 * 4, // Length of a line in bytes (4 bytes per pixel) .stride = 720 * 4, // Length of a line in bytes (4 bytes per pixel)
.display = 0, // Display number (Unused) .display = 0, // Display number (Unused)
.bpp = 32, // Bits per pixel (ARGB 8888) .bpp = 32, // Bits per pixel (ARGB 8888)
.xres_virtual = 720, // Virtual Horizontal resolution in pixel columns .xres_virtual = 720, // Virtual Horizontal resolution in pixel columns
.yres_virtual = 1440, // Virtual Vertical resolution in pixel rows .yres_virtual = 1440, // Virtual Vertical resolution in pixel rows
.xoffset = 0, // Offset from virtual to visible resolution .xoffset = 0, // Offset from virtual to visible resolution
.yoffset = 0, // Offset from virtual to visible resolution .yoffset = 0, // Offset from virtual to visible resolution
}; };
/// NuttX Overlays (2 Overlay UI Channels) /// NuttX Overlays (2 Overlay UI Channels)