stuff
This commit is contained in:
28
core1.h
28
core1.h
@@ -1,3 +1,31 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
#include "pico/stdlib.h"
|
||||
|
||||
enum VIDEO_COMMAND{
|
||||
VIDEO_COMMAND_MODE_SET, // data[0] VIDEO_MODE
|
||||
VIDEO_WRITE_TEXT, // write data[0] to (data[1],data[2])
|
||||
VIDEO_WRITE_PIXEL, // write 8 pixels (low byte of data[0]) to (data[1],daa[2])
|
||||
VIDEO_SCROLL_TEXT, // Sroll text up
|
||||
VIDEO_CLR_TEXT, // Clear screen
|
||||
VIDEO_CLR_PIXEL, // Clear screen
|
||||
};
|
||||
|
||||
enum VIDEO_MODE{
|
||||
VIDEO_MODE_TEXT, // Text mode
|
||||
VIDEO_MODE_PIXEL, // Pixel mode
|
||||
};
|
||||
|
||||
typedef struct __packed{
|
||||
uint16_t cmd;
|
||||
uint16_t data[3];
|
||||
} video_command_t; // fits inside uint64_t
|
||||
|
||||
typedef struct __packed{
|
||||
uint8_t vid_cmd;
|
||||
uint8_t vid_data;
|
||||
uint8_t unused[2];
|
||||
uint32_t flags;
|
||||
} registers_t; // fits inside uint64_t
|
||||
|
||||
void core1_entry();
|
||||
Reference in New Issue
Block a user