separated HID struct for both nkro and 6kro

This commit is contained in:
2025-07-02 23:45:59 -07:00
parent ce728bb600
commit d519070ef8
3 changed files with 15 additions and 9 deletions

View File

@@ -30,11 +30,17 @@
/* Private typedef -----------------------------------------------------------*/
/* USER CODE BEGIN PTD */
typedef struct{
uint8_t MODIFIER;
uint8_t RESERVED;
uint8_t KEYPRESS[13];
} HIDReportNKRO;
typedef struct{
uint8_t MODIFIER;
uint8_t RESERVED;
uint8_t KEYPRESS[6]; // for 6 Key Rollover, changed index to 6.
} HIDReport;
} HIDReport6KRO;
typedef struct{
GPIO_TypeDef* PORT;
@@ -70,7 +76,7 @@ KbdPins col_pins[COLS] = {
{GPIOB, GPIO_PIN_14},
{GPIOB, GPIO_PIN_13}
};
HIDReport REPORT = {0,0,0,0,0,0,0,0};
HIDReportNKRO REPORT = {0,0,0,0,0,0,0,0};
CAN_RxHeaderTypeDef RxHeader;
uint8_t RxData[8];
/* USER CODE END PV */