ECE4760 - Laser Projector (ipb7, jcc384, pfc38)  1
Raster Laser Projection
main.c
Go to the documentation of this file.
1 
12 /*******************************/
13 /* Includes */
14 /*******************************/
16 
17 #include "include.h"
18 
19 #include "parameters.h"
20 
22 // clock AND protoThreads configure!
23 // You MUST check this file!
24 #include "config.h"
25 // threading library
26 #include "pt_cornell_1_2_1.h"
28 
29 #include "projector.h"
30 #include "rendering.h"
31 
33 
34 /*******************************/
35 /* LOCAL Macro Definitions */
36 /*******************************/
38 
40 
41 /*******************************/
42 /* LOCAL typdef Dececlarations */
43 /*******************************/
45 
47 
48 /*******************************/
49 /* LOCAL Function Declarations */
50 /*******************************/
52 
54 
55 /*******************************/
56 /* LOCAL Variable Declarations */
57 /*******************************/
59 
61 
62 /*******************************/
63 /* GLOBAL Variable Definitions */
64 /*******************************/
66 
68 
69 /*******************************/
70 /* GLOBAL Function Definitions */
71 /*******************************/
73 
74 int main(void) {
76  /* Set Up Projector */
78 
80 
82  /* Setup system wide interrupts */
84 
85  INTEnableSystemMultiVectoredInt();
86 
88  /* Run the scheduler */
90 
91  while (1) {
92  rendering_fillRect(0, 0,
98  rendering_fillRect((IMAGE_WIDTH / 3) * 2, 0,
101  }
102 } // main
103 
105 
106 /*******************************/
107 /* ISR Definitions */
108 /*******************************/
110 
112 
113 /*******************************/
114 /* LOCAL Function Definitions */
115 /*******************************/
117 
119 
struct color const color_purest_blue
Maximum intensity blue, no other colors.
Definition: color.c:44
#define IMAGE_HEIGHT
Definition: parameters.h:18
struct color const color_purest_green
Maximum intensity green, no other colors.
Definition: color.c:38
void projector_init()
Initialize projector peripherals, variables etc. MUST be called before calling any other projector fu...
Definition: projector.c:123
void rendering_fillRect(short x, short y, short w, short h, struct color color)
Definition: rendering.c:653
#define IMAGE_WIDTH
Definition: parameters.h:19
struct color const color_purest_red
Maximum intensity red, no other colors.
Definition: color.c:32
Compile-time parameters to control system.
int main(void)
Definition: main.c:74