|
EE445M RTOS
Taken at the University of Texas Spring 2015
|
#include <time.h>#include <stdio.h>#include <stdlib.h>#include "shape.h"#include "clock.h"#include "framebuffer.h"#include "graphics2d.h"#include "timekit.h"
Go to the source code of this file.
Functions | |
| int | usleep (int usec) |
| void | mockCheckout (void) |
| void | demonstrateVoidPointerMenus (void) |
| void | demonstrateClockMenu (void) |
| void | demonstrateClock (void) |
| void | demonstrateDrawString (void) |
| void | demonstrateDrawShapes (void) |
| void | printFramebuffer (unsigned char *fb) |
| void | pseudointerrupt (clocktime *tm) |
| int | main (void) |
| void demonstrateClock | ( | void | ) |
Definition at line 154 of file console-fb.c.
References CFCreateClockFace(), CFDestroyClockFace(), CFDestroyShapes(), CFToShapes(), CFUpdateTime(), CH_HOURS, CH_MINUTES, CH_MS, CH_SECONDS, CHCreateClockHand(), CHDestroyClockHand(), FB_COLOR_MUCH, G2ConvertFBToRITFormat(), OLED_HEIGHT, OLED_WIDTH, printFramebuffer(), pseudointerrupt(), TK_PRINT_MODE_HOURS_MINUTES_SECONDS_MS, TKCreateTimeHandle(), TKDestroy(), TKIncrementHours(), TKIncrementMinutes(), and usleep().
Referenced by main().


| void demonstrateClockMenu | ( | void | ) |
| void demonstrateDrawShapes | ( | void | ) |
Definition at line 237 of file console-fb.c.
References G2ConvertFBToRITFormat(), printFramebuffer(), and point::shade.

| void demonstrateDrawString | ( | void | ) |
Definition at line 267 of file console-fb.c.
References G2ConvertFBToRITFormat(), and printFramebuffer().

| void demonstrateVoidPointerMenus | ( | void | ) |
| int main | ( | void | ) |
Definition at line 37 of file console-fb.c.
References demonstrateClock().

| void mockCheckout | ( | void | ) |
Definition at line 47 of file console-fb.c.
| void printFramebuffer | ( | unsigned char * | fb | ) |
Definition at line 282 of file console-fb.c.
References OLED_HEIGHT, OLED_WIDTH, RIT_FB_WIDTH, SHADE_0, SHADE_1, SHADE_2, and SHADE_3.
Referenced by demonstrateClock(), demonstrateDrawShapes(), and demonstrateDrawString().

| void pseudointerrupt | ( | clocktime * | tm | ) |
Definition at line 232 of file console-fb.c.
References TKIncrementMS().
Referenced by demonstrateClock().


| int usleep | ( | int | usec | ) |