Merge pull request #5055

6c060e6a device: proper handling of user input (selsta)
This commit is contained in:
Riccardo Spagni 2019-01-28 21:27:10 +02:00
commit 77e96d0948
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
5 changed files with 43 additions and 9 deletions

View file

@ -94,6 +94,7 @@ namespace hw {
void logCMD(void);
void logRESP(void);
unsigned int exchange(unsigned int ok=0x9000, unsigned int mask=0xFFFF);
unsigned int exchange_wait_on_input(unsigned int ok=0x9000, unsigned int mask=0xFFFF);
void reset_buffer(void);
int set_command_header(unsigned char ins, unsigned char p1 = 0x00, unsigned char p2 = 0x00);
int set_command_header_noopt(unsigned char ins, unsigned char p1 = 0x00, unsigned char p2 = 0x00);