Fix initiating driver for CCID and buffers.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2022-12-22 19:31:39 +01:00
parent e99757ed52
commit cd3ab0682c
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -122,7 +122,6 @@ int driver_init_ccid() {
apdu.header = &ccid_header->apdu;
ccid_response = (struct ccid_header *)usb_get_tx(ITF_CCID);
apdu.rdata = &ccid_response->apdu;
usb_set_timeout_counter(ITF_CCID, 1500);
@ -254,6 +253,7 @@ void driver_exec_finished_cont_ccid(size_t size_next, size_t offset) {
uint8_t *driver_prepare_response_ccid() {
ccid_response = (struct ccid_header *)usb_get_tx(ITF_CCID);
apdu.rdata = &ccid_response->apdu;
return &ccid_response->apdu;
}
#define USB_CONFIG_ATT_ONE TU_BIT(7)