Initial commit: Loongson FPGA SoC project for 2026 CIC-IEC

This commit is contained in:
2026-06-23 01:22:45 +08:00
commit fbc993b846
181 changed files with 51135 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#ifndef DVI_H
#define DVI_H
#include "common_func.h"
#define DVI_BASEADDR 0xbf100000
#define DVI_RECT_DIR (DVI_BASEADDR + 0x0)
#define DVI_RECT_L_W (DVI_BASEADDR + 0x4)
#define DVI_SQU_DIR (DVI_BASEADDR + 0x8)
#define DVI_SQU_R (DVI_BASEADDR + 0xC)
// draw rect on DVI to x y
void DVI_Draw_Rect(uint32_t x, uint32_t y, uint32_t l, uint32_t w);
// draw squ on DVI to x y r
void DVI_Draw_SQU(uint32_t x, uint32_t y, uint32_t r);
#endif // DVI