Bladeren bron

Adding API update to the MicroSwitch8304 code.

- Should still work, but not tested
simple
Jacob Alexander 11 jaren geleden
bovenliggende
commit
ccf1e1c7e5
2 gewijzigde bestanden met toevoegingen van 7 en 0 verwijderingen
  1. 5
    0
      Scan/MicroSwitch8304/scan_loop.c
  2. 2
    0
      Scan/MicroSwitch8304/scan_loop.h

+ 5
- 0
Scan/MicroSwitch8304/scan_loop.c Bestand weergeven

@@ -214,6 +214,11 @@ void scan_finishedWithBuffer( void )
}
}

// Signal that the keys have been properly sent over USB
void scan_finishedWithUSBBuffer( void )
{
}

// Reset/Hold keyboard
// Warning! This will cause the keyboard to not send any data, so you can't disable with a keypress
// The Micro Switch 8304 has a dedicated reset line

+ 2
- 0
Scan/MicroSwitch8304/scan_loop.h Bestand weergeven

@@ -42,6 +42,7 @@

extern volatile uint8_t KeyIndex_Buffer[KEYBOARD_BUFFER];
extern volatile uint8_t KeyIndex_BufferUsed;
extern volatile uint8_t KeyIndex_Add_InputSignal;



@@ -56,6 +57,7 @@ uint8_t scan_loop( void );
uint8_t scan_sendData( uint8_t dataPayload );

void scan_finishedWithBuffer( void );
void scan_finishedWithUSBBuffer( void );
void scan_lockKeyboard( void );
void scan_unlockKeyboard( void );
void scan_resetKeyboard( void );