Changeset 76ca3f7 in mainline for uspace/srv/hid/char_mouse


Ignore:
Timestamp:
2010-03-23T20:49:54Z (16 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e417b96
Parents:
b48ebd19 (diff), 63f8966 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mailnline changes, revision 329

Location:
uspace/srv/hid/char_mouse
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/char_mouse/Makefile

    rb48ebd19 r76ca3f7  
    2929
    3030USPACE_PREFIX = ../../..
    31 LIBS = $(LIBC_PREFIX)/libc.a
    3231EXTRA_CFLAGS = -Iinclude
    33 
    34 OUTPUT = char_ms
     32BINARY = char_ms
    3533
    3634SOURCES = \
     
    3937        chardev.c
    4038
    41 include ../../Makefile.common
     39include $(USPACE_PREFIX)/Makefile.common
  • uspace/srv/hid/char_mouse/chardev.c

    rb48ebd19 r76ca3f7  
    4848static int dev_phone;
    4949
    50 #define NAME "kbd"
     50#define NAME "char_mouse"
    5151
    5252int mouse_port_init(void)
  • uspace/srv/hid/char_mouse/proto/ps2.c

    rb48ebd19 r76ca3f7  
    3636
    3737#include <stdio.h>
     38#include <mouse_port.h>
     39#include <char_mouse.h>
    3840#include <mouse_proto.h>
    39 #include <char_mouse.h>
    4041
    4142#define BUFSIZE 3
     43
     44#define PS2_MOUSE_OUT_INIT  0xf4
     45#define PS2_MOUSE_ACK       0xfa
    4246
    4347typedef struct {
     
    6771int mouse_proto_init(void)
    6872{
     73        mouse_port_write(PS2_MOUSE_OUT_INIT);
    6974        return 0;
    7075}
Note: See TracChangeset for help on using the changeset viewer.