+ int usb_pdi_set_addr( usb_device_t *udev, unsigned char addr) {
+ #if !defined(PDIUSBH11A_MULTIPLE) // D11,D12,H11,H11A_S(emb.fnc)
+ pdiSetAddressEnable(addr | PDI_ENAD_ENABLE);
+ #else
+ /*void pdiSetEmbFncAddressEnable( unsigned char byFnc, unsigned char byAddress, unsigned char byEnable);*/
+ #error usb_pdi_set_addr not implemented for PDIUSBH11A_MULTIPLE
+ #endif
+ return 0;
+ }
+
+ int usb_pdi_set_configuration( usb_device_t *udev, unsigned char iCfg) USB_UDEV_REENTRANT_SIGN
+ {
+ pdiSetEndpointEnable( 0); // USBInitUnconfig();
+ if ( iCfg) {
+ pdiSetEndpointEnable( PDI_EPEN_ENABLE); //USBInitConfig();
+ }
+ return 0;
+ }