mk20dx256vlh7 working!
- Interrupt vector table position fix (affected everything in the firmware) - Added fault debug messages - Fixed usbMuxUart
This commit is contained in:
parent
e708a42d80
commit
03f60df94d
8 changed files with 85 additions and 18 deletions
|
@ -229,6 +229,21 @@ void Output_consCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t *
|
|||
}
|
||||
|
||||
|
||||
// Ignores the given key status update
|
||||
// Used to prevent fall-through, this is the None keyword in KLL
|
||||
void Output_noneSend_capability( uint8_t state, uint8_t stateType, uint8_t *args )
|
||||
{
|
||||
// Display capability name
|
||||
if ( stateType == 0xFF && state == 0xFF )
|
||||
{
|
||||
print("Output_noneSend()");
|
||||
return;
|
||||
}
|
||||
|
||||
// Nothing to do, because that's the point :P
|
||||
}
|
||||
|
||||
|
||||
// Sends a System Control code to the USB Output buffer
|
||||
void Output_sysCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t *args )
|
||||
{
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
// Max size of key buffer needed for NKRO
|
||||
// Boot mode uses only the first 6 bytes
|
||||
#define USB_NKRO_BITFIELD_SIZE_KEYS 26
|
||||
#define USB_NKRO_BITFIELD_SIZE_KEYS 27
|
||||
#define USB_BOOT_MAX_KEYS 6
|
||||
|
||||
|
||||
|
@ -51,9 +51,10 @@ typedef enum USBKeyChangeState {
|
|||
USBKeyChangeState_MainKeys = 0x02,
|
||||
USBKeyChangeState_SecondaryKeys = 0x04,
|
||||
USBKeyChangeState_TertiaryKeys = 0x08,
|
||||
USBKeyChangeState_System = 0x10,
|
||||
USBKeyChangeState_Consumer = 0x20,
|
||||
USBKeyChangeState_All = 0x3F,
|
||||
USBKeyChangeState_QuartiaryKeys = 0x10,
|
||||
USBKeyChangeState_System = 0x20,
|
||||
USBKeyChangeState_Consumer = 0x40,
|
||||
USBKeyChangeState_All = 0x7F,
|
||||
} USBKeyChangeState;
|
||||
|
||||
|
||||
|
@ -87,6 +88,7 @@ extern uint8_t Output_DebugMode; // 0 - Debug disabled, 1 - Debug enab
|
|||
// ----- Capabilities -----
|
||||
|
||||
void Output_consCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t *args );
|
||||
void Output_noneSend_capability( uint8_t state, uint8_t stateType, uint8_t *args );
|
||||
void Output_sysCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t *args );
|
||||
void Output_usbCodeSend_capability( uint8_t state, uint8_t stateType, uint8_t *args );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue