Changeset d604513 in avrstuff for grip2hid/grip.cpp


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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.