Operating System

Dependencies:   UnitTest wolfssh mDNS wolfcrypt wolfSSL

This is an embedded operating system for K64F. It includes a ssh server, a web-server and mDNS server. It has POST on boot. The main purpose of the OS is a router for the thing network.

Committer:
sPymbed
Date:
Thu Jun 13 13:08:37 2019 +0000
Revision:
0:97ba3e2cd071
Child:
3:351ee68a721d
version 1.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sPymbed 0:97ba3e2cd071 1
sPymbed 0:97ba3e2cd071 2
sPymbed 0:97ba3e2cd071 3 #ifndef __MYOS__DRIVERS__VGA_H
sPymbed 0:97ba3e2cd071 4 #define __MYOS__DRIVERS__VGA_H
sPymbed 0:97ba3e2cd071 5
sPymbed 0:97ba3e2cd071 6 //#include <hardwarecommunication/port.h>
sPymbed 0:97ba3e2cd071 7 //#include <drivers/driver.h>
sPymbed 0:97ba3e2cd071 8
sPymbed 0:97ba3e2cd071 9 namespace myos
sPymbed 0:97ba3e2cd071 10 {
sPymbed 0:97ba3e2cd071 11 namespace drivers
sPymbed 0:97ba3e2cd071 12 {
sPymbed 0:97ba3e2cd071 13
sPymbed 0:97ba3e2cd071 14 class VideoGraphicsArray
sPymbed 0:97ba3e2cd071 15 {
sPymbed 0:97ba3e2cd071 16 protected:
sPymbed 0:97ba3e2cd071 17 /*hardwarecommunication::Port8Bit miscPort;
sPymbed 0:97ba3e2cd071 18 hardwarecommunication::Port8Bit crtcIndexPort;
sPymbed 0:97ba3e2cd071 19 hardwarecommunication::Port8Bit crtcDataPort;
sPymbed 0:97ba3e2cd071 20 hardwarecommunication::Port8Bit sequencerIndexPort;
sPymbed 0:97ba3e2cd071 21 hardwarecommunication::Port8Bit sequencerDataPort;
sPymbed 0:97ba3e2cd071 22 hardwarecommunication::Port8Bit graphicsControllerIndexPort;
sPymbed 0:97ba3e2cd071 23 hardwarecommunication::Port8Bit graphicsControllerDataPort;
sPymbed 0:97ba3e2cd071 24 hardwarecommunication::Port8Bit attributeControllerIndexPort;
sPymbed 0:97ba3e2cd071 25 hardwarecommunication::Port8Bit attributeControllerReadPort;
sPymbed 0:97ba3e2cd071 26 hardwarecommunication::Port8Bit attributeControllerWritePort;
sPymbed 0:97ba3e2cd071 27 hardwarecommunication::Port8Bit attributeControllerResetPort;
sPymbed 0:97ba3e2cd071 28
sPymbed 0:97ba3e2cd071 29 void WriteRegisters(uint8_t* registers);
sPymbed 0:97ba3e2cd071 30 uint8_t* GetFrameBufferSegment();*/
sPymbed 0:97ba3e2cd071 31
sPymbed 0:97ba3e2cd071 32 virtual uint8_t GetColorIndex(uint8_t r, uint8_t g, uint8_t b);
sPymbed 0:97ba3e2cd071 33
sPymbed 0:97ba3e2cd071 34
sPymbed 0:97ba3e2cd071 35 public:
sPymbed 0:97ba3e2cd071 36 VideoGraphicsArray();
sPymbed 0:97ba3e2cd071 37 ~VideoGraphicsArray();
sPymbed 0:97ba3e2cd071 38
sPymbed 0:97ba3e2cd071 39 virtual bool SupportsMode(uint32_t width, uint32_t height, uint32_t colordepth);
sPymbed 0:97ba3e2cd071 40 virtual bool SetMode(uint32_t width, uint32_t height, uint32_t colordepth);
sPymbed 0:97ba3e2cd071 41 virtual void PutPixel(int32_t x, int32_t y, uint8_t r, uint8_t g, uint8_t b);
sPymbed 0:97ba3e2cd071 42 virtual void PutPixel(int32_t x, int32_t y, uint8_t colorIndex);
sPymbed 0:97ba3e2cd071 43
sPymbed 0:97ba3e2cd071 44 virtual void FillRectangle(uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint8_t r, uint8_t g, uint8_t b);
sPymbed 0:97ba3e2cd071 45
sPymbed 0:97ba3e2cd071 46 };
sPymbed 0:97ba3e2cd071 47
sPymbed 0:97ba3e2cd071 48 }
sPymbed 0:97ba3e2cd071 49 }
sPymbed 0:97ba3e2cd071 50
sPymbed 0:97ba3e2cd071 51 #endif