mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-11 01:38:26 +02:00
Fix initiating driver for CCID and buffers.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -122,7 +122,6 @@ int driver_init_ccid() {
|
|||||||
apdu.header = &ccid_header->apdu;
|
apdu.header = &ccid_header->apdu;
|
||||||
|
|
||||||
ccid_response = (struct ccid_header *)usb_get_tx(ITF_CCID);
|
ccid_response = (struct ccid_header *)usb_get_tx(ITF_CCID);
|
||||||
apdu.rdata = &ccid_response->apdu;
|
|
||||||
|
|
||||||
usb_set_timeout_counter(ITF_CCID, 1500);
|
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() {
|
uint8_t *driver_prepare_response_ccid() {
|
||||||
ccid_response = (struct ccid_header *)usb_get_tx(ITF_CCID);
|
ccid_response = (struct ccid_header *)usb_get_tx(ITF_CCID);
|
||||||
|
apdu.rdata = &ccid_response->apdu;
|
||||||
return &ccid_response->apdu;
|
return &ccid_response->apdu;
|
||||||
}
|
}
|
||||||
#define USB_CONFIG_ATT_ONE TU_BIT(7)
|
#define USB_CONFIG_ATT_ONE TU_BIT(7)
|
||||||
|
|||||||
Reference in New Issue
Block a user