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.
drivers/vga.h@10:38b716b7534f, 2019-11-26 (annotated)
- Committer:
- sPymbed
- Date:
- Tue Nov 26 11:18:09 2019 +0000
- Revision:
- 10:38b716b7534f
- Parent:
- 3:351ee68a721d
added: serial input
Who changed what in which revision?
User | Revision | Line number | New 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 | namespace myos |
sPymbed | 0:97ba3e2cd071 | 7 | { |
sPymbed | 0:97ba3e2cd071 | 8 | namespace drivers |
sPymbed | 0:97ba3e2cd071 | 9 | { |
sPymbed | 0:97ba3e2cd071 | 10 | |
sPymbed | 0:97ba3e2cd071 | 11 | class VideoGraphicsArray |
sPymbed | 0:97ba3e2cd071 | 12 | { |
sPymbed | 0:97ba3e2cd071 | 13 | protected: |
sPymbed | 0:97ba3e2cd071 | 14 | virtual uint8_t GetColorIndex(uint8_t r, uint8_t g, uint8_t b); |
sPymbed | 0:97ba3e2cd071 | 15 | |
sPymbed | 0:97ba3e2cd071 | 16 | |
sPymbed | 0:97ba3e2cd071 | 17 | public: |
sPymbed | 0:97ba3e2cd071 | 18 | VideoGraphicsArray(); |
sPymbed | 0:97ba3e2cd071 | 19 | ~VideoGraphicsArray(); |
sPymbed | 0:97ba3e2cd071 | 20 | |
sPymbed | 0:97ba3e2cd071 | 21 | virtual bool SupportsMode(uint32_t width, uint32_t height, uint32_t colordepth); |
sPymbed | 0:97ba3e2cd071 | 22 | virtual bool SetMode(uint32_t width, uint32_t height, uint32_t colordepth); |
sPymbed | 0:97ba3e2cd071 | 23 | virtual void PutPixel(int32_t x, int32_t y, uint8_t r, uint8_t g, uint8_t b); |
sPymbed | 0:97ba3e2cd071 | 24 | virtual void PutPixel(int32_t x, int32_t y, uint8_t colorIndex); |
sPymbed | 0:97ba3e2cd071 | 25 | |
sPymbed | 0:97ba3e2cd071 | 26 | 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 | 27 | |
sPymbed | 0:97ba3e2cd071 | 28 | }; |
sPymbed | 0:97ba3e2cd071 | 29 | |
sPymbed | 0:97ba3e2cd071 | 30 | } |
sPymbed | 0:97ba3e2cd071 | 31 | } |
sPymbed | 0:97ba3e2cd071 | 32 | |
sPymbed | 0:97ba3e2cd071 | 33 | #endif |