Revision 167
some changes
proj.c | ||
---|---|---|
87 | 87 |
for (uint32_t i = 0, n = 1; i < 32; i++, n <<= 1) { |
88 | 88 |
if (msg.m_notify.interrupts & n) { |
89 | 89 |
interrupt_handler(i); |
90 |
if ((scancode[0]) == ESC_BREAK_CODE) good = 0; |
|
90 | 91 |
} |
91 | 92 |
} |
92 |
if (scancode[0] == ESC_BREAK_CODE) good = 0; |
|
93 |
|
|
93 | 94 |
break; |
94 | 95 |
default: |
95 | 96 |
break; /* no other notifications expected: do nothing */ |
... | ... | |
97 | 98 |
} else { /* received standart message, not a notification */ |
98 | 99 |
/* no standart message expected: do nothing */ |
99 | 100 |
} |
101 |
|
|
102 |
switch (get_hor_movement()) { |
|
103 |
case LEFT: |
|
104 |
printf("GOING LEFT.\n"); |
|
105 |
break; |
|
106 |
case RIGHT: |
|
107 |
printf("GOING RIGHT.\n"); |
|
108 |
break; |
|
109 |
} |
|
110 |
switch (get_ver_movement()) { |
|
111 |
case UP: |
|
112 |
printf("GOING UP.\n"); |
|
113 |
break; |
|
114 |
case DOWN: |
|
115 |
printf("GOING DOWN.\n"); |
|
116 |
break; |
|
117 |
} |
|
100 | 118 |
} |
101 | 119 |
|
102 | 120 |
// Unsubscribe interrupts |
Also available in: Unified diff