mirror of
https://github.com/isometimes/rpi4-osdev
synced 2024-11-22 02:00:40 +00:00
Restructured the codebase for a bit more clarity
This commit is contained in:
parent
e16f968790
commit
3a86c5975b
60 changed files with 71 additions and 71 deletions
|
@ -1,4 +1,4 @@
|
|||
CFILES = $(wildcard *.c lib/*.c)
|
||||
CFILES = $(wildcard *.c lib/*.c wgt/*.c)
|
||||
OFILES = $(CFILES:.c=.o)
|
||||
LLVMPATH = /opt/homebrew/opt/llvm/bin
|
||||
CLANGFLAGS = -Wall -O2 -ffreestanding -nostdinc -nostdlib -mcpu=cortex-a72+nosimd
|
||||
|
@ -43,4 +43,4 @@ kernel8.img: boot/boot.o $(OFILES) bin/BCM4345C0.o bin/wgt1pal.o bin/wgt1blk.o b
|
|||
$(LLVMPATH)/llvm-objcopy -O binary kernel8.elf kernel8.img
|
||||
|
||||
clean:
|
||||
/bin/rm kernel8.elf *.o bin/*.o boot/*.o lib/*.o *.img > /dev/null 2> /dev/null || true
|
||||
/bin/rm kernel8.elf *.o bin/*.o boot/*.o lib/*.o wgt/*.o *.img > /dev/null 2> /dev/null || true
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "include/mb.h"
|
||||
#include "mb.h"
|
||||
|
||||
#define NULL 0
|
||||
#define rgb(r,g,b) (r<<16)|(g<<8)|b
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
|
||||
// ######## WGT EXAMPLES ########
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
|
||||
// ######## REQUIRED FUNCTIONS ########
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
#include "include/mb.h"
|
||||
|
||||
// ######## REQUIRED FUNCTIONS ########
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
|
||||
#define MAX_RADIUS 100
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
|
||||
// ######## REQUIRED FUNCTIONS ########
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
#include "include/mem.h"
|
||||
|
||||
// ######## REQUIRED FUNCTIONS ########
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
#include "include/mem.h"
|
||||
#include "include/mb.h"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
#include "include/mem.h"
|
||||
#include "include/mb.h"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
#include "include/mem.h"
|
||||
#include "include/mb.h"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
#include "include/mem.h"
|
||||
|
||||
// ######## REQUIRED FUNCTIONS ########
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
#include "include/mem.h"
|
||||
#include "include/multicore.h"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgtspr.h"
|
||||
#include "include/wgtspr.h"
|
||||
#include "include/mem.h"
|
||||
#include "include/multicore.h"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgtspr.h"
|
||||
#include "include/wgtspr.h"
|
||||
#include "include/mem.h"
|
||||
#include "include/multicore.h"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
#include "include/mem.h"
|
||||
|
||||
// ######## REQUIRED FUNCTIONS ########
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgtspr.h"
|
||||
#include "include/wgtspr.h"
|
||||
#include "include/mem.h"
|
||||
#include "include/multicore.h"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
#include "include/mem.h"
|
||||
|
||||
// ######## REQUIRED FUNCTIONS ########
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgtspr.h"
|
||||
#include "include/wgtspr.h"
|
||||
#include "include/mem.h"
|
||||
|
||||
// ######## REQUIRED FUNCTIONS ########
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
#include "include/mem.h"
|
||||
|
||||
// ######## REQUIRED FUNCTIONS ########
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
#include "include/mem.h"
|
||||
|
||||
// ######## REQUIRED FUNCTIONS ########
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
#include "include/mem.h"
|
||||
|
||||
// ######## REQUIRED FUNCTIONS ########
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
#include "include/mem.h"
|
||||
|
||||
// ######## REQUIRED FUNCTIONS ########
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
#include "include/mem.h"
|
||||
|
||||
// ######## REQUIRED FUNCTIONS ########
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "include/wgt.h"
|
||||
#include "include/mem.h"
|
||||
|
||||
// ######## REQUIRED FUNCTIONS ########
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgtspr.h"
|
||||
#include "include/wgtspr.h"
|
||||
#include "include/mem.h"
|
||||
#include "include/multicore.h"
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#include "wgt.h"
|
||||
#include "include/mem.h"
|
||||
#include "../include/wgt.h"
|
||||
#include "../include/mem.h"
|
||||
|
||||
static short start, end; /* Start and end x coords for filled line */
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#include "wgt.h"
|
||||
#include "include/mem.h"
|
||||
#include "../include/wgt.h"
|
||||
#include "../include/mem.h"
|
||||
|
||||
short wloadsprites (color *pal, unsigned char *file, block *image_array, short start,
|
||||
short end)
|
|
@ -1,7 +1,7 @@
|
|||
#include "wgt.h"
|
||||
#include "include/multicore.h"
|
||||
#include "include/io.h"
|
||||
#include "include/bt.h"
|
||||
#include "../include/wgt.h"
|
||||
#include "../include/multicore.h"
|
||||
#include "../include/io.h"
|
||||
#include "../include/bt.h"
|
||||
|
||||
#define MAX_MSG_LEN 50
|
||||
#define MAX_READ_RUN 100
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
void wfline (short x, short y, short x2, short y2)
|
||||
{
|
|
@ -1,5 +1,5 @@
|
|||
#include "wgt.h"
|
||||
#include "include/mem.h"
|
||||
#include "../include/wgt.h"
|
||||
#include "../include/mem.h"
|
||||
|
||||
void wbezier (tpolypoint *rawpts, short numraw, tpolypoint *curvepts, short numcurve)
|
||||
/* Bezier curve algorithm submitted to us by Claude Morais */
|
|
@ -1,5 +1,5 @@
|
|||
#include "wgt.h"
|
||||
#include "include/mem.h"
|
||||
#include "../include/wgt.h"
|
||||
#include "../include/mem.h"
|
||||
|
||||
block wloadblock (unsigned char *data)
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
void wrectangle (short x, short y, short x2, short y2)
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
void wbutt (short x, short y, short x2, short y2)
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
static void hplotcircle (short x, short y, short x_center, short y_center)
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
void wclip (short x, short y, short x2, short y2)
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
void wdissolve (block sourceimage, short *pattern, short speed)
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
void wellipse (short x_center, short y_center, short x_radius, short y_radius)
|
||||
{
|
|
@ -1,5 +1,5 @@
|
|||
#include "wgt.h"
|
||||
#include "include/mem.h"
|
||||
#include "../include/wgt.h"
|
||||
#include "../include/mem.h"
|
||||
|
||||
#define fastcopy memcpy
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
block abuf; /* pointer to the active screen */
|
||||
block fbuf; /* pointer to the hardware framebuffer */
|
|
@ -1,5 +1,5 @@
|
|||
#include "wgt.h"
|
||||
#include "include/mem.h"
|
||||
#include "../include/wgt.h"
|
||||
#include "../include/mem.h"
|
||||
|
||||
short *pinit_array;
|
||||
short *pstartx;
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
void wline (short x, short y, short x2, short y2)
|
||||
{
|
|
@ -1,5 +1,5 @@
|
|||
#include "wgt.h"
|
||||
#include "include/mem.h"
|
||||
#include "../include/wgt.h"
|
||||
#include "../include/mem.h"
|
||||
|
||||
extern short bx,by,tx,ty;
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#include "wgt.h"
|
||||
#include "include/mem.h"
|
||||
#include "../include/wgt.h"
|
||||
#include "../include/mem.h"
|
||||
|
||||
// We should replace this with faster version (and xray needs to do the right thing - not sure memcpy is a good replacement)
|
||||
#define fastcopy memcpy
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
void wloadpalette (unsigned char *data, color *pal)
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
unsigned int wgetpixel (short x, short y)
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
void resize_horizontal_line (block src, block dest, unsigned int whole,
|
||||
unsigned int xfrac, unsigned short step, short length)
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
#define fastcopy memcpy
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
void wsetcolor (unsigned int col)
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
void vga256(void)
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
#define fastcopy memcpy
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
extern short *pinit_array;
|
||||
extern short *pstartx;
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
/* The following defines should be altered to suit your program needs */
|
||||
#define MAX_SPRITES 100
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
short xc, yc, cstart, cend, curspeed;
|
||||
short grid, trans;
|
|
@ -1,5 +1,5 @@
|
|||
#include "wgt.h"
|
||||
#include "include/multicore.h"
|
||||
#include "../include/wgt.h"
|
||||
#include "../include/multicore.h"
|
||||
|
||||
short ticker_speed, ticker_running;
|
||||
unsigned int ticker_interval;
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
#define fastcopy memcpy
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
void wsline (short x, short y, short x2, short y2, short *y_array)
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
#include "wgt.h"
|
||||
#include "../include/wgt.h"
|
||||
|
||||
void wwipe (short x, short y, short x2, short y2, block image)
|
||||
{
|
Loading…
Reference in a new issue