Add usb config changed callback func

This commit is contained in:
Christina Quast 2015-02-25 18:43:46 +01:00
parent 10b2e5accc
commit 0ae0314f6b
1 changed files with 15 additions and 0 deletions

View File

@ -428,6 +428,21 @@ const USBDDriverDescriptors driverDescriptors = {
STRING_DESC_CNT /* cnt string descriptors in list */
};
/*----------------------------------------------------------------------------
* Callbacks
*----------------------------------------------------------------------------*/
extern uint8_t conf_changed;
extern uint8_t simtrace_config;
void USBDDriverCallbacks_ConfigurationChanged(uint8_t cfgnum)
{
TRACE_INFO_WP("cfgChanged%d ", cfgnum);
conf_changed =1;
simtrace_config = cfgnum;
}
/*----------------------------------------------------------------------------
* Functions
*----------------------------------------------------------------------------*/