Changeset d604513 in avrstuff
- Timestamp:
- Oct 27, 2021, 5:31:45 PM (3 years ago)
- Branches:
- main
- Children:
- a0da9c8
- Parents:
- 62f4d54
- git-author:
- Adrien Destugues <pulkomandy@…> (27/10/2021 17:29:44)
- git-committer:
- Adrien Destugues <pulkomandy@…> (27/10/2021 17:31:45)
- Location:
- grip2hid
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
grip2hid/Descriptors.c
r62f4d54 rd604513 331 331 .Endpoint0Size = FIXED_CONTROL_ENDPOINT_SIZE, 332 332 333 .VendorID = 0x 03EB,334 .ProductID = 0x2 043,333 .VendorID = 0x16c0, 334 .ProductID = 0x27dc, 335 335 .ReleaseNumber = VERSION_BCD(0,0,1), 336 336 … … 412 412 * Descriptor. 413 413 */ 414 const USB_Descriptor_String_t PROGMEM ManufacturerString = USB_STRING_DESCRIPTOR(L" LUFA Library");414 const USB_Descriptor_String_t PROGMEM ManufacturerString = USB_STRING_DESCRIPTOR(L"PulkoTronics"); 415 415 416 416 /** Product descriptor string. This is a Unicode string containing the product's details in human readable form, … … 418 418 * Descriptor. 419 419 */ 420 const USB_Descriptor_String_t PROGMEM ProductString = USB_STRING_DESCRIPTOR(L" LUFA Joystick Demo");420 const USB_Descriptor_String_t PROGMEM ProductString = USB_STRING_DESCRIPTOR(L"Gravis GrIP gamepads"); 421 421 422 422 /** This function is called by the library when in device mode, and must be overridden (see library "USB Descriptors" -
grip2hid/grip.cpp
r62f4d54 rd604513 5 5 // The UART is on PD2 (Rx) and PD3 (Tx) 6 6 // The gamepads are all connected on port B 7 #define GRIP_PORT PORTB 8 #define GRIP_DDR DDRB 9 #define GRIP_PIN PINB 10 #define GRIP_DAT_A (1 << 0) 11 #define GRIP_CLK_A (1 << 1) 7 #define GRIP_PORT PORTD 8 #define GRIP_DDR DDRD 9 #define GRIP_PIN PIND 10 #define GRIP_CLK_A (1 << 0) 11 #define GRIP_DAT_A (1 << 1) 12 #define GRIP_CLK_B (1 << 2) 12 13 #define GRIP_DAT_B (1 << 3) 13 #define GRIP_CLK_B (1 << 2) 14 #define GRIP_DAT_C (1 << 7) 15 #define GRIP_CLK_C (1 << 6) 16 #define GRIP_DAT_D (1 << 5) 17 #define GRIP_CLK_D (1 << 4) 14 #define GRIP_CLK_C (1 << 4) 15 #define GRIP_DAT_C (1 << 5) 16 #define GRIP_CLK_D (1 << 6) 17 #define GRIP_DAT_D (1 << 7) 18 18 19 19 class GrIP -
grip2hid/makefile
r62f4d54 rd604513 12 12 # Run "make help" for target help. 13 13 14 MCU = at90usb1 28714 MCU = at90usb162 15 15 ARCH = AVR8 16 BOARD = USBKEY16 BOARD = 17 17 F_CPU = 8000000 18 18 F_USB = $(F_CPU) … … 43 43 include $(DMBS_PATH)/atprogram.mk 44 44 45 PROG= avr109 -P /dev/ports/usb045 PROG=usbasp 46 46 flash: $(TARGET).hex 47 47 avrdude -u -c $(PROG) -p $(MCU) -Uflash:w:$^ 48 48 49 fuse: 50 avrdude -u -c $(PROG) -p $(MCU) -U efuse:w:0xf4:m -U hfuse:w:0xd9:m -U lfuse:w:0x5e:m
Note:
See TracChangeset
for help on using the changeset viewer.