Changeset c2772b8 in mainline for uspace/drv/usbhid
- Timestamp:
- 2011-01-30T22:06:09Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 707ffcf
- Parents:
- 54b5625 (diff), a09128c (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. - Location:
- uspace/drv/usbhid
- Files:
-
- 1 added
- 11 moved
-
Makefile (moved) (moved from uspace/drv/usbkbd/Makefile ) (3 diffs)
-
conv.c (moved) (moved from uspace/drv/usbkbd/conv.c ) (2 diffs)
-
conv.h (moved) (moved from uspace/drv/usbkbd/conv.h ) (2 diffs)
-
descdump.c (moved) (moved from uspace/drv/usbkbd/descdump.c ) (1 diff)
-
descdump.h (moved) (moved from uspace/drv/usbkbd/descdump.h ) (1 diff)
-
descparser.c (moved) (moved from uspace/drv/usbkbd/descparser.c ) (1 diff)
-
descparser.h (moved) (moved from uspace/drv/usbkbd/descparser.h ) (1 diff)
-
hid.h (moved) (moved from uspace/drv/usbkbd/hid.h )
-
kbd.h (added)
-
layout.h (moved) (moved from uspace/drv/usbkbd/layout.h ) (2 diffs)
-
main.c (moved) (moved from uspace/drv/usbkbd/main.c ) (3 diffs)
-
usbhid.ma (moved) (moved from uspace/drv/usbkbd/usbkbd.ma )
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/Makefile
r54b5625 rc2772b8 1 1 # 2 # Copyright (c) 2010 Vojtech Horky2 # Copyright (c) 2010-2011 Vojtech Horky 3 3 # All rights reserved. 4 4 # … … 30 30 LIBS = $(LIBDRV_PREFIX)/libdrv.a $(LIBUSB_PREFIX)/libusb.a 31 31 EXTRA_CFLAGS += -I$(LIBDRV_PREFIX)/include -I$(LIBUSB_PREFIX)/include -I. 32 BINARY = usbkbd 33 SRV_KBD = $(USPACE_PREFIX)/srv/hid/kbd 32 BINARY = usbhid 33 34 STOLEN_LAYOUT_SOURCES = \ 35 layout/us_qwerty.c \ 36 layout/us_dvorak.c \ 37 layout/cz.c 34 38 35 39 SOURCES = \ … … 38 42 descdump.c \ 39 43 conv.c \ 40 us_qwerty.c \ 41 us_dvorak.c \ 42 cz.c 44 $(STOLEN_LAYOUT_SOURCES) 45 46 EXTRA_CLEAN = $(STOLEN_LAYOUT_SOURCES) 47 48 SRV_KBD = $(USPACE_PREFIX)/srv/hid/kbd 43 49 44 50 include $(USPACE_PREFIX)/Makefile.common 45 51 46 us_qwerty.c: 47 ln -snf $(SRV_KBD)/layout/$@ $@ 48 49 us_dvorak.c: 50 ln -snf $(SRV_KBD)/layout/$@ $@ 51 52 cz.c: 53 ln -snf $(SRV_KBD)/layout/$@ $@ 54 55 52 layout/%.c: $(SRV_KBD)/layout/%.c 53 ln -sfn ../$< $@ -
uspace/drv/usbhid/conv.c
r54b5625 rc2772b8 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 29 /** @addtogroup drvusbhid 30 * @{ 31 */ 32 /** @file 33 * USB scancode parser. 34 */ 35 28 36 #include <io/keycode.h> 29 37 #include <stdint.h> … … 185 193 return key; 186 194 } 195 196 /** 197 * @} 198 */ -
uspace/drv/usbhid/conv.h
r54b5625 rc2772b8 27 27 */ 28 28 29 /** @addtogroup usb29 /** @addtogroup drvusbhid 30 30 * @{ 31 31 */ 32 32 /** @file 33 * @brief USB Scancode parser.33 * USB scancode parser. 34 34 */ 35 35 … … 40 40 41 41 #endif 42 43 /** 44 * @} 45 */ -
uspace/drv/usbhid/descdump.c
r54b5625 rc2772b8 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 28 29 /** @addtogroup drvusbhid 29 30 * @{ 31 */ 32 /** @file 33 * Descriptor dumping. 30 34 */ 31 35 -
uspace/drv/usbhid/descdump.h
r54b5625 rc2772b8 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 28 29 /** @addtogroup drvusbhid 29 30 * @{ 30 31 */ 32 /** @file 33 * Descriptor dumping. 34 */ 35 31 36 #ifndef USBHID_DESCDUMP_H_ 32 37 #define USBHID_DESCDUMP_H_ -
uspace/drv/usbhid/descparser.c
r54b5625 rc2772b8 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 28 29 /** @addtogroup drvusbhid 29 30 * @{ 31 */ 32 /** @file 33 * Descriptor parser. 30 34 */ 31 35 -
uspace/drv/usbhid/descparser.h
r54b5625 rc2772b8 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 28 29 /** @addtogroup drvusbhid 29 30 * @{ 31 */ 32 /** @file 33 * Descriptor parser. 30 34 */ 31 35 -
uspace/drv/usbhid/layout.h
r54b5625 rc2772b8 1 1 /* 2 * Copyright (c) 2009 Jiri Svoboda 2 3 * Copyright (c) 2011 Lubos Slovak 3 4 * (copied from /uspace/srv/hid/kbd/include/layout.h) … … 28 29 */ 29 30 30 /** @addtogroup usb 31 * @brief 32 * @ingroup 31 /** @addtogroup drvusbhid 33 32 * @{ 34 33 */ 35 34 /** @file 35 * Keyboard layout. 36 36 */ 37 37 -
uspace/drv/usbhid/main.c
r54b5625 rc2772b8 1 1 /* 2 2 * Copyright (c) 2010 Vojtech Horky 3 * Copyright (c) 2011 Lubos Slovak 3 4 * All rights reserved. 4 5 * … … 26 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 28 */ 29 28 30 /** @addtogroup drvusbhid 29 31 * @{ 30 32 */ 33 /** 34 * @file 35 * Main routines of USB HID driver. 36 */ 37 31 38 #include <usb/usbdrv.h> 32 39 #include <driver.h> … … 49 56 50 57 #define BUFFER_SIZE 32 51 #define NAME "usb kbd"58 #define NAME "usbhid" 52 59 53 60 #define GUESSED_POLL_ENDPOINT 1
Note:
See TracChangeset
for help on using the changeset viewer.
