External

Introduction

This is primarily used for repositories of SDK version 2.4 and later. It is recommended to use this method to place the display driver outside the SDK and run it externally, and to create new display drivers.

Directory Structure

Here, we use the sf32lb52-lcd_n16r8 board, with the screen module (nv3051f display driver + gt911 touch driver), and the aw9364 backlight driver chip as an example:

nv3051f_driver
├──NV3051F
│   ├──nv3051f
│   │   ├──nv3051f           # Implementation of the display driver
│   │   └──SConscript        # Compilation and linking file
│   │
│   ├──gt911                # Directory for the gt911 touch driver
│   │   ├──gt911.c          # C file for the touch driver
│   │   ├──gt911.h          # Header file for the touch driver
│   │   └──SConscript        # Compilation and linking file
│   │
│   ├──aw9364                # aw9364 backlight driver chip, backlight device "lcdlight"
│   │   ├──aw9364.c          # C file for the backlight driver chip
│   │   ├──aw9364.h          # Header file for the backlight driver chip
│   │   └──SConscript        # Compilation and linking file
│   │ 
│   ├──project
│   │   └──Kconfig.proj      # Menuconfig menu definition for the screen module and macro definitions for the display driver IC, touch IC, and backlight IC
│   │
│   └──src
│       ├──main              # Screen debugging project, calls the "lcd" and "touch" devices
│       └──SConscript        # Compilation and linking file
└──SiFli-SDK

Pulling the SiFli-SDK Repository Code

First, install the required environment. You can refer to the Quick Start Guide. If you have already installed the environment, you can directly pull the SDK repository code