Changeset 9701d49 in mainline
- Timestamp:
- 2009-04-25T12:00:40Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 409b0d6
- Parents:
- ccd1a14
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/kbd/port/sgcn.c
rccd1a14 r9701d49 43 43 #include <stdio.h> 44 44 #include <thread.h> 45 #include <bool.h> 45 46 46 47 #define POLL_INTERVAL 10000 … … 93 94 static void *sgcn_thread_impl(void *arg); 94 95 96 static volatile bool polling_disabled = false; 95 97 96 98 /** … … 123 125 void kbd_port_yield(void) 124 126 { 127 polling_disabled = true; 125 128 } 126 129 127 130 void kbd_port_reclaim(void) 128 131 { 132 polling_disabled = false; 129 133 } 130 134 … … 163 167 164 168 while (1) { 165 sgcn_key_pressed(); 169 if (polling_disabled == false) 170 sgcn_key_pressed(); 166 171 usleep(POLL_INTERVAL); 167 172 } 168 173 } 169 174 170 171 175 /** @} 172 176 */
Note:
See TracChangeset
for help on using the changeset viewer.