Changeset d604513 in avrstuff


Ignore:
Timestamp:
Oct 27, 2021, 5:31:45 PM (3 years ago)
Author:
Adrien Destugues <pulkomandy@…>
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)
Message:

Adjust software to the production PCB

  • Use the right MCU, port, etc.
  • Change USB IDs to V-USB shared one for USB Joysticks
  • Set vendor and product descriptions
  • Add makefile rule to program the AVR fuses
Location:
grip2hid
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • grip2hid/Descriptors.c

    r62f4d54 rd604513  
    331331        .Endpoint0Size          = FIXED_CONTROL_ENDPOINT_SIZE,
    332332
    333         .VendorID               = 0x03EB,
    334         .ProductID              = 0x2043,
     333        .VendorID               = 0x16c0,
     334        .ProductID              = 0x27dc,
    335335        .ReleaseNumber          = VERSION_BCD(0,0,1),
    336336
     
    412412 *  Descriptor.
    413413 */
    414 const USB_Descriptor_String_t PROGMEM ManufacturerString = USB_STRING_DESCRIPTOR(L"LUFA Library");
     414const USB_Descriptor_String_t PROGMEM ManufacturerString = USB_STRING_DESCRIPTOR(L"PulkoTronics");
    415415
    416416/** Product descriptor string. This is a Unicode string containing the product's details in human readable form,
     
    418418 *  Descriptor.
    419419 */
    420 const USB_Descriptor_String_t PROGMEM ProductString = USB_STRING_DESCRIPTOR(L"LUFA Joystick Demo");
     420const USB_Descriptor_String_t PROGMEM ProductString = USB_STRING_DESCRIPTOR(L"Gravis GrIP gamepads");
    421421
    422422/** This function is called by the library when in device mode, and must be overridden (see library "USB Descriptors"
  • grip2hid/grip.cpp

    r62f4d54 rd604513  
    55// The UART is on PD2 (Rx) and PD3 (Tx)
    66// 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)
    1213#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)
    1818
    1919class GrIP
  • grip2hid/makefile

    r62f4d54 rd604513  
    1212# Run "make help" for target help.
    1313
    14 MCU          = at90usb1287
     14MCU          = at90usb162
    1515ARCH         = AVR8
    16 BOARD        = USBKEY
     16BOARD        =
    1717F_CPU        = 8000000
    1818F_USB        = $(F_CPU)
     
    4343include $(DMBS_PATH)/atprogram.mk
    4444
    45 PROG=avr109 -P /dev/ports/usb0
     45PROG=usbasp
    4646flash: $(TARGET).hex
    4747        avrdude -u -c $(PROG) -p $(MCU) -Uflash:w:$^
    4848
     49fuse:
     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.