Changeset c852b948 in mainline
- Timestamp:
- 2009-02-19T19:39:24Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4b44099d
- Parents:
- 3f95377
- Location:
- kernel/genarch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/include/kbd/i8042.h
r3f95377 rc852b948 40 40 41 41 extern void i8042_init(devno_t kbd_devno, inr_t kbd_inr, devno_t mouse_devno, inr_t mouse_inr); 42 extern void i8042_poll(void);43 42 extern void i8042_grab(void); 44 43 extern void i8042_release(void); -
kernel/genarch/src/kbd/i8042.c
r3f95377 rc852b948 224 224 } 225 225 226 /** Poll for key press and release events.227 *228 * This function can be used to implement keyboard polling.229 */230 void i8042_poll(void)231 {232 uint8_t x;233 234 while (((x = i8042_status_read() & i8042_BUFFER_FULL_MASK))) {235 x = i8042_data_read();236 if (x & KEY_RELEASE)237 key_released(x ^ KEY_RELEASE);238 else239 key_pressed(x);240 }241 }242 243 226 /** @} 244 227 */
Note:
See TracChangeset
for help on using the changeset viewer.